- 前言(必读)
- OpenAI官方库使用教程
- 聊天模型(Chat)
- 向量嵌入
- 音频模型(Audio)
- 绘画模型(Painting)
- 音乐创作(suno)
- 视频模型(Video)
- 更多接口开发中...
任务:拓展视频
POST
/luma/generations/{task_id}/extend
请求参数
Path 参数
task_id
string
必需
Body 参数application/json
user_prompt
string
必需
expand_prompt
boolean
可选
image_url
string
可选
image_end_url
string
可选
notify_hook
string
可选
示例
{
"user_prompt": "add cat",
"expand_prompt": true
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/luma/generations//extend' \
--header 'Content-Type: application/json' \
--data-raw '{
"user_prompt": "add cat",
"expand_prompt": true
}'
返回响应
🟢200成功
application/json
Body
id
string
必需
prompt
string
必需
state
string
必需
created_at
string
必需
video
null
必需
liked
null
必需
estimate_wait_seconds
null
必需
示例
{
"id": "9d4b7516-77e5-481a-b015-48313946f33b",
"prompt": "cat dance",
"state": "pending",
"created_at": "2024-07-01T07:35:13.498660Z",
"video": null,
"liked": null,
"estimate_wait_seconds": null
}
修改于 2024-10-18 17:45:20