Luma AI Text-to-Video
Generate Videos from Text or Images
Last updated
Was this helpful?
Generate Videos from Text or Images
Last updated
Was this helpful?
The Luma AI Dream Machine API allows developers to generate, retrieve, and extend AI-generated content using a variety of inputs. This API is particularly useful for creative applications, such as generating visual content from text prompts.
All API requests require a Bearer token for authentication. Include your token in the Authorization
header of each request.
Each generation costs 500 000 AI/ML Tokens
Ensure you replace "your-api-key"
with your actual API key before running the code.
/luma-ai/generations
Whether to expand the prompt
true
The URL for the end of the image
https://example.com/image-end.jpg
The URL of the main image
https://example.com/main-image.jpg
The user-provided prompt for image generation
A beautiful sunset over the ocean
The aspect ratio of the image
16:9
1:1
, 16:9
, 9:16
, 4:3
, 3:4
, 21:9
, 9:21
No body
/luma-ai/generation
No body
/luma-ai/generations/{taskId}/extend
No body