falText to videoAvailable now
fal-ai/kling-video/v4/text-to-video
fal-ai/kling-video/v4/text-to-video is a text to video tool from fal that runs in the background and returns video. Pay as you go from $0.2041 per second, with one API key.
Try itfrom $0.2041 / second
Pricing
resolution: 720p $0.2041, 1080p (default) $0.3055 per second. Billed on duration, default 5, or the sum of the duration values in multi_prompt. The final charge comes from usage.
Limits
- Runs
- In the background
- Returns
- video
- Longest queue wait
- 3600s
- Run deadline
- 3600s
- Largest inline input
- 1024 KB
- Largest input file
- 500 MB
- Largest output
- 4768 MB
- Outputs per run
- 16
Input
| Field | Kind | Default | Description |
|---|---|---|---|
prompt | text | — | Text prompt. Either prompt or multi_prompt must be provided. |
multi_prompt | JSON | — | Per-shot prompts for multi-shot generation. The video duration is the sum of the shot durations. |
duration | number (whole) 3 to 30 | 5 | Video duration in seconds (3-30). |
resolution | one of 720p, 1080p | 1080p | Output resolution. |
aspect_ratio | one of 16:9, 9:16, 1:1, 21:9 | 16:9 | Aspect ratio of the generated video. |
Same request in code
curl https://api.spiral.ai/v1/runs \
-H "Authorization: Bearer $SPIRAL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"provider": "fal",
"model": "fal-ai/kling-video/v4/text-to-video",
"input": {}
}'