APIMart
Kling Image 4.0 model icon
Image

Kling Image 4.0 API

Kling Image 4.0 is the upcoming image model from Kling AI. Kling has announced it as coming soon but has not published its specs, pricing or release date. The workspace below follows the official Kling Image 3.0 Omni parameters until Kling Image 4.0 details are available.

Coming soonImage generationRequest workspace

Kling Image 4.0 API workspace

  • Announced by Kling AI as coming soon
  • Workspace parameters follow Kling Image 3.0 Omni for now
  • Specs, pricing and release date not yet published
Input

Kling has not published Kling Image 4.0 specs yet. This workspace follows the official Kling Image 3.0 Omni parameters, and RUN stays disabled until launch.

131/2500

Up to 2,500 characters. Refer to reference images by their order, such as <<<image_1>>>.

0/10

Up to 10 public http(s) image URLs. Kling Image 3.0 Omni accepts JPG or PNG up to 10 MB, at least 300 px, with an aspect ratio between 1:2.5 and 2.5:1.

Output

Your images will appear here

Kling Image 4.0 API: What Kling Has Announced So Far

Kling AI describes Kling Image 4.0 as "stunningly realistic, sharp, precise" and says it is coming soon. Until Kling publishes the details, this page sticks to what is official, and the workspace lets you prepare kling-image-4-0 requests using the parameters of the current Kling Image 3.0 Omni model.

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

These Kling Image 4.0 API examples use APIMart's common asynchronous task format and the workspace parameters, which follow Kling Image 3.0 Omni until Kling publishes the Kling Image 4.0 specs.

  1. 1

    Authenticate Kling Image 4.0 API Requests

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

  2. 2

    Submit a kling-image-4-0 Task

    POST /v1/images/generations with model set to kling-image-4-0, 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 APIMart documentation for APIMart authentication and general API usage.

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-image-4-0",
    "prompt": "A rain-soaked neon street at night, a cyclist in a yellow raincoat passing a ramen stall, cinematic lighting and sharp reflections",
    "size": "16:9",
    "resolution": "2k",
    "n": 1
  }'

Kling Image 4.0 API Parameters

ParameterTypeRequiredDefaultDescription
modelstringRequiredDefault: kling-image-4-0The model value used in this Kling Image 4.0 workspace and its examples. The final model ID will be confirmed when the model goes live.
promptstringRequiredDefault: —Image description, up to 2,500 characters. Refer to reference images as <<<image_1>>>, <<<image_2>>> and so on, in array order.
image_urlsstring[]OptionalDefault: —Up to 10 reference images as public http(s) URLs. Kling Image 3.0 Omni accepts JPG or PNG files up to 10 MB, at least 300 px, with an aspect ratio between 1:2.5 and 2.5:1.
sizestringOptionalDefault: autoAspect ratio: 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9 or auto.
resolutionstringOptionalDefault: 1k1k, 2k or 4k.
result_typestringOptionalDefault: singlesingle for separate images, series for a set of related images.
nintegerOptionalDefault: 1Number of images, 1 to 9. Only used when result_type is single.
series_amountinteger | stringOptionalDefault: 4Number of images in a series, 2 to 9, or auto to let the model decide. Only used when result_type is series.
watermarkbooleanOptionalDefault: falseWhether to also return a watermarked result.