Model parameters
- Model ID:
kling-video-v3 - Pricing: see the model details page for current rates.
- Endpoint:
https://geekai.co/api/v1/videos/generations - Parameters: Video API reference
- Authentication: Get an API key
The following shared video API parameters are not supported:
negative_promptsizefps
aspect_ratio accepts the following values:
1:116:99:16
quality instead of the official mode to control resolution. quality accepts std (corresponding to 720p), pro (1080p), or 4k (v3 onward). The default is std. Quality affects generation time and cost.
Control sound with with_audio. with_audio accepts true (official audio = native) or false (official audio = off). The default is false. Generating audio takes longer and costs more.
Use watermark instead of the official watermark_info to control watermarking. watermark accepts true or false (default: false).
Kling Video 3.0 accepts a duration of 3–15 seconds (default: 5 seconds). Longer videos take more time and cost more.
Use extra_body to pass additional shot, reference element, and voice settings:
multi_shot: enable multiple shots. Acceptstrueorfalse(default:false). When enabled, set the shot type withshot_type.shot_type: shot type. Choosecustomizefor custom shots orintelligencefor automatic shots. Required whenmulti_shotistrue.multi_prompt: per-shot details, including prompt and duration. Required whenmulti_shotistrueandshot_typeiscustomize.element_list: up to three element IDs from the element library.
Pricing
Kling Video 3.0 pricing depends on quality, duration, and audio:
For discounted GeekAI channels, multiply the listed rate by the channel multiplier. On the high-availability, speed-first channel with multiplier
0.8, a standard 5-second silent video costs 0.6 x 5 x 0.8 = 2.4 CNY.
Text to video
Describe the video in text:async controls asynchronous generation. The default, false, waits for the finished video. Set it to true to receive a task ID instead:
task_status field has four possible values:
pending: created and waiting for processingrunning: processingsucceed: completed successfully; the result is availablefailed: failed, possibly due to a content restriction or another error
succeed, then retrieve the generated video URL:
Image to video
First frame Pass one image inimage to generate a video starting from that frame:
image and image_tail:
- JPG, PNG, or WEBP; at most 10 MB per image.
- Pass a publicly accessible URL or Base64-encoded image data.
- Both dimensions at least 300 px; aspect ratio between 1:2.5 and 2.5:1.
- Supply at least one of
imageandimage_tail; they cannot both be empty.
Motion control
Kling’s motion control captures motion from a video and transfers it to a character in a still image. It can reproduce body movements, gestures, lip movements, and facial expressions. This example generates a video with Kling Video 3.0 motion control:action to motion-control to enable motion control. Only versions 2.6 and 3.0 support it; other models return an error.
Custom elements
Kling Video 3.0 supports custom elements that combine reference images, reference videos, and a custom voice. Create a reusable element with the element management API, or submit its assets with the video request for a one-off task. Custom voices are not converted automatically: obtain a voice ID from the separate custom voice API.task_id to poll the element result endpoint:
task_status is succeed, creation succeeded. The response looks like this:
task_result.elements[0].element_id contains the new element ID. Pass it to the video endpoint to generate a video with that element:
reference_type to video_refer and pass the reference video URL in videos.
Custom voices
Create a voice with the custom voice endpoint and reference it when defining a custom element:task_id to poll the voice result endpoint:
Multi-shot video
Useextra_body to control shots in Kling Video 3.0. This example creates a multi-shot video from an image:
