创建视频,带图片
POST /v1/video/create
概览
| Method | POST |
|---|---|
| Path | /v1/video/create |
| Type | http |
| Status | 1 |
| Module | 2102810 |
| Folder | 59498073 |
参数
{ "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": "枚举值:\nveo2\nveo2-fast\nveo2-fast-frames\nveo2-fast-components\nveo2-pro\nveo3\nveo3-fast\nveo3-pro\nveo3-pro-frames\nveo3-fast-frames\nveo3-frames" }, "prompt": { "type": "string", "description": "提示词" }, "images": { "type": "array", "items": { "type": "string" }, "description": "\t支持:首帧、文本\n\t\tveo2、veo2-fast、veo2-pro\n\t支持:首尾帧、首帧、文本\n\t\tveo2-fast-frames\n\t\tveo3、veo3-fast、veo3-pro、veo3-frames、veo3-fast-frames、veo3-pro-frames\n\t\tveo_3_1、veo_3_1-fast\n\t\tveo3.1、veo3.1-fast、veo3.1-pro、veo3.1-4k、veo3.1-pro-4k\n\t支持:参考图(1-3)、文本\n\t\tveo_3_1-components、veo3.1-components、veo3.1-fast-components、veo3.1-components-4k" }, "enhance_prompt": { "type": "boolean", "description": "由于 veo 只支持英文提示词,所以如果需要中文自动转成英文提示词,可以开启此开关\n" }, "enable_upsample": { "type": "string", "description": "超分" }, "aspect_ratio": { "type": "string", "description": "“16:9”或“9:16”" } }, "required": [ "model", "prompt", "enhance_prompt", "enable_upsample", "aspect_ratio" ], "x-apifox-orders": [ "model", "prompt", "images", "enhance_prompt", "enable_upsample", "aspect_ratio" ] }, "required": false, "mediaType": "", "examples": [ { "value": "{\r\n \"prompt\": \"牛飞上天了\",\r\n \"model\": \"veo3-fast-frames\",\r\n \"images\": [\r\n \"https://filesystem.site/cdn/20250612/VfgB5ubjInVt8sG6rzMppxnu7gEfde.png\",\r\n \"https://filesystem.site/cdn/20250612/998IGmUiM2koBGZM3UnZeImbPBNIUL.png\"\r\n ],\r\n \"enhance_prompt\": true,\r\n \"enable_upsample\": true,\r\n \"aspect_ratio\": \"16:9\"\r\n}", "mediaType": "application/json" } ], "oasExtensions": "" }
响应
[ { "id": 701711255, "name": "OK", "code": 200, "contentType": "json", "jsonSchema": { "type": "object", "properties": { "id": { "type": "string" }, "object": { "type": "string" }, "created": { "type": "integer" }, "choices": { "type": "array", "items": { "type": "object", "properties": { "index": { "type": "integer" }, "message": { "type": "object", "properties": { "role": { "type": "string" }, "content": { "type": "string" } }, "required": [ "role", "content" ], "x-apifox-orders": [ "role", "content" ] }, "finish_reason": { "type": "string" } }, "x-apifox-orders": [ "index", "message", "finish_reason" ] } }, "usage": { "type": "object", "properties": { "prompt_tokens": { "type": "integer" }, "completion_tokens": { "type": "integer" }, "total_tokens": { "type": "integer" } }, "required": [ "prompt_tokens", "completion_tokens", "total_tokens" ], "x-apifox-orders": [ "prompt_tokens", "completion_tokens", "total_tokens" ] } }, "required": [ "id", "object", "created", "choices", "usage" ], "x-apifox-orders": [ "id", "object", "created", "choices", "usage" ] }, "itemSchema": {}, "description": "", "mediaType": "", "headers": [], "oasExtensions": "" } ]
响应示例
[ { "name": "成功示例", "responseId": 701711255, "data": "{\r\n \"id\": \"veo3-fast-frames:1762010543-twr7BEQ5wO\",\r\n \"status\": \"pending\",\r\n \"status_update_time\": 1762010543957\r\n}", "description": "", "oasKey": "", "oasExtensions": "", "id": 722703418 } ]