openai 创建视频,带图片
POST /v1/videos
概览
| Method | POST |
|---|---|
| Path | /v1/videos |
| Type | http |
| Status | 1 |
| Module | 2102810 |
| Folder | 70033822 |
请求体
{ "type": "multipart/form-data", "parameters": [ { "name": "model", "required": true, "description": "", "id": "JneOMkZTMb", "type": "string", "enable": true, "sampleValue": "veo_3_1" }, { "name": "prompt", "required": true, "description": "提示词", "id": "MspMEqG0Yi", "type": "string", "enable": true, "sampleValue": "让牛快乐的跳科目三" }, { "name": "seconds", "required": true, "description": "时长", "id": "QHFWKkJhjS", "type": "string", "enable": true, "sampleValue": "8" }, { "name": "input_reference", "required": true, "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、veo_3_1-4K、veo_3_1-fast-4K\n\t\tveo3.1、veo3.1-fast、veo3.1-pro、veo3.1-4k、veo3.1-pro-4k\n\t支持:参考图(1-3)、文本\n\t\tveo3.1-components、veo3.1-fast-components、veo3.1-components-4k\n\t\tveo_3_1-components、veo_3_1-components-4K、veo_3_1-fast-components-4K", "id": "CKLcYn3cMH", "type": "file", "enable": true, "schema": { "format": "binary", "type": "string" }, "sampleValue": "file://C:\\Users\\Administrator\\Desktop\\场景1.png" }, { "name": "size", "required": true, "description": "720x1280 竖屏 1280x720 横屏", "id": "uUrbYSj8r2", "type": "string", "enable": true, "sampleValue": "16x9" }, { "required": false, "description": "", "type": "string", "id": "npj4jWjCMN", "enable": true, "name": "watermark", "sampleValue": "false" } ], "required": false, "mediaType": "", "examples": [], "oasExtensions": "" }
响应
[ { "id": 803489174, "name": "成功", "code": 200, "contentType": "json", "jsonSchema": { "type": "object", "properties": { "id": { "type": "string" }, "object": { "type": "string" }, "model": { "type": "string" }, "status": { "type": "string" }, "progress": { "type": "integer" }, "created_at": { "type": "integer" }, "seconds": { "type": "string" }, "size": { "type": "string" } }, "required": [ "id", "object", "model", "status", "progress", "created_at", "seconds", "size" ] }, "itemSchema": {}, "description": "", "mediaType": "", "headers": [] } ]
响应示例
[ { "name": "成功示例", "responseId": 803489174, "data": "{\r\n \"id\": \"video_55cb73b3-60af-40c8-95fd-eae8fd758ade\",\r\n \"object\": \"video\",\r\n \"model\": \"veo_3_1\",\r\n \"status\": \"queued\",\r\n \"progress\": 0,\r\n \"created_at\": 1762336916,\r\n \"seconds\": \"8\",\r\n \"size\": \"16x9\"\r\n}", "description": "", "oasKey": "", "oasExtensions": "", "id": 722663092 } ]