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
Field | Value |
---|---|
API-KEY | <api-key> |
Content-Type | application/json |
Request Parameters
Field Name | Type | Example | Description | Required |
---|---|---|---|---|
type | string | TEXT_TO_VIDEO | Feature identifier | ✔️ |
model | string | luma | AI model to use | ✔️ |
conversationId | string | TEXT_TO_VIDEO | Conversation context | ✔️ |
promptObject.prompt | string | a fish is swimming | Text description of the video to generate | ✔️ |
promptObject.length | number | 5 | Length of video in seconds (currently limited to 5) | ✔️ |
promptObject.enhancePrompt | boolean | true | Enable AI prompt enhancement for better results | ✔️ |
Code Examples
- cURL
- JavaScript
- Python
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
}
}'
fetch('https://api.1min.ai/api/features', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'API-KEY': 'YOUR_API_KEY'
},
body: JSON.stringify({
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
}
})
})
import requests
url = "https://api.1min.ai/api/features"
headers = {
"Content-Type": "application/json",
"API-KEY": "YOUR_API_KEY"
}
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
}
}
response = requests.post(url, headers=headers, json=data)
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
{}