Kling 4.0 API Is Live: Versions, Pricing, and a Request Example

Kling 4.0 API is live on PiAPI
Kling 4.0 is now available through the PiAPI task API. Choose the task type that matches the input: text_to_video for text, image_to_video for one start image, or video_generation for first/last frames and keyframes. Kling 4 Omni accepts up to 10 images and 5 videos, plus up to 3 audio references on standard 4.0, with 15 references total. See the current Kling 4 Omni API documentation.
Kling 4.0 API at a glance
The table below records the launch contract supplied for the Kling API docs. The listed USD rates apply without reference video. With an Omni reference video, verified input duration affects the quote.
- Kling 4.0: 720p or 1080p, 3–30 seconds, with text, one start image, first/last frames, or Omni image/video/audio references.
- Kling 4.0-flash: 720p, 3–20 seconds, with text, one start image, or Omni image/video references; audio references are unavailable.
- Kling 3.0: 720p or 1080p, 3–15 seconds, images, one reference video, and multi-shot generation.
- Kling 4 uses an operation-specific task type:
text_to_videofor text,image_to_videofor one start image, andvideo_generationfor first/last frames and keyframes. Useomni_video_generationonly for the separate Omni reference request shape. - The live API documentation is the source for request fields and response handling.
Kling 4.0, 4.0-flash, and 3.0 specifications
Use these confirmed dimensions when choosing a version. The 3.0 prices list 720p first and 1080p second; audio-enabled 3.0 requests use the second rate pair.
| Version | Resolution and duration | Input modes | Output price (USD/second) |
|---|---|---|---|
| 4.0 | 720p or 1080p · 3–30s | Text · start image · first/last frames | 720p: $0.1667 · 1080p: $0.25 |
| 4.0-flash | 720p · 3–20s | Text · start image | 720p: $0.10 |
| 3.0 | 720p or 1080p · 3–15s | Images · 1 reference video · multi-shot | Without audio: $0.10/$0.15 · with audio: $0.15/$0.20 |
Three practical Kling API workflows
Short-form production with 4.0-flash
Use 4.0-flash for a 3–20-second 720p clip when a fast social cut or a quick creative iteration is the goal. It also accepts image/video references through Omni, without audio references.
Image-led product scenes with 4.0
A product launch sequence can use a start image or first/last frames in a 4.0 request. For multimodal image, video, or audio references, use Kling 4 Omni and its separate request contract.
Multi-shot edits with 3.0
Choose 3.0 for a 3–15-second multi-shot sequence or when a single reference video is enough. It supports 720p and 1080p output, with separate rates for requests with and without audio.
Kling 4.0 API request example
This cURL request creates a ten-second 1080p Kling 4.0 task. Keep the API key on your server and replace the prompt with your scene.
curl --request POST "https://api.piapi.ai/api/v1/task" \
--header "X-API-Key: $PIAPI_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"model": "kling",
"task_type": "text_to_video",
"input": {
"version": "4.0",
"prompt": "A product camera move around a glass bottle on a sunlit table",
"duration": 10,
"mode": "pro",
"aspect_ratio": "16:9"
},
"config": { "service_mode": "public" }
}'Kling 4.0 output pricing
Without reference video, Kling 4.0 bills generated output per second: $0.1667/second at 720p, $0.25/second at 1080p, and $0.10/second for Kling 4.0-flash at 720p. Reference-video tasks also bill verified input duration.
- A ten-second 4.0 720p output uses the $0.1667/second standard rate.
- A ten-second 4.0 1080p output uses the $0.25/second pro rate.
- Kling 4 Omni accepts image and video references on both versions, and audio references on standard 4.0. For a reference video, billable seconds are output duration + max(total verified reference-video duration, output duration); the server measures the source before quoting.
How to access Kling 4.0 on PiAPI
The API is live in the Kling documentation. A backend integration can follow this sequence:
- Create or use a PiAPI API key and keep it in a server-side secret.
- POST the task with
model: "kling", the task type matching your input (text_to_video,image_to_video, orvideo_generation), and a supportedversion. Useomni_video_generationfor Omni references; keep the video entry task types for text, single image, and keyframes. - Read the returned task and poll it using the status operation documented with the Kling API until the video output is ready.
Kling 4.0 API FAQ
Is the Kling 4.0 API live?
Yes. The task API is live on PiAPI. Use model kling, choose text_to_video, image_to_video, or video_generation for the corresponding Kling 4 input mode, and pass a supported version such as 4.0 or 4.0-flash. Kling 4 Omni is also live via omni_video_generation.
How long can Kling 4.0 generate?
Kling 4.0 supports 3–30 seconds at 720p or 1080p. Kling 4.0-flash supports 3–20 seconds at 720p, while Kling 3.0 supports 3–15 seconds at 720p or 1080p.
How many references can a Kling 4.0 request include?
Kling 4.0 accepts a start image or first/last frames, and Kling 4.0-flash accepts a start image. Kling 4 Omni accepts up to 10 images and 5 videos, plus up to 3 audio references on standard 4.0, with 15 references total. See the current Kling 4 Omni API documentation.
How is Kling 4.0 billed?
Without reference video, Kling 4.0 is billed per second of generated output: $0.1667/second at 720p, $0.25/second at 1080p, and $0.10/second for Kling 4.0-flash at 720p. Reference-video tasks also bill verified input duration.
For the current Kling 4 request modes and pricing, see the Kling 4 product page. Pricing and limits can change; verify the live contract before shipping a billing estimate.



