Video model by Kling
Kling 4.0 API
model: kling-4.0
Call Kling 4.0 with your KeelRouter API key, the same key you use for every other model. From $0.157 per second, paid per call from a prepaid balance. Failed calls are free.
Pricing
| Option | Price |
|---|---|
| 720p | $0.157 per second |
| 720p 5s | $0.785 per clip |
| 720p 10s | $1.57 per clip |
| 720p 30s | $4.71 per clip |
| 1080p | $0.235 per second |
| 1080p 5s | $1.17 per clip |
| 1080p 10s | $2.35 per clip |
| 1080p 30s | $7.05 per clip |
| reference video 720p | $0.094 per second |
| reference video 1080p | $0.141 per second |
Call it
Async: POST /v1/video/generations returns a taskId; poll the same path with ?task_id= or pass a callback_url.
curl https://api.keelrouter.com/v1/video/generations \
-H "Authorization: Bearer $KEELROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-4.0",
"prompt": "A paper boat drifting down a rainy street, slow camera follow",
"resolution": "1080p"
}'Parameters
| Name | Type | Notes |
|---|---|---|
| model | string | Required. kling-4.0 |
| prompt | string | Required. |
| duration | integer | Range 3–30. Default 5. |
| resolution | string | One of 720p, 1080p. Default 720p. |
| aspect_ratio | string | One of auto, 16:9, 9:16, 1:1, 21:9. |
| image_urls | array | Range …–10. |
| video_urls | array | Range …–5. |
| keep_original_sound | boolean | Default false. |
| elements | array | Range …–7. |
| voices | array | Range …–3. |
| first_frame_url | string | |
| keyframe_urls | array | Range …–8. |
| last_frame_url | string | |
| callback_url | string | Optional https URL; we POST the result when the task ends |
FAQ
- How much does the Kling 4.0 API cost on KeelRouter?
- From $0.157 per second. You pay per call from a prepaid USD balance; failed calls are not charged.
- How do I call Kling 4.0?
- POST to /v1/video/generations with model "kling-4.0". You get a taskId back; poll the same endpoint with ?task_id= or pass a callback_url.
- Is this the official Kling 4.0 API?
- No. KeelRouter is an independent API gateway. Requests run on Kling 4.0 through our upstream providers, and the video model keeps its own safety filters.
- How long are results kept?
- Result files are kept for 30 days, then deleted. Download what you want to keep.
More from Kling
KeelRouter is an independent service and is not affiliated with Kling. Kling 4.0 is a trademark of its owner, used here only to name the model a request runs on.