
Luma AI
starting from
API Overview
Support creation of videos from text/images.
API Console
Log in to explore more features! Click to Log In
API Analytics
API Reference (3)
| API Description | API Endpoint | Request Method | Stability | Parameter Description |
|---|---|---|---|---|
Submit(Text / Image to Video) | POST | Stable | View Details | |
Document Details Text/Image-to-Video generation from Luma AI. Generate a 5-second video based on text or images. Supports specifying the first and last frames for seamless connection. Luma AI:https://lumalabs.ai/dream-machine Price: 0.4 PTC / call Request Parameters Header ParametersContent-TypestringRequired Example Value: application/jsonAuthorizationstringRequired Example Value: Bearer {{YOUR_API_KEY}}Request Body multipart/form-datauser_promptstringRequired Video prompt; not support Chinese input Example Value: Low-angle shot of a majestic tiger prowling through a snowy landscape, leaving paw prints on the white blanketimage_urlstringOptional Optional: First frame of the video. The beginning and end follow the video prompt but may be ineffective due to AI limitations. image_end_urlstringOptional Optional: Last frame of the video. The beginning and end follow the video prompt but may be ineffective due to AI limitations. loopbooleanOptional Whether to generate looping video Example Value: false | ||||
Extend(Video) | POST | Stable | View Details | |
Document Details Extend(Video) from Luma AI. This API is used to extend previously generated videos, adding 5s of playback time. Note: Since the official API does not support setting the first and last frames for video extensions, the extended content may be somewhat unpredictable. We recommend using the submit interface to input the last frame of the previous video for generation, and then manually stitching the videos together afterward. Luma AI:https://lumalabs.ai/dream-machine Price: 0.4 PTC / call Request Parameters Path ParametersidstringRequired Header ParametersContent-TypestringRequired Example Value: application/jsonAuthorizationstringRequired Example Value: Bearer {{YOUR_API_KEY}}Request Body multipart/form-datauser_promptstringRequired Video prompt Example Value: Low-angle shot of a majestic tiger prowling through a snowy landscape, leaving paw prints on the white blanketimage_urlstringOptional The first frame of the video, but not recommended to upload it. If you choose to do so, it is best to also pass the last frame that needs to be expanded to maintain visual coherence. image_end_urlstringOptional The last frame of the video that we suggest not upload it. If you do, it must be identical to the first frame because the extension does not support generating different first and last frames; if they differ, an error will occur. We recommend submitting the first and last frames through the submit interface and splicing them together later. | ||||
Fetch | GET | Stable | View Details | |
Document Details Luma AI:https://lumalabs.ai/dream-machine This interface is only used for retrieving tasks and is free of charge. Price: 0 PTC / call Request Parameters Path ParametersidstringRequired Example Value: 1Header ParametersAuthorizationstringRequired Example Value: Bearer {{YOUR_API_KEY}}Query ParametersgeostringOptional Example Value: global | ||||
API Pricing
| Model | Description | 302.AI Price |
|---|
Submit(Text / Image to Video) | Text / Image to Video |
|
Extend(Video) | Extend |
|
Fetch | Fetch |
|