Skip to main content

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​

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

Request Parameters​

Field NameTypeExampleDescriptionRequired
typestringIMAGE_TO_VIDEOFeature identifier✔️
modelstringlumaAI provider (must be "luma")✔️
promptObject.imageUrlstringimages/example.jpgSource image path from Asset API upload✔️
promptObject.promptstringgentle waves movingText description of desired motion/scene✔️
promptObject.modelNamestringray-v2AI model to use (ray-v2)✔️
promptObject.durationstring5sLength of video (5s or 10s)✔️
promptObject.aspectRatiostring16:9Video aspect ratio (1:1, 16:9, 9:16, 4:3, 3:4, 21:9, 9:21)❌
promptObject.resolutionstring720pVideo resolution (720p or 1080p)❌
promptObject.loopbooleanfalseEnable video looping❌

Code Examples​

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",
"promptObject": {
"imageUrl": "images/2025_10_22_07_10_43_846_elon-musk.jpg",
"prompt": "gentle waves moving across a serene lake with soft sunlight",
"modelName": "ray-v2",
"duration": "5s",
"aspectRatio": "16:9",
"resolution": "720p",
"loop": false
}
}'

Interactive Playground​

API Playground

https://api.1min.ai/api/features
Path 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
Choose the aspect ratio for your video
Choose the resolution for your video
Enable seamless video looping

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",
"promptObject": {
"imageUrl": "images/2025_10_22_07_10_43_846_elon-musk.jpg",
"prompt": "gentle waves moving across a serene lake with soft sunlight",
"modelName": "ray-v2",
"duration": "5s",
"aspectRatio": "16:9",
"resolution": "720p",
"loop": false
}
}'

Response​

{}