import React, { useState, useEffect } from 'react'; import { Check, Loader2, Zap, Github, Server } from 'lucide-react'; import { useAuth } from '../contexts/AuthContext'; import { apiJson } from '../lib/api'; const PLAN_ORDER = ['starter', 'creator', 'pro']; const PLAN_BLURB = { starter: 'For getting started', creator: 'For regular creators', pro: 'For power users & teams', }; const HIGHLIGHT = 'creator'; const fmt = (amount, currency) => new Intl.NumberFormat('en-US', { style: 'currency', currency: (currency || 'usd').toUpperCase(), maximumFractionDigits: 0 }).format((amount || 0) / 100); // 3-tier pricing with monthly/annual toggle. Checkout requires sign-in. export default function PricingSection({ onRequireLogin }) { const { isSignedIn } = useAuth(); const [plans, setPlans] = useState([]); const [interval, setInterval] = useState('month'); const [loading, setLoading] = useState(true); const [busyPrice, setBusyPrice] = useState(null); useEffect(() => { apiJson('/api/billing/plans') .then((d) => setPlans(d.plans || [])) .catch(() => setPlans([])) .finally(() => setLoading(false)); }, []); const checkout = async (price_id) => { if (!isSignedIn) { onRequireLogin?.(price_id); return; } setBusyPrice(price_id); try { const { url } = await apiJson('/api/billing/checkout', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ price_id }), }); window.location.href = url; } catch (e) { setBusyPrice(null); alert('Could not start checkout. Please try again.'); } }; if (loading) { return
{PLAN_BLURB[plan]}
3 days free, then billed monthly. Cancel anytime.
Your monthly minutes cover video processing. Titles & descriptions are free; AI thumbnail image generation uses ~3 min of your quota per batch.
AI Shorts (AI-actor UGC videos) and voice dubbing use premium generation from fal.ai and ElevenLabs. Connect your own keys for those — you're billed by those providers directly (typically ~$0.65-2 per video). Your plan still covers the script & orchestration.
Managed credits for these are coming later — no keys needed.
OpenShorts is open source. Run it on your own machine with Docker and use it completely free — you just bring your own API keys and your own hardware. The plans above are for the hosted version on this site: zero setup, no keys, we run everything for you.
Use it free on your own computer, or skip the setup and use it here — 3 days free, then a plan.