# KwaiVGI Kling V4 Image to Video API

> Kling V4 Image to Video by Kuaishou animates a start image, optionally toward an end image, into a 3-30 second video.

Source: https://www.sandbase.ai/models/kwaivgi/kling-video/v4/image-to-video
API reference: https://www.sandbase.ai/models/kwaivgi/kling-video/v4/image-to-video/docs

## Facts

- Provider: KwaiVGI
- Type: Video model
- Model ID: `kwaivgi/kling-video/v4/image-to-video`
- Price: From $1.18 per run
- Capabilities: image to video
- 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-video/v4/image-to-video",
  "image": "https://v3b.fal.media/files/b/rabbit/NaslJIC7F2WodS6DFZRRJ.png",
  "prompt": "A detective in a black trench coat stands on a rooftop in the rain, looking through a telescope at the street below.",
  "duration": 5,
  "end_image": "https://v3b.fal.media/files/b/tiger/BwHi22qoQnqaTNMMhe533.png",
  "resolution": "1080p"
}'
```

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 V4 Image to Video through SandBase?

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

## README

### Kling V4 Image to Video
Kling V4 image-to-video animates a start image, optionally toward an end image, into a 3–30 second clip.
#### Fields
| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Up to 2,500 characters. |
| `image` | image URL, required | — | First frame. Min 300×300 px, aspect ratio 0.4–2.5, up to 30 MB. |
| `end_image` | image URL | — | Optional last frame. |
| `resolution` | `720p` / `1080p` | `1080p` | Output resolution. |
| `duration` | 3–30 | 5 | Output length in seconds. |
#### Billing
Billed per output second: $0.157 at 720p, $0.235 at 1080p.
| Output | Price |
|---|---|
| 5s, 1080p (default) | $1.175 |
| 5s, 720p | $0.785 |
| 10s, 1080p | $2.35 |
| 30s, 1080p | $7.05 |
Failed runs are not charged.
#### Prompting
- Describe what moves and how the camera moves; the image sets the look.
#### Limits
- Clips are 3–30 seconds.
#### Also on SandBase
Other Kling V4 endpoints: `kwaivgi/kling-video/v4/text-to-video`, `kwaivgi/kling-video/v4/image-to-video`, `kwaivgi/kling-video/v4/reference-to-video`, `kwaivgi/kling-video/v4/video-edit`.
