Kling AI
Kling 4.0
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.
kling-4- Endpoint
POST /api/v2/run- Input
- Text prompt · Keyframes
- Output
- Video (MP4)
- Rate
- ~$0.2675 / 5s · 720p
Sample 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,…”
Best for
- Live text-to-video generation on POST /api/v2/run with consistent framing and motion (reference-frame inputs are quote-only today)
- Free pre-run cost quotes on POST /api/v2/quote before committing prepaid credits
- Partner flagship capacity billed from one Runstage prepaid balance, reconciled against final execution metrics
- API model ID
kling-4- Model developer
- Kling AI
- Modality
- Video Generation & Motion
- Input
- Text prompt · Keyframes
- Output
- Video (MP4)
- Endpoints
POST /api/v2/quotePOST /api/v2/runGET /api/v2/jobs/{request_id}GET /api/v2/jobs/{request_id}/outputMCP runstage_generate_mediaMCP runstage_quote- Infrastructure
- Partner cloud capacity
Request parameters
modelstring · requiredExact Runstage model slug (kling-4).
promptstring · requiredScene, subject, lighting, and camera movement description.
width / heightinteger · optionalOutput frame dimensions (e.g. 768×512 or 1344×768).
frames / fpsinteger · optionalClip frame count and framerate (24 fps default, up to 241 frames).
Additional parameters
stepsnegative_promptseedguidanceenhance_prompt
Quickstart
Copy a working request using model ID kling-4. Check a free pre-run quote first (final cost settles on completion), then run with your Runstage API key.
# 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>'Pricing
| Billable unit and options | Rate (USD) |
|---|---|
| 5s clip · 720p (1280×720)HD video with synced audio (estimated) | ~$0.2675 |
| 5s clip · 1080p (1920×1080)Full HD video with synced audio (estimated) | ~$0.3412 |
| 10s clip · 1080p (1920×1080)Extended Full HD sequence (estimated) | ~$0.6824 |
Billing notes
- Partner external model (Premium plan required). Quote via /api/v2/quote returns an estimate (is_estimated: true); settled on completion.
- Free pre-run cost estimates are available via POST /api/v2/quote before committing prepaid credits.
- Upfront reservations automatically reconcile against settled execution cost on completion or failure, refunding any unused reserved credits.
- Served via partner external capacity; final settled cost reconciles against reported execution metrics.
Live catalog rates on Runstage. Prepaid USD credits with per-key spend caps.
Compare in full catalog