OpenAI video generation

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.

4/8/12s
Durations
Text or image
Input
$0.1/s
Pricing
OpenAI
sora-2async task
4/8/12s
Durations
Text or image
Input
$0.1/s
Pricing

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.

API workflow

Submit tasks, track progress, and return generated assets.

01

Describe the shot

Send a prompt and optional first-frame image.

02

Choose duration

Pick 4, 8, or 12 seconds for the target creative format.

03

Receive task output

Poll or receive callback payloads with hosted output URLs.

POST /v1/videos/generations
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.

4 seconds
25 credits/s

Short tests and variants

8 seconds
25 credits/s

Default balanced clip

12 seconds
25 credits/s

Longer narrative beat

What teams build
Realistic social videos
Concept films
Product demos
Image animation
Narrative shorts
Creative prototypes

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.

Read docs