
🇺🇸 English

🇺🇸 English
- Chat Models
- Chat
- OpenAI-Realtime
- Completions
- Audio
- Image generation
- Embeddings
- Models
- Help
- Anthropic
- Suno
- Udio
- Midjourney API
- Flux
- Recraft
- Ideogram
- Luma
- Official
- Own format
- Runway
- Kling-API
- Replicate
- MiniMax
Generate
POST
/luma/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
user_prompt
string
required
aspect_ratio
string
required
expand_prompt
boolean
optional
loop
boolean
required
image_url
string
optional
image_end_url
string
optional
keyframes
object
optional
frame0
object
首帧
frame1
object
尾帧
notify_hook
string
optional
duration
string
optional
Examples:
5s10s
resolution
string
optional
Examples:
720p1080p
Example
{
"user_prompt": "cat dance",
"duration": "5s",
"resolution": "1080p",
"aspect_ratio": "16:9",
"keyframes": {
"frame0": {
"type": "image",
"url": "https://www.shutterstock.com/image-photo/beautifull-red-black-bengal-tiger-260nw-2526207017.jpg"
}
}
}
Responses
🟢201成功
application/json
Body
created_at
string
required
estimate_wait_seconds
null
required
id
string
required
last_frame
null
required
liked
null
required
prompt
string
required
state
string
required
thumbnail
null
required
video
null
required
server_id
string
optional
Example
{
"created_at": "2024-07-22T12:47:28.553735Z",
"estimate_wait_seconds": null,
"id": "fc7fb008-7a5e-40ad-a7ff-dbb63db61be8",
"last_frame": null,
"liked": null,
"prompt": "cat dance",
"state": "pending",
"thumbnail": null,
"video": null
}
Modified at 2025-02-05 11:30:30