openai 查询任务
GET /v1/videos/{id}
说明
给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。
为提供的提示和参数创建完成
概览
| Method | GET |
|---|---|
| Path | /v1/videos/{id} |
| Type | http |
| Status | 1 |
| Module | 2102810 |
| Folder | 70033822 |
参数
{ "query": [], "path": [ { "id": "id#0", "name": "id", "required": true, "description": "", "type": "string", "enable": true, "sampleValue": "sora-2:task_01k81e7r1mf0qtvp3ett3mr4jm" } ], "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": 803489177, "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": "" } ]
响应示例
[ { "name": "pending", "responseId": 803489177, "data": "{\r\n \"id\": \"sora-2:task_01k6x15vhrff09dkkqjrzwhm60\",\r\n \"detail\": {\r\n \"id\": \"task_01k6x15vhrff09dkkqjrzwhm60\",\r\n \"input\": {\r\n \"size\": \"small\",\r\n \"model\": \"sy_ore\",\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 \"prompt\": \"make animate\",\r\n \"orientation\": \"portrait\"\r\n },\r\n \"status\": \"pending\",\r\n \"pending_info\": {\r\n \"id\": \"task_01k6x15vhrff09dkkqjrzwhm60\",\r\n \"seed\": null,\r\n \"type\": \"video_gen\",\r\n \"user\": \"user-a1sGDUIOXV32hNITe59LEkHa\",\r\n \"model\": \"sy_8\",\r\n \"title\": \"New Video\",\r\n \"width\": 352,\r\n \"height\": 640,\r\n \"prompt\": \"make animate\",\r\n \"sdedit\": null,\r\n \"status\": \"processing\",\r\n \"actions\": null,\r\n \"guidance\": null,\r\n \"n_frames\": 450,\r\n \"priority\": 2,\r\n \"operation\": \"simple_compose\",\r\n \"preset_id\": null,\r\n \"created_at\": \"2025-10-06T15:10:26.875729Z\",\r\n \"n_variants\": 1,\r\n \"project_id\": null,\r\n \"request_id\": null,\r\n \"generations\": [],\r\n \"tracking_id\": null,\r\n \"progress_pct\": 0.9302178175176704,\r\n \"remix_config\": null,\r\n \"inpaint_items\": [\r\n {\r\n \"type\": \"image\",\r\n \"preset_id\": null,\r\n \"crop_bounds\": null,\r\n \"frame_index\": 0,\r\n \"cameo_file_id\": null,\r\n \"generation_id\": null,\r\n \"upload_media_id\": \"media_01k6x15tnzezbst05sth2qgd8r\",\r\n \"source_end_frame\": 0,\r\n \"uploaded_file_id\": null,\r\n \"source_start_frame\": 0\r\n },\r\n {\r\n \"type\": \"image\",\r\n \"preset_id\": null,\r\n \"crop_bounds\": null,\r\n \"frame_index\": 0,\r\n \"cameo_file_id\": null,\r\n \"generation_id\": null,\r\n \"upload_media_id\": \"media_01k6x15tzafwztz74t018v3enw\",\r\n \"source_end_frame\": 0,\r\n \"uploaded_file_id\": null,\r\n \"source_start_frame\": 0\r\n }\r\n ],\r\n \"interpolation\": null,\r\n \"is_storyboard\": null,\r\n \"failure_reason\": null,\r\n \"organization_id\": null,\r\n \"moderation_result\": {\r\n \"code\": null,\r\n \"type\": \"passed\",\r\n \"task_id\": \"task_01k6x15vhrff09dkkqjrzwhm60\",\r\n \"is_output_rejection\": false,\r\n \"results_by_frame_index\": {}\r\n },\r\n \"needs_user_review\": false,\r\n \"queue_status_message\": null,\r\n \"progress_pos_in_queue\": null,\r\n \"num_unsafe_generations\": 0,\r\n \"estimated_queue_wait_time\": null\r\n }\r\n },\r\n \"status\": \"pending\",\r\n \"status_update_time\": 1759763621142\r\n}", "description": "", "oasKey": "", "oasExtensions": "", "id": 722663095 }, { "name": "成功示例", "responseId": 803489177, "data": "{\r\n \"id\": \"video_5c6a605a-30c0-4a6a-9dbd-d1d6cfdd9980\",\r\n \"size\": \"1280x720\",\r\n \"model\": \"sora-2\",\r\n \"object\": \"video\",\r\n \"status\": \"completed\",\r\n \"seconds\": \"10\",\r\n \"progress\": 100,\r\n \"video_url\": \"https://midjourney-plus.oss-us-west-1.aliyuncs.com/sora/cc4fb429-22a5-4747-a6f9-a6badccf8f42.mp4\",\r\n \"created_at\": 1761622232,\r\n \"completed_at\": 1761622385\r\n}", "description": "", "oasKey": "", "oasExtensions": "", "id": 722663096 } ]