# KwaiVGI Kling V4 Flash Text to Video API

> Kling V4 Flash Text to Video by Kuaishou turns a text prompt into a 3-20 second 720p video at a lower price than Kling V4.

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

## Facts

- Provider: KwaiVGI
- Type: Video model
- Model ID: `kwaivgi/kling-video/v4/flash/text-to-video`
- Price: From $0.47 per run
- Capabilities: text 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/text-to-video",
  "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,
  "aspect_ratio": "16:9"
}'
```

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

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

## README

### Kling V4 Flash Text to Video
Kling V4 Flash text-to-video is the faster, lower-cost tier of Kling V4: write a scene and get back a 3–20 second 720p clip with sound.
#### Fields
| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Describe subject, action, camera and light. |
| `aspect_ratio` | `16:9` / `9:16` / `1:1` / `21:9` | `16:9` | Output frame shape. |
| `duration` | 3–20 | 5 | Output length in seconds. |
#### Billing
Billed per output second: $0.094 at 720p.
| Output | Price |
|---|---|
| 5s (default) | $0.47 |
| 10s | $0.94 |
| 20s | $1.88 |
Failed runs are not charged.
#### Prompting
- Describe subject, action, camera move and light in order.
#### Limits
- Output is 720p only; clips 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).
