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 provider (must be "luma")✔️
promptObject.promptstringa fish is swimmingText description of the video to generate✔️
promptObject.modelNamestringray-v3AI model to use (ray-v1, ray-v2, ray-v2-flash, ray-v3, ray-v3-reasoning)✔️
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": "TEXT_TO_VIDEO",
"model": "luma",
"promptObject": {
"prompt": "a majestic lion walking through golden savanna at sunset",
"modelName": "ray-v3",
"duration": "5s",
"aspectRatio": "16:9",
"resolution": "720p",
"loop": false
}
}'

Interactive Playground

API Playground

https://api.1min.ai/api/features
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": "TEXT_TO_VIDEO",
"model": "luma",
"promptObject": {
"prompt": "a majestic lion walking through golden savanna at sunset",
"modelName": "ray-v3",
"duration": "5s",
"aspectRatio": "16:9",
"resolution": "720p",
"loop": false
}
}'

Response

{
"aiRecord": {
"uuid": "06e92293-ee32-47d7-85f2-fd4b59482b91",
"userId": "2f57c2a4-1fff-48e7-972f-3c1d6c59bced",
"teamId": "eb48d89f-1bb7-4d82-9b25-481971a0e97a",
"teamUser": {
"teamId": "eb48d89f-1bb7-4d82-9b25-481971a0e97a",
"userId": "2f57c2a4-1fff-48e7-972f-3c1d6c59bced",
"userName": "Jon",
"userAvatar": "https://lh3.googleusercontent.com/a/ACg8ocLqgsNsHRfmWF9d-E1RvJetVsEzxNOsOg-NXWNTpMxLDPJbwELI=s96-c",
"status": "ACTIVE",
"role": "ADMIN",
"creditLimit": 100000000,
"usedCredit": 12472338,
"createdAt": "2025-11-25T11:04:08.620Z",
"createdBy": "SYSTEM",
"updatedAt": "2025-11-26T08:26:25.461Z",
"updatedBy": "SYSTEM"
},
"model": "luma",
"type": "TEXT_TO_VIDEO",
"metadata": null,
"rating": null,
"feedback": null,
"conversationId": null,
"status": "SUCCESS",
"createdAt": "2025-11-26T08:29:05.973Z",
"aiRecordDetail": {
"promptObject": {
"loop": false,
"prompt": "a majestic lion walking through golden savanna at sunset",
"duration": "5s",
"modelName": "ray-v3",
"resolution": "720p",
"aspectRatio": "16:9"
},
"resultObject": [
"development/videos/2025_11_26_15_36_08_840_865624.mp4"
],
"responseObject": {}
},
"additionalData": null,
"temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/videos/2025_11_26_15_36_08_840_865624.mp4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAVRUVQEFIHSKAXGE7%2F20251126%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20251126T083634Z&X-Amz-Expires=604800&X-Amz-Signature=0b2c9d3101848945f3718e616bb7bd016389b6939894671b62b6bd2327e5c444&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject"
}
}