# Kling 4.0

`kling-4` · Kling AI · Video Generation & Motion

Generate a video with sound from a text prompt. Describe the subject, the action, the camera move and what should be heard, then choose the resolution, framing and length.

[Model page](https://runstage.dev/models/kling-40) · [JSON](https://runstage.dev/models/kling-40.json) · [Catalog](https://runstage.dev/pricing) · [Playground](https://runstage.dev/playground?model=kling-4)

## Technical summary

- **Exact API model slug**: `kling-4`
- **Developer**: Kling AI
- **Inference types**: `txt2video`, `img2video`
- **Infrastructure**: Partner Cloud (Premium plan)
- **Headline rate**: Live estimate via /api/v2/quote (Partner rate (estimated before run))
- **Free quote endpoint**: `POST https://runstage.dev/api/v2/quote`

## Runstage routes

- **Text to Video** (`txt2video`): `POST /api/v2/quote` · `POST /api/v2/run` · `GET /api/v2/jobs/{request_id}` · `GET /api/v2/jobs/{request_id}/output` · `MCP runstage_generate_media`
- **Image to Video** (`img2video`): `POST /api/v2/quote` · `MCP runstage_quote`

## Best for

- Run Kling 4.0 via unified v2 jobs with free pre-run /price quotes
- Partner-hosted flagship model accessible on Premium accounts

## Billing notes

Partner external model (Premium plan required). Quote via /api/v2/quote returns an estimate (is_estimated: true); settled on completion.

## Quickstart (cURL)

```bash
# 1. Free pre-run retail quote
curl -X POST 'https://runstage.dev/api/v2/quote' \
  -H "Content-Type: application/json" \
  -d '{"model":"kling-4","width":1280,"height":720,"durationSec":4}'

# 2. Submit metered job
curl -X POST 'https://runstage.dev/api/v2/run' \
  -H "Authorization: Bearer $RUNSTAGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{   "model": "kling-4",   "prompt": "Stop-motion style: a square sheet of red origami paper on a wooden desk folds itself, crease by crease, into a paper crane, which then flaps its wings and lifts off the desk. Warm desk-lamp light, shallow depth of field, soft paper rustling sounds.",   "width": 1280,   "height": 720,   "frames": 96,   "fps": 24,   "seed": 42 }'

# 3. Poll owner-scoped job result until status is "done" or "failed"
curl -H "Authorization: Bearer $RUNSTAGE_API_KEY" \
  'https://runstage.dev/api/v2/jobs/<request_id>'
```
