APIMart
Kling 4.0 model icon
Video

Kling 4.0 API

Kling 4.0 API (kling-v4) unifies text-to-video, image-to-video, multimodal references, video editing and extension. Generate 3–30s clips in 720p or 1080p, always with stereo audio.

Five video modes720p / 1080pStereo audio

Service Highlights

  • Official Discounts
  • Pay-as-you-go
  • Fast & Low Latency
Input
5 seconds

Every video includes a stereo soundtrack.

Output

Kling 4.0 API Pricing

Transparent pricing with no hidden fees. Pay only for what you use.

VariantTierGoldCurrent pricePlatinumDiamondOfficialYour savings
kling-v4720P-input0.94Credits(~$0.094)/sec0.893Credits(~$0.0893)/sec0.846Credits(~$0.0846)/sec1.175Credits(~$0.1175)/sec20%
1080P-input1.41Credits(~$0.141)/sec1.3395Credits(~$0.134)/sec1.269Credits(~$0.1269)/sec1.7625Credits(~$0.1763)/sec20%
720P1.57Credits(~$0.157)/sec1.4915Credits(~$0.1492)/sec1.413Credits(~$0.1413)/sec1.9625Credits(~$0.1963)/sec20%
1080P2.35Credits(~$0.235)/sec2.2325Credits(~$0.2233)/sec2.115Credits(~$0.2115)/sec2.9375Credits(~$0.2938)/sec20%

* Actual costs are subject to final output.

Kling 4.0 API for Your Video Workflows

Kling 4.0 API (kling-v4) unifies text-to-video, image-to-video, multimodal references, video editing and extension. Generate 3–30s clips in 720p or 1080p, always with stereo audio.

50K+

Active Users

99.9%

Uptime

2x

Faster

—

Cost Savings

Kling 4.0 API Examples

Use model kling-v4 for all five workflows. Submit a video task, then query its video-generation endpoint to obtain the result.

  1. 1

    Authenticate Kling 4.0 API

    Store your key in APIMART_API_KEY and send Authorization: Bearer on each request.

  2. 2

    Submit a kling-v4 Task

    POST /v1/videos/generations with model kling-v4, the prompt and workflow-specific media. Save the returned task ID.

  3. 3

    Retrieve the Kling 4.0 Result

    Query GET /v1/tasks/{task_id} until completion, then retrieve the video result. Check the error details if generation fails.

    Check the APIMart documentation for integration updates.

POST /v1/videos/generations
curl -X POST https://api.apimart.ai/v1/videos/generations \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling-v4",
    "prompt": "A cinematic tracking shot of a cyclist riding through a sunlit coastal road, gentle ocean breeze and natural motion",
    "resolution": "720p",
    "duration": 5,
    "aspect_ratio": "16:9"
  }'

Kling 4.0 API Parameters

ParameterTypeRequiredDefaultDescription
modelstringRequiredDefault: kling-v4Fixed model ID: kling-v4.
promptstringOptionalDefault: —Required except for image-to-video, where it may be omitted.
durationintegerOptionalDefault: 53–30 whole seconds; default 5. For editing, omission follows the input duration. For extension, this is the new clip length.
resolutionstringOptionalDefault: 720p720p or 1080p; default 720p.
aspect_ratiostringOptionalDefault: —16:9, 9:16, 1:1 or 21:9; reference mode also accepts auto. Defaults: text 16:9, image follows first frame, reference auto, edit follows source. Omit for extension.
image_urlsstring[]OptionalDefault: —Image mode: first frame then optional last frame, at most two. Explicit reference mode and editing: up to ten reference images.
image_with_rolesobject[]OptionalDefault: —Objects with url and role: first_frame, last_frame, keyframe or reference_image. Up to eight keyframes and ten frame images total; middle_frame is also accepted.
first_frame_imagestringOptionalDefault: —First-frame image URL for image-to-video.
last_frame_imagestringOptionalDefault: —Last-frame image URL; in extension, the target end frame.
video_urlsstring[]OptionalDefault: —Reference videos: up to five and 30 seconds in total. Editing or extension also accepts one entry instead of video_url.
video_urlstringOptionalDefault: —One source video for edit or extend; set omni_reference_task_type explicitly. Editing requires at least 3 seconds and trims beyond 30.
audio_urlsstring[]OptionalDefault: —Up to three reference audio clips, each 5–30 seconds. Images, videos and audio together must not exceed 15 files.
omni_reference_task_typestringOptionalDefault: autoauto, reference, edit or extend. A standalone video_url requires edit or extend. Explicit reference treats image_urls as reference images.
audio_settingstringOptionalDefault: —origin keeps source audio; auto regenerates it. Available for editing and reference mode with video. Editing defaults to origin, reference to auto. Omit for extension.

Kling API Model Family

Compare Kling video models on APIMart. Check each model’s availability, capabilities and pricing on its own page.

ModelBest forResolutionDuration
Kling 4.0 APIThis pageText, frame and multimodal generation, video editing and extension, always with stereo audio720P / 1080P3–30 s
Kling 3.0 APICinematic text-to-video and image-to-video with first/last-frame control and multi-shot prompts720P / 1080P / 4K3–15 s
Kling 3.0 Omni APIAll-in-one generation from text, images and video, with reference roles and video editing720P / 1080P / 4K3–15 s
Kling 3.0 Turbo APISpeed-optimized text-to-video and first-frame image-to-video720P / 1080P3–15 s
Kling Video O1 APIThinking-driven generation focused on visual fidelity720P / 1080P5 s / 10 s
Kling 2.6 APINative audio (pro mode), dynamic masks and camera control720P / 1080P5 s / 10 s
Kling Motion Control 2.6 APITransfer motion from a reference video onto the subject of your image720P / 1080PFollows reference video
Kling 3.0 Motion Control APINewer V3 generation of reference-video motion transfer720P / 1080PFollows reference video