扩展视频
POST /luma/generations/{task_id}/extend
说明
概览
| Method | POST |
|---|---|
| Path | /luma/generations/{task_id}/extend |
| Type | http |
| Status | 1 |
| Module | 2102810 |
| Folder | 47676852 |
参数
{ "query": [], "path": [ { "id": "task_id#0", "name": "task_id", "required": true, "description": "task id 为需要延长的视频任务id", "type": "string", "enable": true, "sampleValue": "4665a07c-7641-4809-a133-10786201bb56" } ], "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": true, "description": "", "type": "string", "id": "gBxcCbXhsa", "enable": true, "name": "Authorization", "sampleValue": "Bearer {{YOUR_API_KEY}}" } ] }
请求体
{ "type": "application/json", "parameters": [], "jsonSchema": { "type": "object", "properties": { "user_prompt": { "description": "必传,用户输入的提示词/问题描述,用于生成内容的主要输入", "type": "string" }, "expand_prompt": { "description": "可选,是否启用提示词优化功能", "type": "boolean" }, "image_url": { "description": "可选,参考图片URL或Base64编码", "type": "string" }, "image_end_url": { "description": "可选,关键帧图片URL或Base64编码", "type": "string" }, "notify_hook": { "description": "可选,回调通知地址", "type": "string" } }, "required": [ "user_prompt", "expand_prompt", "image_url", "image_end_url", "notify_hook" ], "x-apifox-orders": [ "user_prompt", "expand_prompt", "image_url", "image_end_url", "notify_hook" ] }, "mediaType": "", "examples": [ { "value": "{\n \"user_prompt\": \"add cat\",\n \"expand_prompt\": true\n}", "mediaType": "application/json", "description": "" } ], "oasExtensions": "" }
响应
[ { "id": 589856315, "name": "成功", "code": 200, "contentType": "json", "jsonSchema": { "type": "object", "properties": { "code": { "type": "integer" }, "message": { "type": "string" }, "request_id": { "type": "string" }, "data": { "type": "object", "properties": { "task_id": { "type": "string" }, "task_status": { "type": "string" }, "created_at": { "type": "integer" }, "updated_at": { "type": "integer" } }, "required": [ "task_id", "task_status", "created_at", "updated_at" ] } }, "required": [ "code", "message", "request_id", "data" ] }, "itemSchema": {}, "description": "", "mediaType": "", "headers": [], "oasExtensions": "" } ]
响应示例
[ { "name": "成功示例", "responseId": 589856315, "data": "{\r\n \"id\": \"749d328e-4fd0-43a8-8c89-32394d60da69\",\r\n \"prompt\": \"\",\r\n \"state\": \"pending\",\r\n \"queue_state\": null,\r\n \"created_at\": \"2024-12-22T14:48:39.947851Z\",\r\n \"batch_id\": \"\",\r\n \"video\": null,\r\n \"video_raw\": null,\r\n \"liked\": null,\r\n \"estimate_wait_seconds\": null,\r\n \"thumbnail\": null,\r\n \"last_frame\": null\r\n}", "description": "", "oasKey": "", "oasExtensions": "", "id": 457065608 } ]