openai 下载视频
GET /v1/videos/{id}/content
说明
给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。
为提供的提示和参数创建完成
概览
| Method | GET |
|---|---|
| Path | /v1/videos/{id}/content |
| Type | http |
| Status | 1 |
| Module | 2102810 |
| Folder | 68864887 |
参数
{ "query": [], "path": [ { "id": "id#0", "name": "id", "required": true, "description": "", "type": "string", "enable": true, "sampleValue": "video_099c5197-abfd-4e16-88ff-1e162f2a5c77" } ], "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}}" }, { "required": false, "description": "", "type": "string", "id": "t8P0euDZvz", "enable": false, "name": "X-Forwarded-Host", "sampleValue": "localhost:5173" } ] }
请求体
{ "type": "multipart/form-data", "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" }, "messages": { "type": "array", "items": { "type": "object", "properties": { "role": { "type": "string" }, "content": { "type": "string" } }, "x-apifox-orders": [ "role", "content" ] }, "description": "至今为止对话所包含的消息列表。Python 代码示例。" }, "stream": { "type": "boolean", "description": "默认为 false 如果设置,则像在 ChatGPT 中一样会发送部分消息增量。标记将以仅数据的服务器发送事件的形式发送,这些事件在可用时,并在 data: [DONE] 消息终止流。Python 代码示例。" } }, "required": [ "model", "messages" ], "x-apifox-orders": [ "model", "messages", "stream" ] }, "required": false, "mediaType": "", "examples": [], "oasExtensions": "" }
响应
[ { "id": 792026729, "name": "成功", "code": 200, "contentType": "json", "jsonSchema": { "type": "object", "properties": { "id": { "type": "string" }, "status": { "type": "string" }, "video_url": { "type": "null" }, "enhanced_prompt": { "type": "string" }, "status_update_time": { "type": "integer" } }, "required": [ "id", "status", "video_url", "enhanced_prompt", "status_update_time" ] }, "itemSchema": {}, "description": "", "mediaType": "", "headers": [], "oasExtensions": "" } ]