> ## Documentation Index
> Fetch the complete documentation index at: https://docs.unifically.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Kling Image 4.0

> Generate 2K-8K images, Series sets, and Long Image product pages and web designs with Kling Image 4.0. See modes, parameters, pricing, and API examples.

Generate realistic images with Kling Image 4.0, Kuaishou's image model released November 17, 2026. It renders 2K, 4K or native 8K output from a prompt and up to 10 reference images, writes long text into the image, and makes Series sets of 2–10 images that tell one story. Its two Long Image modes return a full e-commerce product detail page or a web page design as one tall image.

Try it in the browser: [Kling Image 4.0 API playground](https://unifically.com/models/kling-4.0-image).

## Model

```
kuaishou/kling-4.0-image
```

## Modes

Pick the mode with the `mode` field.

| Mode | What it returns | Resolution | Inputs |
| - | - | - | - |
| `standard` (default) | 1–9 images | `2k`, `4k`, `8k` | `prompt`, optional `image_urls` (up to 10), `aspect_ratio`, `num_images` |
| `series` | 2–10 images that tell one story, with the same subjects and style | `2k`, `4k`, `8k` | `prompt`, `num_images` (2–10, required), optional `image_urls` (up to 10), `aspect_ratio` |
| `product_page` | Long Image: one tall e-commerce product detail page | `1k`, `2k` | `prompt`, `image_urls` (1–3 product images, required), optional `page_length` |
| `web_design` | Long Image: one tall web page design | `1k`, `2k` | `prompt`, optional `style_image_url`, `subject_image_url` |

## Parameters

| Parameter | Type | Required | Default | Description |
| - | - | - | - | - |
| `prompt` | string | Yes | - | Text description. In `standard` and `series`, use `@Image1`, `@Image2` to reference `image_urls` |
| `mode` | string | No | `"standard"` | `"standard"`, `"series"`, `"product_page"` (Long Image), `"web_design"` (Long Image) |
| `resolution` | string | No | `"2k"` | `"2k"`, `"4k"`, `"8k"` in `standard` / `series`; `"1k"`, `"2k"` in `product_page` / `web_design` |
| `aspect_ratio` | string | No | `"auto"` | `standard` / `series` only: `"auto"`, `"1:1"`, `"16:9"`, `"9:16"`, `"4:3"`, `"3:4"`, `"3:2"`, `"2:3"`, `"21:9"`. Must stay `"auto"` in the Long Image modes |
| `image_urls` | string\[] | Conditional | - | `standard` / `series`: up to 10 reference images. `product_page`: 1–3 product images, required. Not allowed in `web_design` |
| `num_images` | integer | Conditional | `1` | `standard`: `1`–`9`. `series`: `2`–`10`, required (the default `1` is rejected). Must be `1` in the Long Image modes. Billed per image |
| `page_length` | string | No | `"medium"` | `product_page` only: `"short"` (2–5 sections), `"medium"` (6–10), `"long"` (11–18) |
| `style_image_url` | string | No | - | `web_design` only: optional style reference image URL |
| `subject_image_url` | string | No | - | `web_design` only: optional subject (logo, product or person) image URL |

## Pricing

### Standard and Series

Billed per output image. A request with `num_images: 3` at 4K costs three times the 4K rate.

| Resolution | Per image |
| - | - |
| `2k` | \$0.0504 |
| `4k` | \$0.0756 |
| `8k` | \$0.126 |

In `standard` mode each reference image in `image_urls` adds \$0.00252. `series` mode has no reference image charge.

### Long Image

One page per request.

| Mode | Length | 1K | 2K |
| - | - | - | - |
| `product_page` | `short` | \$0.189 | \$0.2268 |
| `product_page` | `medium` | \$0.378 | \$0.441 |
| `product_page` | `long` | \$0.63 | \$0.693 |
| `web_design` | - | \$0.441 | \$0.4788 |

## Example - Text-to-Image

```bash theme={null}
curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "kuaishou/kling-4.0-image",
    "input": {
      "prompt": "A street food vendor in Bangkok at night, steam rising from the wok, a hand-painted menu board with prices in Thai and English",
      "mode": "standard",
      "resolution": "4k",
      "aspect_ratio": "3:2"
    }
  }'
```

## Example - Reference Images

```bash theme={null}
curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "kuaishou/kling-4.0-image",
    "input": {
      "prompt": "@Image1 wearing the jacket from @Image2, walking through a rainy Tokyo street at night",
      "mode": "standard",
      "image_urls": [
        "https://example.com/model.jpg",
        "https://example.com/jacket.jpg"
      ],
      "num_images": 4,
      "resolution": "2k"
    }
  }'
```

## Example - Series

```bash theme={null}
curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "kuaishou/kling-4.0-image",
    "input": {
      "prompt": "Storyboard: a small robot carries a glowing seed through a snowstorm to an abandoned greenhouse, where the first sprout breaks through the soil",
      "mode": "series",
      "num_images": 6,
      "resolution": "2k",
      "aspect_ratio": "16:9"
    }
  }'
```

## Example - Long Image Product Page

```bash theme={null}
curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "kuaishou/kling-4.0-image",
    "input": {
      "prompt": "An English product detail page for a ceramic pour-over coffee set: hero shot, three selling points, brewing steps, materials and care, size chart",
      "mode": "product_page",
      "page_length": "medium",
      "image_urls": [
        "https://example.com/coffee-set-front.jpg",
        "https://example.com/coffee-set-side.jpg"
      ],
      "resolution": "2k"
    }
  }'
```

## Example - Long Image Web Design

```bash theme={null}
curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "kuaishou/kling-4.0-image",
    "input": {
      "prompt": "An English-only website for a small ceramics studio: hero banner, collections, about the makers, workshop booking, contact footer",
      "mode": "web_design",
      "style_image_url": "https://example.com/moodboard.jpg",
      "subject_image_url": "https://example.com/studio-logo.png",
      "resolution": "2k"
    }
  }'
```

## Response

```json theme={null}
{
  "code": 200,
  "success": true,
  "data": {
    "task_id": "abc123def456",
    "status": "processing"
  }
}
```

When the task completes, a single image comes back as `image_url`. When `num_images` is above 1 or the mode is `series`, the output carries `image_urls`, an array with every image, instead. The Long Image modes always return one image.

> [!NOTE]
>
> **Volume discounts** are available for almost all models. Reach out at [contact@unifically.com](mailto:contact@unifically.com) to discuss custom pricing.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.