主题
扩展视频
POST
https://az.gptplus5.com/luma/generations/{task_id}/extend
官方文档:https://docs.lumalabs.ai/docs/video-generation
请求参数
Authorization
在 Header 添加参数Authorization,其值为在 Bearer 之后拼接 Token
示例:Authorization: Bearer ********************
Path 参数
| 参数名 | 类型 | 必需 | 说明 |
|---|---|---|---|
task_id | string | 必需 | task id 为需要延长的视频任务id |
Header 参数
| 参数名 | 类型 | 必需 | 说明 | 示例 |
|---|---|---|---|---|
Content-Type | string | 必需 | application/json | |
Accept | string | 必需 | application/json | |
Authorization | string | 必需 | Bearer {{YOUR_API_KEY}} |
Body 参数 (application/json)
| 参数名 | 类型 | 必需 | 说明 |
|---|---|---|---|
user_prompt | string | 必需 | 必传,用户输入的提示词/问题描述,用于生成内容的主要输入 |
expand_prompt | boolean | 必需 | 可选,是否启用提示词优化功能 |
image_url | string | 必需 | 可选,参考图片URL或Base64编码 |
image_end_url | string | 必需 | 可选,关键帧图片URL或Base64编码 |
notify_hook | string | 必需 |
请求示例
json
{
"user_prompt": "add cat",
"expand_prompt": true
}cURL 示例
bash
curl --location --request POST 'https://az.gptplus5.com/luma/generations/4665a07c-7641-4809-a133-10786201bb56/extend' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"user_prompt": "add cat",
"expand_prompt": true
}'返回响应
🟢200成功
响应 Body
| 参数名 | 类型 | 必需 | 说明 |
|---|---|---|---|
code | integer | 必需 | |
message | string | 必需 | |
request_id | string | 必需 | |
data | object | 必需 | |
└ task_id | string | 必需 | |
└ task_status | string | 必需 | |
└ created_at | integer | 必需 | |
└ updated_at | integer | 必需 |
响应示例
json
{
"id": "749d328e-4fd0-43a8-8c89-32394d60da69",
"prompt": "",
"state": "pending",
"queue_state": null,
"created_at": "2024-12-22T14:48:39.947851Z",
"batch_id": "",
"video": null,
"video_raw": null,
"liked": null,
"estimate_wait_seconds": null,
"thumbnail": null,
"last_frame": null
}