- 前言(必读)
- OpenAI官方SDK使用教程
- 批量请求示例
- 聊天模型(Chat)
- 内容审查
- 向量嵌入
- 图片处理
- 音频模型(Audio)
- 绘画模型(Painting)
- 视频模型(Video)
- 视频模型说明
- 快手可灵AI
- vidu视频
- luma视频
- runway 官方API
- runway 旧版API
- pika视频
- 数字人
- 音乐创作(suno)
- 文档处理
- 3D模型
- 更多接口开发中...
- 查询令牌用量GET
- 查询令牌限额GET
任务:拓展视频
POST
/luma/generations/{task_id}/extend
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
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 'https://api.gpt.ge/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-09-30 17:27:10