# KwaiVGI Kling Image V4 API

> Kling Image V4 by Kuaishou generates photorealistic images with accurate text rendering from a text prompt at native 2K, 4K or 8K resolution.

Source: https://www.sandbase.ai/models/kwaivgi/kling-image/v4
API reference: https://www.sandbase.ai/models/kwaivgi/kling-image/v4#api

## Facts

- Provider: KwaiVGI
- Type: Image model
- Model ID: `kwaivgi/kling-image/v4`
- Price: From $0.06 per run
- Capabilities: text to image
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "kwaivgi/kling-image/v4",
  "prompt": "A faceted glass perfume bottle on wet black slate, soft rim light, a small card beside it printed with \"NOCTURNE\" in thin serif letters, macro product photography.",
  "num_images": 1,
  "resolution": "2K",
  "aspect_ratio": "auto"
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call KwaiVGI Kling Image V4 through SandBase?

Create a SandBase API key, then send requests with the model ID "kwaivgi/kling-image/v4" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### Do I need a separate KwaiVGI account?

No. One SandBase API key and balance gives you access to KwaiVGI Kling Image V4 and the other models in the catalog; you do not need to sign up with KwaiVGI separately.

## README

### Kling Image V4
Kling Image V4 generates photorealistic images from a text prompt at native 2K, 4K or 8K, with sharp in-image text (up to about 2,000 characters, multilingual) and dense layouts.
#### Fields
| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Put any text to render in quotation marks. |
| `aspect_ratio` | `auto` / `16:9` / `9:16` / `1:1` / `4:3` / `3:4` / `3:2` / `2:3` / `21:9` | `auto` | `auto` picks a shape from the prompt and references. |
| `resolution` | `2K` / `4K` / `8K` | `2K` | Native output resolution. |
| `num_images` | 1–9 | 1 | Independent images, each billed. |
#### Billing
Billed per output image by resolution.
| Resolution | Per image |
|---|---|
| 2K (default) | $0.063 |
| 4K | $0.0945 |
| 8K | $0.1575 |
Failed runs are not charged.
#### Prompting
- Quote the exact text you want rendered, e.g. a poster title "SUMMER SALE".
- Describe subject, material, light and camera in order.
#### Also on SandBase
Other Kling Image V4 endpoints: `kwaivgi/kling-image/v4`, `kwaivgi/kling-image/v4/edit`, `kwaivgi/kling-image/v4/long-image`.
