POST
/
luma
/
generations
curl -X POST https://www.anyfast.ai/luma/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A beautiful sunset timelapse over the ocean",
    "aspect_ratio": "16:9"
  }'
{
  "id": "gen_123456",
  "state": "pending",
  "created_at": "2024-01-01T00:00:00Z"
}
Create a video generation task using Luma AI.

Request Parameters

prompt
string
required
Video description prompt.
aspect_ratio
string
Aspect ratio. Options: 16:9, 9:16, 1:1, etc.
loop
boolean
Whether to loop the video.
keyframes
object
Keyframe configuration.
curl -X POST https://www.anyfast.ai/luma/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A beautiful sunset timelapse over the ocean",
    "aspect_ratio": "16:9"
  }'
{
  "id": "gen_123456",
  "state": "pending",
  "created_at": "2024-01-01T00:00:00Z"
}