API Free WeekHundreds of APIs are free to call this week.Browse free APIs

Kling V4 Text to Video

kwaivgi/kling-video/v4/text-to-video

Kling V4 Text to Video by Kuaishou turns a text prompt into a 3-30 second video at 720p or 1080p.

Base price
$1.18USD / run
Execution
async
Model type
video
Input fields
4
Production route

Try the model

Playground

Open playground
Input
Describe subject, action, camera and light.
Output frame shape. Allowed values: 16:9, 9:16, 1:1, 21:9.
Output resolution. Allowed values: 720p, 1080p.
330
Output length in seconds (3-30). Range: 3 to 30.
OutputExample

Examples

Select an example to load its inputs and result into the playground.

Model card

Specifications

Pricing

Base price
$1.18 / run

Context & modalities

Input
Schema-defined
Output
video

Capabilities

Chat
Not supported
Vision
Not supported
Reasoning
Not supported
Structured output
Not supported
Function calling
Not supported
Audio input
Not supported

Access

Provider
KwaiVGI
Model ID
kwaivgi/kling-video/v4/text-to-video
Execution
async
Base URL
https://api.sandbase.ai
API
Unified Run API
Endpoint
/v1/run

API README

Kling V4 Text to Video

Kling V4 text-to-video: write a scene and get back a 3–30 second clip at 720p or 1080p.

Fields

FieldTypeDefaultNotes
promptstring, required—Up to 2,500 characters.
aspect_ratio16:9 / 9:16 / 1:1 / 21:916:9Output frame shape.
resolution720p / 1080p1080pOutput resolution.
duration3–305Output length in seconds.

Billing

Billed per output second: $0.157 at 720p, $0.235 at 1080p.

OutputPrice
5s, 1080p (default)$1.175
5s, 720p$0.785
10s, 1080p$2.35
30s, 1080p$7.05
Failed runs are not charged.

Prompting

  • Describe subject, action, camera move and light in order.

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.

Start building

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

Production API
Unified Run API endpoint
https://api.sandbase.ai/v1/run
Model ID
kwaivgi/kling-video/v4/text-to-video
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "model": "kwaivgi/kling-video/v4/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,
  "resolution": "1080p",
  "aspect_ratio": "16:9"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
  status=$(printf '%s' "$result" | jq -r .status)
  case "$status" in completed|failed|timeout) break ;; esac
  sleep 2
  result=$(curl --fail-with-body --silent \
    -H "Authorization: Bearer $SANDBASE_API_KEY" \
    "https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"

Choose your model

Compare models

All image & video models
ModelTypeDefault priceReleased
KwaiVGIVideo$1.18 / runOct 21, 2026
KwaiVGIVideo$8.46 / runOct 21, 2026
KwaiVGIVideo$1.18 / runOct 21, 2026
KwaiVGIVideo$1.18 / runOct 21, 2026
KwaiVGIVideo$2.10 / runOct 5, 2026
KwaiVGIVideo$2.10 / runOct 5, 2026

Questions

FAQ

How do I call KwaiVGI Kling V4 Text to Video through SandBase?

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