
🇨🇳 Chinese

🇨🇳 Chinese
- 系统内部接口
- OpenAI
- Anthropic
- Suno(音乐)
- 场景一:续写音乐并获取完整音乐
- 场景二:Cover 音乐:音乐翻版\修改风格
- 场景三:Replace Section:替换片段
- 场景四:Persona:歌手风格
- 场景五:stems:声曲分离(仅限chirp_auk)
- 场景六:Timing:歌词、音频时间线(仅限chirp_auk)
- 场景七:wav:获取 wav 格式文件
- 场景八:mp4:生成 mp4 mv 视频(仅限chirp_auk)
- 生成音乐POST
- 上传音乐POST
- 歌曲拼接POST
- 新建 PersonaPOST
- 声曲分离GET
- Timing:歌词、音频时间线GET
- 获取 wav 格式文件GET
- 生成 mp4 mv 视频GET
- 生成歌词POST
- 查询单个任务GET
- 批量查询任务POST
- 批量查询歌曲GET
- Udio(音乐)
- Midjourney API文档(生图)
- Flux(生图)
- Recraft(生图)
- Ideogram(生图)
- Luma(视频)
- Runway(视频)
- PIKA(视频)
- 可灵API(官方接口)
- Replicate 通用接口
- MiniMax海螺(视频)
生成视频
POST
/dream-machine/v1/generations
Last modified:2024-11-27 16:08:51
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Header Params
Content-Type
string
optional
Example:
application/json; charset=utf-8
Authorization
string
optional
Default:
{{YOUR_API_KEY}}
Body Params application/json
prompt
string
required
aspect_ratio
string
optional
Default:
16:9
loop
boolean
optional
keyframes
object
optional
frame0
object
首帧
frame1
object
尾帧
callback_url
string
optional
Example
{
"prompt": "A tiger walking in snow",
"keyframes": {
"frame0": {
"type": "image",
"url": "https://storage.cdn-luma.com/dream_machine/7e4fe07f-1dfd-4921-bc97-4bcf5adea39a/video_0_thumb.jpg"
}
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST '/dream-machine/v1/generations' \
--header 'Authorization: ' \
--header 'Content-Type: application/json; charset=utf-8' \
--data-raw '{
"prompt": "A tiger walking in snow",
"keyframes": {
"frame0": {
"type": "image",
"url": "https://storage.cdn-luma.com/dream_machine/7e4fe07f-1dfd-4921-bc97-4bcf5adea39a/video_0_thumb.jpg"
}
}
}'
Responses
🟢201成功
application/json
Body
id
string
required
state
string
required
failure_reason
null
required
created_at
string
required
assets
null
required
version
null
required
request
object
required
prompt
string
required
aspect_ratio
string
required
loop
boolean
required
keyframes
null
required
callback_url
string
required
Example
{
"id": "7ca76429-99d1-46ab-bb2e-84baa4acdb04",
"state": "queued",
"failure_reason": null,
"created_at": "2024-11-27T13:50:56.313494Z",
"assets": null,
"version": null,
"request": {
"prompt": "A serene lake surrounded by mountains at sunset",
"aspect_ratio": "16:9",
"loop": true,
"keyframes": null,
"callback_url": "xxx"
}
}