# KwaiVGI Kling V4 Flash Video Edit API

> Kling V4 Flash Video Edit by Kuaishou edits a 3-20 second source video into a 720p result from a text instruction and optional reference images.

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

## Facts

- Provider: KwaiVGI
- Type: Video model
- Model ID: `kwaivgi/kling-video/v4/flash/video-edit`
- Price: From $2.52 per run
- Capabilities: video 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/flash/video-edit",
  "prompt": "Change the background to a tropical island at sunset."
}'
```

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 Flash Video Edit through SandBase?

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

## README

### Kling V4 Flash Video Edit
Kling V4 Flash video edit changes a 3–20 second source video from a text instruction, with optional reference images. The 720p output keeps the source length.
#### Fields
| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Edit instruction. Refer to the source as `@Video1` and images as `@Image1`, … |
| `video` | video URL, required | — | 3–20s, min 700×700 px, up to 300 MB. |
| `images` | image URL[] | — | Up to 10 reference images. |
#### Billing
$0.063 per second, counted on input plus output (2× the source length). Settlement uses the output length (it matches the source); the quote before submission assumes a 20 second source when the length cannot be read.
| Source | Price |
|---|---|
| 5s | $0.63 |
| 10s | $1.26 |
| 20s | $2.52 |
Failed runs are not charged.
#### Prompting
- State what to change and what to keep, e.g. "replace the jacket in @Video1 with the coat in @Image1".
#### Limits
- Output is 720p only; source videos are 3–20 seconds.
#### Also on SandBase
Other Kling V4 Flash endpoints: `kwaivgi/kling-video/v4/flash/text-to-video`, `kwaivgi/kling-video/v4/flash/image-to-video`, `kwaivgi/kling-video/v4/flash/reference-to-video`, `kwaivgi/kling-video/v4/flash/video-edit`. For 1080p or clips up to 30 seconds, use Kling V4 (`kwaivgi/kling-video/v4/text-to-video` and its siblings).
