# KwaiVGI Kling Image V4 Edit API

> Kling Image V4 Edit by Kuaishou edits or recomposes 1 to 10 reference images from a text instruction at native 2K, 4K or 8K resolution.

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

## Facts

- Provider: KwaiVGI
- Type: Image model
- Model ID: `kwaivgi/kling-image/v4/edit`
- Price: From $0.07 per run
- Capabilities: image 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/edit",
  "prompt": "Turn the scene in @Image1 into a snowy winter evening with warm window light, keep the composition.",
  "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 Edit through SandBase?

Create a SandBase API key, then send requests with the model ID "kwaivgi/kling-image/v4/edit" 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 Edit and the other models in the catalog; you do not need to sign up with KwaiVGI separately.

## README

### Kling Image V4 Edit
Kling Image V4 Edit edits or recomposes 1–10 reference images from a text instruction, at native 2K, 4K or 8K.
#### Fields
| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Refer to inputs as `@Image1`, `@Image2`, … |
| `images` | image URL[], required | — | 1–10 images (JPG/PNG, up to 30 MB, at least 300 px per side, aspect ratio 2:5–5:2). |
| `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
Per output image by resolution, plus $0.00315 per reference image.
| Request | Price |
|---|---|
| 1 reference, 2K (default) | $0.06615 |
| 3 references, 4K | $0.10395 |
| 1 reference, 8K | $0.16065 |
Failed runs are not charged.
#### Prompting
- Say what to change and what to keep, e.g. "put the bottle from @Image1 on the table in @Image2, keep its label".
#### Also on SandBase
Other Kling Image V4 endpoints: `kwaivgi/kling-image/v4`, `kwaivgi/kling-image/v4/edit`, `kwaivgi/kling-image/v4/long-image`.
