🔥 Black Friday AI API deals are live· 🎬 Seedance 2.5 — 20% off, up to 42% below market, until Nov 30Ends in--d --:--:--See deals →

Kling 4.0 Image Edit: AI Image Editor

Edit and compose images from up to 10 references with the Kling 4.0 Image Edit API. Named elements, series mode and up to 8K. Pay per generation, no subscription.

Interactive model controls

Kling 4.0 Image Edit edits and composes images from up to 10 reference images and named subjects, with series mode and 2K, 4K or 8K output.

📝

Overview

About this model

Kling 4.0 Image Edit edits and composes images from up to 10 reference images, which you call in the prompt as @image_1, @image_2. Named elements let you lock a character, prop or costume from 2-4 angles and reuse it as @name, and series mode produces a coherent set. Output is 2K, 4K or 8K in nine aspect ratios. For prompt-only generation see Kling 4.0 Text to Image; for long pages see Kling 4.0 Long Image.

1Character Consistency: Keep one character or product identical across a set of scenes with elements and series mode.
2Product Photography: Place a product from reference photos into new scenes and styles.
3Storyboards and Campaigns: Generate a coherent sequence of frames in one request.
4Poster and Text Rendering: Render quoted text inside the image for posters and ads.
💰

Pricing & Value

Cost analysis

muapiappFrom $0.066 per image (2K, 1 reference)

Pay per generation, no subscription.

Fal.aiNot available

Kling 4.0 Image Edit is not listed.

ReplicateNot available

Kling 4.0 Image Edit is not listed.

** Competitor pricing is estimated based on similar model architectures and usage tiers.

⚙️

Technical Details

Configuration schema

Promptstring

Text prompt (max 20000 characters). Mention reference images as @image_1, @image_2 in array order and elements as @name. Put text to render inside quotation marks.

Default ValueA red apple on a white table, studio lighting, photorealistic
Image URLsarray

Reference images (1-10) to edit or compose. Mention them in the prompt as @image_1, @image_2 in array order.

Default Valuehttps://static.aiquickdraw.com/tools/example/1764851484363_ScV1s2aq.webp
Elementsarray

Optional subjects for this task, mentioned in the prompt as @name. Images plus elements cannot exceed 10.

Default Value-
ModeEnum (2 options)

default: standard generation (count 1-9). series: a coherent set of images (count 2-10).

Default Valuedefault
ResolutionEnum (3 options)

Output resolution. 2k/4k usually return PNG, 8k returns JPEG.

Default Value2k
Aspect RatioEnum (9 options)

Output aspect ratio. auto lets the model choose from the prompt and references.

Default Valueauto
Number of Imagesinteger

Number of images to generate (1-9 in default mode, 2-10 in series mode).

Default Value1
📖

Implementation Guide

Developer documentation

How to Use the Kling 4.0 Image Edit API

  1. Write the edit prompt (up to 20,000 characters). Put any text you want rendered inside quotation marks.

  2. Add references: pass 1-10 URLs in images_list and mention them as @image_1, @image_2 in order. Add named subjects in elements (2-4 images each) and mention them as @name. References and elements together cannot exceed 10.

  3. Pick mode, resolution, aspect_ratio and count: default mode returns 1-9 images, series mode returns 2-10 coherent images. Resolution is 2k, 4k or 8k.

  4. Submit and poll the returned request_id, or pass a webhook URL.

curl -X POST https://api.muapi.ai/api/v1/kling-4.0-image-edit \
  -H "x-api-key: $MUAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "Place @image_1 on a marble kitchen counter, soft morning light", "images_list": ["https://example.com/product.png"], "resolution": "2k", "aspect_ratio": "1:1", "count": 1}'
❓

Common Questions

Frequently asked

What is Kling 4.0 Image Edit?

Kling 4.0 Image Edit is Kling's image editing model. It edits and composes images from up to 10 reference images and named elements, with a series mode for coherent sets.

How much does the Kling 4.0 Image Edit API cost?

Each output image costs $0.063 at 2K, $0.094 at 4K and $0.157 at 8K, plus $0.003 per input image. For example, 1 image at 2K with 1 reference is $0.066 and 2 images at 4K with 3 references is $0.197.

How do I use reference images in the prompt?

List the URLs in `images_list` and mention them as `@image_1`, `@image_2` in the same order. Referencing an image you did not provide returns a validation error.

What is series mode?

Set `mode` to `series` and `count` to 2-10 to generate a coherent set of images, such as the same character across a day. In `default` mode `count` can be 1-9.

What resolutions and aspect ratios are supported?

Resolutions are 2k, 4k and 8k (2k and 4k usually return PNG, 8k returns JPEG). Aspect ratios are auto, 9:16, 2:3, 3:4, 1:1, 4:3, 3:2, 16:9 and 21:9.

How do I get the result?

Requests are asynchronous: submit a job, then poll the returned `request_id` or pass a `webhook` URL to be notified on completion.

Is there a sandbox for testing?

Yes. Sandbox API keys return mock results instantly with no credits deducted.