Kling video API: text, image and motion control
Connect to Kling with a BetterToken API Key and choose fields, media and generation methods by Model ID and operation.
Generate videos from text or images, or control motion with a character reference image and motion video. kling-v3 sets its output level through provider_options.kling.mode. Omni, Turbo and Motion Control use their own resolution fields.
Prepare your BetterToken API Key. The Base URL is https://bettertoken.ai/v1, with Authorization: Bearer YOUR_API_KEY for authentication. Copy the Model ID exactly, including capitalization.
Every request.json below follows the same workflow: quote, confirm creation, poll and download. A quote does not start generation; creating a task submits a paid request. See current costs in the model plaza.
Models and operations
The table below lists available values by operation. See each subsection for field defaults, media counts and combination constraints. Media sizes use 1 MB = 1048576 bytes.
| Model ID | Operation | Duration (seconds) | Output level | Aspect ratio | Audio | Media roles |
|---|---|---|---|---|---|---|
kling-3.0-turbo | text_to_video | 5–10, step 5 | 720p, 1080p | 16:9, 9:16, 1:1 | on | None |
kling-v3-motion-control | reference_to_video | follows the 3–10-second reference video | 720p, 1080p | omit | off, on | reference_image, reference_video |
kling-v3-omni | text_to_video | 3–15, step 1 | 720p, 1080p, 4k | 16:9, 9:16, 1:1 | off, on | None |
kling-v3 | image_to_video | 3–15, step 1 | std, pro, 4k | omit | off, on | first_frame, last_frame |
kling-v3 | text_to_video | 3–15, step 1 | std, pro, 4k | 16:9, 9:16, 1:1 | off, on | None |
kling-v3 does not accept output.resolution; its image-to-video operation also rejects output.aspect_ratio. kling-v3-motion-control does not accept provider_options. Turbo generates only 5- or 10-second videos, with audio fixed to on.
Sample media
The image-to-video and image-reference examples use a blue ceramic mug on a white table. Keep the sample image to try them, or first replace it with public HTTPS media that you have the right to use and that meets this page’s limits.

The motion control example uses a boy reference image and a motion video of the same boy. Its prompt matches these character assets. The video is about 5.04 seconds, 1280 × 720, at 24 fps.
Text-to-video
kling-3.0-turbo
Use this operation when you have only a text description.
Set model to this subsection’s Model ID and operation to text_to_video. Use only the generation fields listed below. Put media in the media array.
| Field | Type | Required | Allowed values or range | Default |
|---|---|---|---|---|
audio.mode | string | No | on | on |
duration.mode | string | No | fixed | fixed |
duration.seconds | integer | No | 5–10, step 5 s; only for fixed duration | 5 |
output.aspect_ratio | string | No | 16:9, 9:16, 1:1 | 16:9 |
output.format | string | No | mp4 | mp4 |
output.resolution | string | No | 720p, 1080p | 720p |
prompt | string | Yes | string | None |
watermark | boolean | No | false | false |
Media requirements
This operation does not accept media.
Combination constraints
duration.mode="fixed"requiresduration.seconds. Include the number of seconds whenever you explicitly setfixed.
Request example
Save the JSON below as request.json, then follow the shared workflow to quote first and create after confirmation.
{ "model": "kling-3.0-turbo", "operation": "text_to_video", "prompt": "A blue ceramic mug on a white table. Slowly move the camera closer in soft daylight.", "duration": { "mode": "fixed", "seconds": 5 }, "output": { "resolution": "720p", "aspect_ratio": "16:9" }}Common 422 errors
| 422 error code | Action |
|---|---|
enum / range / step | Adjust values and increments to match this subsection’s field table. |
unsupported_field | Remove fields absent from this operation’s field table. |
requires | Add seconds, aspect ratio, audio settings or media as required by this subsection’s combination constraints. |
kling-v3-omni
Use this operation when you have only a text description.
Set model to this subsection’s Model ID and operation to text_to_video. Use only the generation fields listed below. Put media in the media array.
| Field | Type | Required | Allowed values or range | Default |
|---|---|---|---|---|
audio.mode | string | No | off, on | off |
duration.mode | string | No | fixed | fixed |
duration.seconds | integer | No | 3–15, step 1 s; only for fixed duration | 3 |
output.aspect_ratio | string | No | 16:9, 9:16, 1:1 | 16:9 |
output.format | string | No | mp4 | mp4 |
output.resolution | string | No | 720p, 1080p, 4k | 720p |
prompt | string | Yes | string | None |
watermark | boolean | No | false | false |
Media requirements
This operation does not accept media.
Combination constraints
duration.mode="fixed"requiresduration.seconds. Include the number of seconds whenever you explicitly setfixed.output.resolution="4k"requiresaudio.mode="off".
Request example
Save the JSON below as request.json, then follow the shared workflow to quote first and create after confirmation.
{ "model": "kling-v3-omni", "operation": "text_to_video", "prompt": "A blue ceramic mug on a white table. Slowly move the camera closer in soft daylight.", "duration": { "mode": "fixed", "seconds": 5 }, "output": { "resolution": "720p", "aspect_ratio": "16:9" }}Common 422 errors
| 422 error code | Action |
|---|---|
enum / range / step | Adjust values and increments to match this subsection’s field table. |
unsupported_field | Remove fields absent from this operation’s field table. |
requires | Add seconds, aspect ratio, audio settings or media as required by this subsection’s combination constraints. |
kling-v3
Use this operation when you have only a text description.
Set model to this subsection’s Model ID and operation to text_to_video. Use only the generation fields listed below. Put media in the media array.
| Field | Type | Required | Allowed values or range | Default |
|---|---|---|---|---|
audio.mode | string | No | off, on | off |
duration.mode | string | No | fixed | fixed |
duration.seconds | integer | No | 3–15, step 1 s; only for fixed duration | 5 |
output.aspect_ratio | string | No | 16:9, 9:16, 1:1 | 16:9 |
output.format | string | No | mp4 | mp4 |
prompt | string | No | string | None |
provider_options.kling.camera_axis | string | No | horizontal, vertical, pan, tilt, roll, zoom | None |
provider_options.kling.camera_type | string | No | simple, down_back, forward_up, right_turn_forward, left_turn_forward | None |
provider_options.kling.camera_value | integer | No | -10–10, step 1, must not be 0 | None |
provider_options.kling.mode | string | No | std, pro, 4k | std |
provider_options.kling.negative_prompt | string | No | string | None |
watermark | boolean | No | false, true | false |
Media requirements
This operation does not accept media.
Combination constraints
duration.mode="fixed"requiresduration.seconds. Include the number of seconds whenever you explicitly setfixed.
Request example
Save the JSON below as request.json, then follow the shared workflow to quote first and create after confirmation.
{ "model": "kling-v3", "operation": "text_to_video", "prompt": "A blue ceramic mug on a white table. Slowly move the camera closer in soft daylight.", "duration": { "mode": "fixed", "seconds": 5 }, "output": { "aspect_ratio": "16:9" }, "provider_options": { "kling": { "mode": "std" } }}Common 422 errors
| 422 error code | Action |
|---|---|
enum / range / step | Adjust values and increments to match this subsection’s field table. |
unsupported_field | Remove fields absent from this operation’s field table. |
requires | Add seconds, aspect ratio, audio settings or media as required by this subsection’s combination constraints. |
Image-to-video
kling-v3
Use this operation to set the opening frame or both the first and last frames with images.
Set model to this subsection’s Model ID and operation to image_to_video. Use only the generation fields listed below. Put media in the media array.
| Field | Type | Required | Allowed values or range | Default |
|---|---|---|---|---|
audio.mode | string | No | off, on | off |
duration.mode | string | No | fixed | fixed |
duration.seconds | integer | No | 3–15, step 1 s; only for fixed duration | 5 |
output.format | string | No | mp4 | mp4 |
prompt | string | No | string | None |
provider_options.kling.camera_axis | string | No | horizontal, vertical, pan, tilt, roll, zoom | None |
provider_options.kling.camera_type | string | No | simple, down_back, forward_up, right_turn_forward, left_turn_forward | None |
provider_options.kling.camera_value | integer | No | -10–10, step 1, must not be 0 | None |
provider_options.kling.mode | string | No | std, pro, 4k | std |
provider_options.kling.negative_prompt | string | No | string | None |
watermark | boolean | No | false, true | false |
Media requirements
| Media role | Type and count | Formats | Per-file limits |
|---|---|---|---|
first_frame | image, optional, at most 1 | jpg, jpeg, png | size at most 10 MB; width 300–100000 px; height 300–100000 px |
last_frame | image, optional, at most 1 | jpg, jpeg, png | size at most 10 MB; width 300–100000 px; height 300–100000 px |
Whether media is required also depends on the combination constraints below.
Combination constraints
duration.mode="fixed"requiresduration.seconds. Include the number of seconds whenever you explicitly setfixed.- Provide at least one of these roles:
first_frame,last_frame. - Do not set
provider_options.kling.camera_typewhen providing alast_frame.
Request example
Save the JSON below as request.json, then follow the shared workflow to quote first and create after confirmation.
{ "model": "kling-v3", "operation": "image_to_video", "prompt": "Slowly move the camera closer to the blue ceramic mug. Preserve its shape and the white table.", "duration": { "mode": "fixed", "seconds": 5 }, "provider_options": { "kling": { "mode": "std" } }, "media": [ { "id": "first", "type": "image", "role": "first_frame", "source": "https://docs.bettertoken.ai/images/nano-banana-guide/sample-07.png" } ]}Common 422 errors
| 422 error code | Action |
|---|---|
enum / range / step | Adjust values and increments to match this subsection’s field table. |
unsupported_field | Remove fields absent from this operation’s field table. |
requires | Add seconds, aspect ratio, audio settings or media as required by this subsection’s combination constraints. |
excludes | Remove fields that conflict with automatic duration or the last frame. |
count / media_role | Adjust roles and counts to match this subsection’s media table. |
video_input_unsupported | Check the public HTTPS URL, Content-Type and file format, then quote again. |
Reference generation
kling-v3-motion-control
Use this operation to preserve subject or motion characteristics from reference media.
Set model to this subsection’s Model ID and operation to reference_to_video. Use only the generation fields listed below. Put media in the media array.
| Field | Type | Required | Allowed values or range | Default |
|---|---|---|---|---|
audio.mode | string | No | off, on | off |
duration.mode | string | No | auto | auto |
duration.seconds | integer | No | omit; duration follows the 3–10-second reference video | None |
output.format | string | No | mp4 | mp4 |
output.resolution | string | No | 720p, 1080p | 720p |
prompt | string | Yes | string | None |
watermark | boolean | No | false | false |
Media requirements
| Media role | Type and count | Formats | Per-file limits |
|---|---|---|---|
reference_image | image, 1 (required) | jpg, jpeg, png | size at most 10 MB; width 300–16384 px; height 300–16384 px |
reference_video | video, 1 (required) | mp4, mov | size at most 100 MB; duration 3–10 s; total for this role at most 10 s |
Whether media is required also depends on the combination constraints below.
Combination constraints
- Use automatic duration so output duration follows the reference video. Do not set
duration.seconds.
You must provide exactly 1 reference_image and 1 reference_video. Do not set an aspect ratio or additional provider_options.
Request example
Save the JSON below as request.json, then follow the shared workflow to quote first and create after confirmation.
{ "model": "kling-v3-motion-control", "operation": "reference_to_video", "prompt": "Animate the boy in the reference image following the motion in the reference video. Preserve his appearance.", "duration": { "mode": "auto" }, "output": { "resolution": "720p" }, "media": [ { "id": "person", "type": "image", "role": "reference_image", "source": "https://bettertoken.ai/video-api/shared/kling-hero-3.0-poster.jpg" }, { "id": "motion", "type": "video", "role": "reference_video", "source": "https://bettertoken.ai/video-api/shared/kling-hero-3.0.mp4" } ]}Common 422 errors
| 422 error code | Action |
|---|---|
enum / range / step | Adjust values and increments to match this subsection’s field table. |
unsupported_field | Remove fields absent from this operation’s field table. |
excludes | Remove fields that conflict with automatic duration or the last frame. |
count / media_role | Adjust roles and counts to match this subsection’s media table. |
video_input_unsupported | Check the public HTTPS URL, Content-Type and file format, then quote again. |
Official resources
When calling BetterToken, use this page’s fields and the corresponding operation in the live model catalog.

