创建 Sora 2 Pro 视频
提交文生/图生/分镜任务,立即扣费并返回 taskId。
参数说明
- 必填。使用上述支持的模型字符串。
- 除分镜外必填。描述要生成的画面。
- 图生必填。data:image/*;base64,... 格式图像数据。
- 选填。如不传 base64 可提供公开图片 URL。
- 选填。landscape 或 portrait,默认 landscape。
- 选填。"10"/"15"/"25"(25 仅分镜)。
- 选填(Pro 文/图)。standard 或 high。
- 选填(文/图)。是否去水印,默认 true。
- 分镜必填。分镜数组,包含 scene 与 duration。
- 选填。是否公开展示,默认 true。
使用提示
- 支持模型:sora-2-text-to-video、sora-2-image-to-video、sora-2-pro-text-to-video、sora-2-pro-image-to-video、sora-2-pro-storyboard。
- 任务提交即扣费,失败自动返还。
- 分镜模式必须传 shots。
shots 结构
分镜模式必填,每条包含 scene 与 duration。
[
{ "scene": "清晨咖啡馆的暖光。", "duration": 7.5 }
]- scene:分镜场景描述。
- duration:秒数,支持小数(如 7.5)。
请求示例
curl -X POST https://sora2-api.com/api/v1/video/sora-pro \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "sora-2-pro-text-to-video",
"prompt": "黄昏霓虹街市的电影感跟拍镜头。",
"aspectRatio": "landscape",
"nFrames": "10",
"size": "high",
"removeWatermark": true,
"isPublic": true
}'响应示例
{
"code": 0,
"message": "ok",
"data": {
"id": "task_1234567890",
"taskId": "task_1234567890"
}
}