Model Library
Kling 4.0 Flash — video API
Use kuaishou/kling-4.0-flash for faster, lower-cost Kling text-to-video, or image-to-video from a first frame, at 720p through the Quotaflow /openai/v1/videos task API: create a task, store the returned id, and poll until the task completes. It takes the same request as Kling 4.0, with Flash's own limits: 720p only and 3–20 seconds.
kuaishou/kling-4.0-flashandkuaishou/kling-4.0are separate models with separate prices. Neither is used as a fallback for the other.
Model contract
| Property | Value |
|---|---|
| Model id | kuaishou/kling-4.0-flash, as /models lists it (kling-4.0-flash is also accepted) |
| Endpoint | POST https://api.quotaflow.ai/openai/v1/videos |
| Status endpoint | GET https://api.quotaflow.ai/openai/v1/videos/{task_id} |
| Content endpoint | GET https://api.quotaflow.ai/openai/v1/videos/{task_id}/content |
durationSeconds | 3–20; default 5 |
resolution | 720p only; default 720p |
aspect_ratio | 16:9, 9:16, 1:1, or 21:9; default 16:9 (text-to-video only) |
| Modes | text_to_video (the default), image_to_video (with first_frame_url) |
first_frame_url | Base64 data URL of the first frame; makes the task image_to_video |
Call /models with your production key before launch. Only a key with access to the Kling video line lists kuaishou/kling-4.0-flash.
Text-to-video example
curl https://api.quotaflow.ai/openai/v1/videos \
-H "Authorization: Bearer $QUOTAFLOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kuaishou/kling-4.0-flash",
"prompt": "Sunset over the sea, slow push-in, waves lapping the sand.",
"durationSeconds": 10,
"resolution": "720p",
"aspect_ratio": "16:9",
"max_cost_usd": 2
}'
First-frame example
Send a first frame and the task is image_to_video. Frames are Base64 data URLs; an https:// image link is refused. The video takes its aspect ratio from the image, so do not send aspect_ratio with a frame.
curl https://api.quotaflow.ai/openai/v1/videos \
-H "Authorization: Bearer $QUOTAFLOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kuaishou/kling-4.0-flash",
"prompt": "She slowly turns her head and smiles.",
"first_frame_url": "data:image/png;base64,iVBORw0KGgo...",
"durationSeconds": 8,
"max_cost_usd": 2
}'
Poll and download exactly as for Kling 4.0.
Notes
1080p, a duration outside 3–20 seconds, a last frame, middle frames, reference images, reference videos,generate_audio,quality,frame_rate,watermark: true,return_last_frame,callback_url, andexecution_expires_afterare refused with400.- The first frame must be jpg or png, at least 300 px on each side, with a width-to-height ratio between 2:5 and 5:2; the request body is limited to 11 MB, frame included.
- You are billed for the delivered video's seconds at the Kling 4.0 Flash price.
Next steps
- Read the Videos endpoint guide.
- Browse all supported models.