Generate AI videos through AceDataCloud's Luma Dream Machine API.
export ACEDATACLOUD_API_TOKEN="your-token-here"
curl -X POST https://api.acedata.cloud/luma/videos \
-H "Authorization: Bearer $ACEDATACLOUD_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"prompt": "a drone flying over a mountain lake at sunrise", "action": "generate", "wait": true}'
Generate video purely from a text description.
POST /luma/videos
{
"prompt": "a timelapse of flowers blooming in a garden",
"action": "generate",
"aspect_ratio": "16:9",
"loop": false,
"enhancement": true
}
Use start and/or end reference images to guide generation.
POST /luma/videos
{
"prompt": "the scene comes alive with gentle wind",
"action": "generate",
"start_image_url": "https://example.com/scene.jpg",
"end_image_url": "https://example.com/scene-end.jpg",
"aspect_ratio": "16:9"
}
Continue an existing video with a new prompt.
POST /luma/videos
{
"action": "extend",
"video_id": "existing-video-id",
"prompt": "the camera continues forward through the forest"
}
| Ratio | Use Case |
|---|---|
| ------- | ---------- |
16:9 | Landscape (default) — YouTube, TV |
9:16 | Portrait — TikTok, Instagram Stories |
1:1 | Square — Social media |
4:3 | Classic — Presentations |
21:9 | Ultra-wide — Cinematic |
| Parameter | Type | Default | Description |
|---|---|---|---|
| ----------- | ------ | --------- | ------------- |
prompt | string | — | Text description of the video (required) |
action | string | "generate" | "generate" or "extend" |
aspect_ratio | string | "16:9" | Video aspect ratio |
loop | bool | false | Create seamless loop |
enhancement | bool | true | Enhance prompt for better results |
start_image_url | string | — | Reference image for first frame |
end_image_url | string | — | Reference image for last frame |
video_id | string | — | Required for extend action |
POST /luma/tasks
{"task_id": "your-task-id"}
Poll every 5 seconds. States: pending → completed or failed.
pip install mcp-luma
Or hosted: https://luma.mcp.acedata.cloud/mcp
Key tools: luma_generate_video, luma_generate_video_from_image, luma_extend_video
enhancement: true (default) improves prompt quality but may alter your intent — set to false for literal promptsloop: true creates seamless looping video — good for backgrounds and social mediavideo_id from a previously completed generation共 1 个版本