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-2异步任务
4/8/12s
Durations
Text or image
Input
$0.1/s
Pricing

模型能力

为生产级 API 工作流设计,不只是演示。

Sora 2 与你接入的其他视频和图片模型共用同一套 API Key、积分、日志、Webhook 和文档体系。

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 工作流

提交任务、跟踪进度、取回生成结果。

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"
  }'
典型应用场景
Realistic social videos
Concept films
Product demos
Image animation
Narrative shorts
Creative prototypes

定价与用量

清晰的模型选项,共享积分余额。

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

在 AI Video API 上开始使用 Sora 2。

一个 API Key、一份积分余额,在视频和图片模型之间无缝切换,无需为每家供应商单独接入。

阅读文档