创建视频,带图片 sora-2
POST /v1/video/create
概览
| Method | POST |
|---|---|
| Path | /v1/video/create |
| Type | http |
| Status | 1 |
| Module | 2102810 |
| Folder | 67930391 |
参数
{ "query": [], "path": [], "cookie": [], "header": [ { "id": "NQs7bxnpZf", "name": "Content-Type", "required": true, "description": "", "type": "string", "enable": true, "sampleValue": "application/json" }, { "id": "qb8tEQbCty", "name": "Accept", "required": true, "description": "", "type": "string", "enable": true, "sampleValue": "application/json" }, { "required": false, "description": "", "type": "string", "id": "gBxcCbXhsa", "enable": true, "name": "Authorization", "sampleValue": "Bearer {{YOUR_API_KEY}}" } ] }
请求体
{ "type": "application/json", "parameters": [], "jsonSchema": { "type": "object", "properties": { "images": { "type": "array", "items": { "type": "string" }, "description": "图片链接" }, "model": { "type": "string", "description": "模型名字" }, "orientation": { "type": "string", "description": "portrait 竖屏\nlandscape 横屏\n" }, "prompt": { "type": "string", "description": "提示词" }, "size": { "type": "string", "description": " small 一般720p" }, "duration": { "type": "integer", "description": "枚举值: 10" }, "watermark": { "type": "string", "description": "默认为: true 会优先无水印,如果出错,会兜底到有水印\n传递 false 的话 会强制让视频无水印,遇到去水印错误的会一直自动重试\n" } }, "required": [ "images", "model", "orientation", "prompt", "size", "duration", "watermark" ], "x-apifox-orders": [ "images", "model", "orientation", "prompt", "size", "duration", "watermark" ] }, "required": false, "mediaType": "", "examples": [ { "value": "{\r\n \"images\": [\r\n \"https://filesystem.site/cdn/20250612/998IGmUiM2koBGZM3UnZeImbPBNIUL.png\"\r\n ],\r\n \"model\": \"sora-2\",\r\n \"orientation\": \"portrait\",\r\n \"prompt\": \"make animate\",\r\n \"size\": \"large\",\r\n \"duration\":15,\r\n \"watermark\":false\r\n}", "mediaType": "application/json" } ], "oasExtensions": "" }
响应
[ { "id": 782186923, "name": "成功", "code": 200, "contentType": "json", "jsonSchema": { "type": "object", "properties": { "id": { "type": "string" }, "status": { "type": "string" }, "status_update_time": { "type": "integer" } }, "required": [ "id", "status", "status_update_time" ] }, "itemSchema": {}, "description": "", "mediaType": "", "headers": [], "oasExtensions": "" } ]
响应示例
[ { "name": "成功示例", "responseId": 782186923, "data": "{\r\n \"id\": \"sora-2:task_01k6x15vhrff09dkkqjrzwhm60\",\r\n \"status\": \"pending\",\r\n \"status_update_time\": 1759763427208\r\n}", "description": "", "oasKey": "", "oasExtensions": "", "id": 710583479 } ]