Luma AI - Image to Video
Generate high-quality videos from images using Luma AI's Dream Machine model. Transform static images into dynamic videos with customizable motion and prompt enhancement capabilities.
Note: Image files must first be uploaded using the Asset API before processing. The imageUrl parameter should contain the path returned from the Asset API upload.
Endpoint
Request Headers
| Field | Value |
|---|---|
| API-KEY | <api-key> |
| Content-Type | application/json |
Request Parameters
| Field Name | Type | Example | Description | Required |
|---|---|---|---|---|
| type | string | IMAGE_TO_VIDEO | Feature identifier | ✔️ |
| model | string | luma | AI model to use | ✔️ |
| conversationId | string | IMAGE_TO_VIDEO | Conversation context | ✔️ |
| promptObject.imageUrl | string | images/example.jpg | Source image path from Asset API upload | ✔️ |
| promptObject.prompt | string | gentle waves moving | Text description of desired motion/scene | ✔️ |
| promptObject.length | number | 5 | Length of video in seconds | ✔️ |
| 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": "IMAGE_TO_VIDEO",
"model": "luma",
"conversationId": "IMAGE_TO_VIDEO",
"promptObject": {
"imageUrl": "images/2025_10_22_07_10_43_846_elon-musk.jpg",
"prompt": "gentle waves moving across a serene lake with soft sunlight",
"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: 'IMAGE_TO_VIDEO',
model: 'luma',
conversationId: 'IMAGE_TO_VIDEO',
promptObject: {
imageUrl: 'images/2025_10_22_07_10_43_846_elon-musk.jpg',
prompt: 'gentle waves moving across a serene lake with soft sunlight',
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": "IMAGE_TO_VIDEO",
"model": "luma",
"conversationId": "IMAGE_TO_VIDEO",
"promptObject": {
"imageUrl": "images/2025_10_22_07_10_43_846_elon-musk.jpg",
"prompt": "gentle waves moving across a serene lake with soft sunlight",
"length": 5,
"enhancePrompt": True
}
}
response = requests.post(url, headers=headers, json=data)
Interactive Playground
API Playground
https://api.1min.ai/api/featuresPath to the source image file uploaded via Asset API
Describe the motion and animation you want to see in the video
Choose the duration for your generated video
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": "IMAGE_TO_VIDEO",
"model": "luma",
"conversationId": "IMAGE_TO_VIDEO",
"promptObject": {
"imageUrl": "images/2025_10_22_07_10_43_846_elon-musk.jpg",
"prompt": "gentle waves moving across a serene lake with soft sunlight",
"length": 5,
"enhancePrompt": true
}
}'
Response
{}