Skip to main content

Luma AI - Text to Video

Generate high-quality videos from text descriptions using Luma AI's Dream Machine model. Create stunning, realistic videos with customizable length and prompt enhancement capabilities.

Endpoint

Request Headers

FieldValue
API-KEY<api-key>
Content-Typeapplication/json

Request Parameters

Field NameTypeExampleDescriptionRequired
typestringTEXT_TO_VIDEOFeature identifier✔️
modelstringlumaAI model to use✔️
conversationIdstringTEXT_TO_VIDEOConversation context✔️
promptObject.promptstringa fish is swimmingText description of the video to generate✔️
promptObject.lengthnumber5Length of video in seconds (currently limited to 5)✔️
promptObject.enhancePromptbooleantrueEnable AI prompt enhancement for better results✔️

Code Examples

curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "TEXT_TO_VIDEO",
"model": "luma",
"conversationId": "TEXT_TO_VIDEO",
"promptObject": {
"prompt": "a majestic lion walking through golden savanna at sunset",
"length": 5,
"enhancePrompt": true
}
}'

Interactive Playground

API Playground

https://api.1min.ai/api/features
Let AI transform your simple concepts into detailed prompts

Generated cURL Command:

curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "TEXT_TO_VIDEO",
"model": "luma",
"conversationId": "TEXT_TO_VIDEO",
"promptObject": {
"prompt": "a majestic lion walking through golden savanna at sunset",
"length": 5,
"enhancePrompt": true
}
}'

Response

{}