Kling 4.0 Flash
Text to video · Image to video · Video editing
Starting price $0.149 / second
By Kuaishou
Kling 3 4K renders clips of 3 to 15 seconds with sound straight at 4K, from a written scene or from a start image with an optional end image.
kling-video/v3/4k/text-to-videoThis model has other modes with their own ids: kling-video/v3/4k/image-to-video.
Quote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.
# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-video/v3/4k/text-to-video",
"input": {
"prompt": "An aerial shot glides over a turquoise lagoon toward a white sand island at midday. Palm trees sway, waves break on the reef, and the camera slowly descends toward the shore."
}
}'
# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"model": "kling-video/v3/4k/text-to-video", "quote_id": "QUOTE_ID", "input": {"prompt":"An aerial shot glides over a turquoise lagoon toward a white sand island at midday. Palm trees sway, waves break on the reef, and the camera slowly descends toward the shore."}}'
# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
-H "Authorization: Bearer $RAYWAKE_API_KEY"| Name | Type | Description |
|---|---|---|
prompt | string | Text prompt for video generation. Either prompt or multi_prompt must be provided, but not both. |
duration | string (enum) | The duration of the generated video in seconds |
generate_audio | boolean | Whether to generate native audio for the video. Supports Chinese and English voice output. Other languages are automatically translated to English. For English speech, use lowercase letters; for acronyms or proper nouns, use uppercase. |
shot_type | string (enum) | The type of multi-shot video generation. 'intelligent' lets the model automatically determine shot structure. |
aspect_ratio | string (enum) | The aspect ratio of the generated video frame |
negative_prompt | string | Negative Prompt |
cfg_scale | number | The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt. |
A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.
"outputs": [
{ "type": "video", "url": "https://…", "mime_type": "video/mp4", "thumbnail_url": "https://…" }
]The exact charge for your input comes from a quote. How charges settle
Fields marked * are required. Review the price before generating.
Kling 3 4K outputs 4K video directly rather than upscaling a smaller render. Clips run 3 to 15 seconds in 16:9, 9:16 or 1:1, with generated sound on by default; spoken lines can be in English or Chinese.
The image mode starts from your picture and can finish on an end image. In both modes a shot type setting lets the model plan the shots itself, and a negative prompt and a guidance scale tune how closely it follows you.
Inspect fine moving detail at full size, particularly faces and hard edges. Review generated speech and the closing frame.