Skip to Content

Video Generation

Stable

Generate AI-powered videos from text descriptions using Fal.ai models.

Generate Video

POST/api/v1/generate-video

Create videos from text prompts.

Request

curl -X POST "https://cloud.milady.ai/api/v1/generate-video" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "prompt": "A butterfly flying through a colorful garden", "model": "fal-ai/veo3" }'

Parameters

ParameterTypeRequiredDescription
promptstringDescription of the video to generate
modelstringModel to use. Default: fal-ai/veo3

Response

{ "success": true, "video": { "url": "https://your-storage.vercel-storage.com/videos/abc123.mp4" }, "model": "fal-ai/veo3" }

Available Models

ModelProviderQualitySpeed
fal-ai/veo3GoogleHighestSlow
fal-ai/veo3/fastGoogleHighFast
fal-ai/veo3.1GoogleHighestSlow
fal-ai/veo3.1/fastGoogleHighFast
fal-ai/veo3.1/liteGoogleGoodFast
fal-ai/kling-video/v3/pro/text-to-videoKlingHighestMedium
fal-ai/kling-video/v3/standard/text-to-videoKlingHighFast
fal-ai/kling-video/v2.6/pro/text-to-videoKlingHighMedium
fal-ai/minimax/hailuo-2.3/pro/text-to-videoMiniMaxHighMedium
fal-ai/minimax/hailuo-2.3/standard/text-to-videoMiniMaxGoodFast
wan/v2.6/text-to-videoWanHighMedium
fal-ai/pixverse/v5.6/text-to-videoPixVerseHighFast
fal-ai/pixverse/v5.5/text-to-videoPixVerseGoodFast
fal-ai/pixverse/v5/text-to-videoPixVerseGoodFast

Video pricing is model-specific and refreshed from fal provider pages. Default request costs vary materially by model; inspect the API Explorer or pricing summary endpoint for current ranges.


Prompt Tips

Camera Movements

Include camera direction in prompts:

Scene Description

Be specific about the scene:

{ "prompt": "A golden retriever running through autumn leaves in a park, slow motion, cinematic lighting, tracking shot following the dog" }

Video generation typically takes 30-180 seconds depending on model and complexity.


Error Handling

CodeErrorSolution
400Invalid promptCheck prompt is non-empty string
400Invalid modelUse a supported model from the list above
402Insufficient creditsAdd credits to your account
429Rate limitedWait and retry with exponential backoff
500Generation failedRetry, or try a different model