创建视频
POST /v1/video/create
概览
| Method | POST |
|---|---|
| Path | /v1/video/create |
| Type | http |
| Status | 1 |
| Module | 2102810 |
| Folder | 72525006 |
参数
{ "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": { "model": { "type": "string", "description": "模型名字 grok-video-3" }, "prompt": { "type": "string", "description": " 提示词" }, "aspect_ratio": { "type": "string", "description": "可选为 2:3, 3:2, 1:1" }, "size": { "type": "string", "description": "720P或者1080P 暂只支持720P" }, "images": { "type": "array", "items": { "type": "string" }, "description": "垫图图片链接,垫图后视频尺寸跟着图片尺寸走," } }, "required": [ "model", "prompt", "aspect_ratio", "size", "images" ], "x-apifox-orders": [ "model", "prompt", "aspect_ratio", "size", "images" ] }, "required": false, "mediaType": "", "examples": [ { "value": "{\r\n \"model\": \"grok-video-3\",\r\n \"prompt\": \"小猫在吃鱼 --mode=custom\",\r\n \"aspect_ratio\": \"3:2\",\r\n \"size\": \"720P\",\r\n \"images\": [\"https://ark-project.tos-cn-beijing.volces.com/doc_image/seedream4_5_imageToimage.png\"]\r\n}", "mediaType": "application/json" } ], "oasExtensions": "" }
响应
[ { "id": 805852402, "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": 805852402, "data": "{\r\n \"id\": \"veo3.1-components:1762241017-xTL0P9HvGF\",\r\n \"status\": \"pending\",\r\n \"status_update_time\": 1762241017286\r\n}", "description": "", "oasKey": "", "oasExtensions": "", "id": 723437018 }, { "name": "成功示例", "responseId": 805852402, "data": "{\r\n \"id\": \"grok:299604b7-c5ea-47b5-bc64-c06f300f0d27\",\r\n \"status\": \"processing\",\r\n \"status_update_time\": 1764522528\r\n}", "id": "019ad5be-1382-7466-92bb-08cd5464094a" } ]