APIMart
Back to models
Kling Image 4.0 model icon
ImageImage generationImage series2K / 4K / 8K

Kling Image 4.0 API

Kling Image 4.0 is the image generation model from Kling AI, released on November 17, 2026. On APIMart it is available as kling-v4-image: generate images from text or from up to 10 reference images, choose 2K, 4K or 8K, and get 1 to 9 images or a series of 2 to 4 related images per request.

Generated image 1

Kling Image 4.0 API Pricing

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

Pricing by specification

VariantTierGoldCurrent pricePlatinumDiamondOfficialYour savings
kling-v4-image2K0.5714Credits/pic~$0.0571/pic0.5429Credits/pic~$0.0543/pic0.5143Credits/pic~$0.0514/pic0.5714Credits/pic~$0.0571/pic—
4K0.8571Credits/pic~$0.0857/pic0.8143Credits/pic~$0.0814/pic0.7714Credits/pic~$0.0771/pic0.8571Credits/pic~$0.0857/pic—
8K1.4286Credits/pic~$0.1429/pic1.3571Credits/pic~$0.1357/pic1.2857Credits/pic~$0.1286/pic1.4286Credits/pic~$0.1429/pic—
Reference image (each)0.0286Credits/pic~$0.0029/pic0.0271Credits/pic~$0.0027/pic0.0257Credits/pic~$0.0026/pic0.0286Credits/pic~$0.0029/pic—

* Actual costs are subject to final output.

Kling Image 4.0 API: Text to Image and Reference Images in One Request

The Kling Image 4.0 API on APIMart uses the model ID kling-v4-image. Describe the image, add up to 10 reference images if you need them, pick 2K, 4K or 8K and one of nine aspect ratios, then request 1 to 9 separate images or a series of 2 to 4 related images. Tasks run asynchronously and you pay per image returned.

Kling Image 4.0 API Example: Text to Image and Reference Images

Submit a kling-v4-image task, then poll it by task ID. Both examples use APIMart's asynchronous image task format.

  1. 1

    Authenticate Kling Image 4.0 API Requests

    Save your APIMart API key as APIMART_API_KEY. The examples send Authorization: Bearer <key> for submission and task queries.

  2. 2

    Submit a kling-v4-image Task

    POST /v1/images/generations with model set to kling-v4-image, your prompt, size and resolution. Add image_urls for reference images. Read the task ID from data[0].task_id.

  3. 3

    Get the Kling Image 4.0 Result

    Use GET /v1/tasks/{task_id}. For a completed task, read data.result.images[0].url[0]; for a failed task, read data.error.message.

    See the Kling Image 4.0 API documentation for every parameter and error code.

POST /v1/images/generations
curl -X POST https://api.apimart.ai/v1/images/generations \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling-v4-image",
    "prompt": "An orange cat sitting on a windowsill in the afternoon sun, realistic photography",
    "size": "1:1",
    "resolution": "2K",
    "n": 1
  }'

Kling Image 4.0 API Parameters

ParameterTypeRequiredDefaultDescription
modelstringRequiredDefault: kling-v4-imageModel ID for Kling Image 4.0.
promptstringRequiredDefault: —Image description, which can include positive and negative descriptions. Up to 50,000 English characters or 21,000 Chinese characters; mixed text counts proportionally. Refer to reference images as @Image1, @Image2 and so on.
image_urlsstring[]OptionalDefault: —0 to 10 reference images as public URLs. JPG, JPEG, PNG or GIF, up to 30 MB each, at least 300 px wide and tall, with an aspect ratio between 2:5 and 5:2.
sizestringOptionalDefault: autoAspect ratio: auto, 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3 or 21:9. You can also send it as aspect_ratio; if both are sent, aspect_ratio wins. Pixel sizes such as 2048x2048 are not supported.
resolutionstringOptionalDefault: 2K2K, 4K or 8K. The default is 2K. 8K is available when pricing is available. Case-insensitive (for example, 8k).
nintegerOptionalDefault: 1Number of images in single mode, 1 to 9. Cannot be greater than 1 in series mode.
sequential_image_generationstringOptionalDefault: disabledauto returns an image series; disabled or omitted returns single images.
sequential_image_generation_options.max_imagesintegerOptionalDefault: —Required in series mode: the number of images in the series, 2 to 4.