
🇺🇸 English

🇺🇸 English
- Chat Models
- Chat
- OpenAI-Realtime
- Completions
- Audio
- Image generation
- Embeddings
- Models
- Help
- Anthropic
- Suno
- Udio
- Midjourney API
- Flux
- Recraft
- Ideogram
- Luma
- Runway
- Kling-API
- Replicate
- MiniMax
Generate
POST
/dream-machine/v1/generations
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Query Params
string
optional
Header Params
Content-Type
string
optional
Example:
application/json; charset=utf-8
string
optional
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"
}
}
}
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"
}
}
Modified at 2025-02-05 11:29:37