Luma MCP
Generate Luma Dream Machine videos in the AI Agent through MCP and query the task results.
Luma AI video generation service with text and image input.
This is only a basic call example. See the full docs for more parameters and advanced usage.
View DocsTurn text or reference images into videos.
Start creating with a text description or reference image.
Extend a video or set it to loop using the corresponding action.
Use the original task ID to retrieve the completed result and video URL.
Get a Key, copy the request, and view the corresponding response JSON below.
export ACEDATACLOUD_API_KEY="YOUR_API_KEY"
curl --request POST "https://api.acedata.cloud/luma/videos" \
--header "Authorization: Bearer $ACEDATACLOUD_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"action": "generate",
"prompt": "A small sailboat crossing a calm lake at sunrise.",
"async": true
}'Below is an excerpt of key fields from the current API response. The task identifier, usage, and generated content depend on the values returned by your request.
{
"task_id": "50fc6182-fa86-4c7d-ac12-2fa27ec2f151"
}Use the task ID returned upon submission to check progress and retrieve the final result.
curl --request POST "https://api.acedata.cloud/luma/tasks" \
--header "Authorization: Bearer $ACEDATACLOUD_API_KEY" \
--header "Content-Type: application/json" \
--data '{"action": "retrieve", "id": "50fc6182-fa86-4c7d-ac12-2fa27ec2f151"}'The fields below illustrate an in-progress task. Continue querying the same ID until it completes.
{
"id": "50fc6182-fa86-4c7d-ac12-2fa27ec2f151",
"type": "videos",
"finished_at": null
}The following is an excerpt of key fields from the existing API response. Use the task ID, usage, and generated content returned by your request.
{
"id": "50fc6182-fa86-4c7d-ac12-2fa27ec2f151",
"started_at": 1725077412.021,
"finished_at": 1725077566.241,
"elapsed": 154.22,
"response": {
"success": true,
"task_id": "50fc6182-fa86-4c7d-ac12-2fa27ec2f151",
"video_url": "https://platform.cdn.acedata.cloud/luma/50fc6182-fa86-4c7d-ac12-2fa27ec2f151.mp4",
"state": "completed"
}
}The inputs for generating, extending, and looping videos differ. Start by completing a basic generation.
Read the video or audio track URL returned in response. If the task fails, read the error message and end the query process.
Refer to the current API and pricing page for request parameters, available models, and costs. If you encounter authentication, balance, or quota errors, check the Key's application, validity period, and usage restrictions. Retain the trace_id when troubleshooting requests.
Continue to the complete guide for parameters, result fields, and error handling.
This API can be used to query Luma's video generation tasks.
This API can generate videos by inputting prompt words and the first and last frame images.
We offer various credit packages. The more you purchase, the higher the discount you receive.
up to46% OFFGenerate Luma Dream Machine videos in the AI Agent through MCP and query the task results.
Configuration Method
Connect the current service in Claude Code:
mcpServers service entry below into .mcp.json in the project root directory, retaining the existing configuration.ACEDATACLOUD_API_TOKEN in the terminal: use export ACEDATACLOUD_API_TOKEN='YOUR_API_TOKEN' on macOS/Linux, and $env:ACEDATACLOUD_API_TOKEN = 'YOUR_API_TOKEN' in Windows PowerShell; replace YOUR_API_TOKEN with your Ace Data Cloud API Token.claude in the same terminal where this variable has been set; new terminals or desktop-launched clients must also be able to read this variable./mcp to confirm that the service is connected and the tools have been loaded; when using the project configuration for the first time, check and approve the service as prompted.export ACEDATACLOUD_API_TOKEN='YOUR_API_TOKEN'
claude mcp add --scope user --transport http 'luma-mcp' 'https://luma.mcp.acedata.cloud/mcp' --header 'Authorization: Bearer ${ACEDATACLOUD_API_TOKEN}'
Provide prompt words, image inputs, and task polling guidelines for the Luma Dream Machine video generation for AI Agent.
Install the current Skill to Claude Code. Project-level configurations are shared across the repository, while user-level configurations apply to all projects on this machine.
npx skills add acedatacloud/skills --skill 'luma-video' -a 'claude-code' --yes