Kling 4.0 Flash
Kling 4.0 Flash is the faster, lower-cost Kling 4.0 at 720p: 3–20 second videos from text, a first frame, or reference images and videos.
Kling 4.0 Flash Keyframe to Video
Optional. Without it the request is text to video.
Drag and drop an image, or click to browse
Supports PNG, JPEG, WebP. Max 10MB. You can also paste from clipboard (Ctrl+V).
3–20
Result
Results will appear here
Cost: $0.094/second
Pre-deducted at submit: $0.47 (5s)
Kling 4.0 Flash API Implementation Guide
Get API Key
Generate your API key from the dashboard and set it as an environment variable.
export MODELHUNTER_KEY="your_api_key"Make Your First Call
Follow the API documentation for complete code examples in cURL, JavaScript, and Python, including request format, polling, and error handling.
View API Documentation →Kling 4.0 Flash Key Info
Capabilities
- Keyframe to Video
- Reference to Video
Pricing
Price per second by resolution
| 720p |
|---|
| $0.094/second |
Billed per second at the official Kling price. With reference videos, input seconds are billed too; the final charge is settled from actual usage.
Use Cases
Output Formats
Kling 4.0 Flash API Documentation
Run the playground first, then open the full API docs for integration details.
About
Text to video, or animate from an optional first frame.
Code Examples
1curl -X POST https://api.modelhunter.ai/api/v1/kling/keyframe-to-video \2-H "Authorization: Bearer YOUR_API_KEY" \3-H "Content-Type: application/json" \4-d '{5"model": "kling-4.0/flash-keyframe-to-video",6"input": {7"prompt": "A futuristic cityscape at sunset with neon signs",8"aspect_ratio": "16:9"9}10}'
Schema
View Full API DocsInput
modelModel ID for this capability.
Value: kling-4.0/flash-keyframe-to-video
promptPrompt
first_frame_urlOptional. Without it the request is text to video.
durationDuration (seconds)
Default: 5
Range: 3 to 20
aspect_ratioAspect Ratio
Options: 16:9, 9:16, 1:1, 21:9, 4:3, 3:4
Default: 16:9
webhookUrlURL to receive a webhook notification when the task completes.
metadataCustom key-value metadata to attach to the task for tracking.
Response (HTTP 202)
successWhether the request was accepted successfully.
data.idUnique task ID. Use this to poll GET /api/v1/tasks/{id} for results.
data.statusTask status: pending, processing, completed, failed.
data.typeGeneration type: keyframe-to-video.
data.providerProvider name: kling.
data.modelModel ID used for generation.
data.created_atISO 8601 timestamp of when the task was created.
data.estimated_secondsEstimated time in seconds until the task completes.