The AI Video Generation API for Agents
26 REST endpoints, four state-of-the-art video engines, HMAC-signed webhooks, and an OpenAPI 3.1 spec. From $0.07 per credit. No subscription required.
60-Second Quickstart
Render an 8-second Sora 2 video. Replace ugc_live_... with your key.
curl -X POST https://us-central1-viral-ugc-copilot.cloudfunctions.net/proxyStartVideoGeneration \
-H "Authorization: Bearer ugc_live_..." \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"data": {
"engine": "sora",
"quality": "standard",
"duration": 8,
"aspectRatio": "9:16",
"scene": {
"visualPrompt": "A creator unboxing a sleek matte-black water bottle, soft window light, vlog energy",
"scriptText": "Okay this water bottle... this is unreal."
}
}
}'
Built for Agents and Pipelines
Agent Automation
Drop the OpenAPI spec into your Claude or ChatGPT agent. The 26 endpoints cover the full workflow — analyze → script → image → video — so an agent can produce a finished ad without leaving the chat. Webhooks remove the polling loop.
Batch Render Pipelines
Render hundreds of variations programmatically across Sora 2, Veo 3.1, Kling 3.0, and Seedance 2.0 from one API key. Per-key concurrency caps (3 / 8 / 25 by tier) and Idempotency-Key support make retries safe.
Embed in Your SaaS
Add "Generate AI Video" to your own product. The TypeScript SDK ships typed responses generated from the OpenAPI spec. Each customer gets the video as a hosted URL or downloadable MP4.
Four Video Engines, One Endpoint
Pass engine on proxyStartVideoGeneration. Credits deduct on start; failures auto-refund within one poll cycle.
| Engine | Std | HQ | Notes |
|---|---|---|---|
| Sora 2 | 18 cr | 65 cr | 8s baseline, scales by duration |
| Veo 3.1 | 40 cr | 130 cr | Fixed cost, fastest renders |
| Kling 3.0 | 25 cr | 50 cr | 6.4s baseline, image-to-video |
| Seedance 2.0 | 18 cr | 35 cr | 4s baseline, dance / motion |
At the 10,000-credit pack rate ($0.07/credit), a Sora 2 standard 8-second render costs ~$1.26.
Reliability Features
Webhooks Eliminate Polling
Register a URL, get video.completed and video.failed events the moment a render finishes. At-least-once delivery, retries on 1m / 5m / 30m / 2h / 6h backoff. HMAC-SHA256 signature verification, 5-endpoint cap per account, rotatable secrets without overlap window.
Idempotent & Predictable
Every credit-deducting endpoint accepts Idempotency-Key. Network retries replay the cached response instead of re-charging. Auto-refund on engine failure, structured error codes, Retry-After headers, per-key concurrency caps prevent runaway billing.
API FAQ
Frequently Asked Questions
Ship in an Afternoon
Sign up, buy credits, and have your first AI-rendered video in under 10 minutes.
Create a Free Account See Credit Pricing