Text-to-Video v1 (legacy)
Last updated
Was this helpful?
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.
Each generation costs 500 000 AI/ML Tokens.
If you don’t have an API key for the AI/ML API yet, feel free to use our .
Generating a video using this model involves making two sequential API calls:
The first one is for creating and sending a video generation task to the server (returns a generation ID). This can be either a generation from a reference image/prompt or a video extension operation that adds length to an existing video.
The second one is for requesting the generated or extended video from the server using the generation ID received from the first endpoint.
Below, you can find three corresponding API schemas and examples for all endpoint calls.
Extend allows you to effortlessly add length to an existing video.
Array of UUID strings or string with comma-separated UUID strings
No content
ray-1-6
Possible values: The aspect ratio of the image
16:9
Possible values: Whether to expand the prompt
false
Example: 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
No content
No content