# Kling Image 4.0 API

> Kuaishou's Kling Image 4.0: text to image and image editing, up to 8K. By Kuaishou, on Revana from $0.08 per image.

- Model id: `kling-image-4.0`
- Kind: image
- Maker: Kuaishou
- Tasks: Text to image, Image to image
- Resolutions: 2K, 4K, 8K
- Input images: up to 10
- Routes: 2 (starts on the cheapest, falls back automatically)
- Status: live on the API
- Page: https://revana.si/models/kling-image-4.0

## Price (per image, USD)

| Setting | Price | Credits |
|---|---|---|
| 2K | $0.08 | 8 |
| 4K | $0.11 | 11 |
| 8K | $0.18 | 18 |

100 credits = $1. Charged once, only for the route that succeeds; failed generations cost nothing.

## Request

POST https://api.revana.si/v1/generations with `Authorization: Bearer $REVANA_API_KEY` and an `Idempotency-Key` header: one key per request, made once and sent again on every resend after a timeout, a 429 or a 5xx, so the request is never made or charged twice. After a generation has failed, use a new key.

```json
{
  "model": "kling-image-4.0",
  "input": {
    "prompt": "A product photo of a ceramic coffee cup on a linen tablecloth, soft morning light",
    "resolution": "2K"
  },
  "max_cost_usd": 0.12
}
```

`max_cost_usd` is your cap, the most this request may cost (it lists at $0.08). Poll `GET /v1/generations/{id}` until `status` is `succeeded` or `failed`, then download `GET /v1/generations/{id}/content`. Full API: https://revana.si/llms.txt

## Similar models

- [Nano Banana Pro](https://revana.si/models/nano-banana-pro.md): from $0.04 per image
- [Nano Banana 2](https://revana.si/models/nano-banana-2.md): from $0.03 per image
- [GPT Image 2](https://revana.si/models/gpt-image-2.md): from $0.03 per image
- [Soul 2](https://revana.si/models/soul-2.md): from $0.01 per image
- [Nano Banana](https://revana.si/models/nano-banana.md): from $0.03 per image
- [GPT Image 1.5](https://revana.si/models/gpt-image-1.5.md): from $0.01 per image

