Sora 2 API
Generate realistic Sora 2 clips through one production API.
Sora 2 is designed for realistic motion, prompt adherence, and short narrative scenes. Use it from the same API key and callback workflow as your other video models, with duration-based pricing and a clean task lifecycle.
Model capabilities
Built for production API workflows, not one-off demos.
Use Sora 2 from the same platform surface as the rest of your video and image stack: API keys, credits, logs, webhooks, and docs stay consistent across providers.
Text-to-video scenes
Turn natural-language prompts into realistic shots with subject, setting, and camera direction.
Image-to-video starts
Use a source image as the first frame and animate it into a short clip.
Predictable duration options
Choose 4, 8, or 12 second clips for ads, product demos, and social workflows.
Unified fallback surface
Keep Sora behind the same auth, credits, logs, and async callback layer as other providers.
Submit tasks, track progress, and return generated assets.
Describe the shot
Send a prompt and optional first-frame image.
Choose duration
Pick 4, 8, or 12 seconds for the target creative format.
Receive task output
Poll or receive callback payloads with hosted output URLs.
curl -X POST https://api.aivideoapi.ai/v1/videos/generations \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "sora-2",
"prompt": "A realistic handheld shot of a city cafe at sunrise",
"duration": 8,
"size": "1280x720"
}'Pricing and usage
Clear model options with shared credits.
Short tests and variants
Default balanced clip
Longer narrative beat
Start building with Sora 2 in AI Video API.
Create one API key, use one credit balance, and switch between video and image models without provider-specific plumbing.