Kling Image 4.0
Generate or edit images in native 2K, 4K, or 8K, with up to 10 reference images.
| Model ID | Alias | Endpoint |
|---|---|---|
klingai/kling-image-4.0 |
kling-image-4.0 |
Image generation |
Input modes
| Mode | References | Reference roles |
|---|---|---|
text Text only |
— | — |
image Image input |
1 to 10 | reference_image |
Prompt limit: 21,000 characters; longer prompts are rejected with 400.
Parameters
| Parameter | Description | Values | Default | Required |
|---|---|---|---|---|
resolution |
Resolution: Output resolution. | 2K, 4K, 8K |
2K |
No |
aspect_ratio |
Aspect ratio: Output aspect ratio. | 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9 |
1:1 |
No |
n |
Outputs per request: Number of outputs from one API request (one Job), not the application batch size. For multiple Jobs, submit separate requests; n=1 does not prevent application-managed batching. | 1 |
1 |
No |
Examples
text input:
{
"model": "klingai/kling-image-4.0",
"input": {
"type": "text",
"prompt": "A watercolor fox reading a map in a pine forest"
},
"parameters": {
"resolution": "2K",
"aspect_ratio": "1:1",
"n": 1
}
}
image input:
{
"model": "klingai/kling-image-4.0",
"input": {
"type": "image",
"prompt": "A watercolor fox reading a map in a pine forest",
"references": [
{
"role": "reference_image",
"file_id": "file_..."
}
]
},
"parameters": {
"resolution": "2K",
"aspect_ratio": "1:1",
"n": 1
}
}
The authoritative contract is GET /v1/models/klingai/kling-image-4.0?view=contract. A valid parameter does not mean every channel can run it, so quote the complete request. Prices and channels are listed in Model Market.