Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用
MODEL 集合KUAISHOU · KLING 4.0

Kling 4.0 API

Kling 4.0 generates 3–30 second videos from text, images or references, and edits existing clips, at 720p or 1080p.

探索 model 陣容

預覽輸出風格、比較能力,然後開啟任一 model 查看完整規格、價格與即時 Playground。

Model lineup

The most used endpoints first.

ModelTaskWhat it does
Kling V4 Reference to VideoReference → videoKling V4 Reference to Video by Kuaishou generates a 3-30 second video that keeps characters, objects and motion from reference images and videos
Kling V4 Text to VideoText → videoKling V4 Text to Video by Kuaishou turns a text prompt into a 3-30 second video at 720p or 1080p
Kling V4 Image to VideoImage → videoKling V4 Image to Video by Kuaishou animates a start image, optionally toward an end image, into a 3-30 second video
Kling V4 Video EditVideo → videoKling V4 Video Edit by Kuaishou edits a 3-30 second source video from a text instruction and optional reference images

Kling 4.0 on SandBase

Kling 4.0 is the newest Kling generation. Its main change is clip length: every endpoint works with 3–30 second videos, up from 15 seconds on Kling 3.0.

  • Text to video: 3–30 seconds at 720p or 1080p.
  • Image to video: animate a start image, optionally toward an end image.
  • Reference to video: keep characters, objects and motion from reference images and videos.
  • Video edit: change a 3–30 second source clip with a text instruction and optional reference images.

Need 4K, Motion Control or talking avatars? Those are on Kling 3.0. Every version is on Kling API.

Start using Kling 4.0 API on SandBase

One API key and one request shape for every model on this page.

  1. 01

    Create an API key

    Sign in to the SandBase Console and create a key on the API Keys page. Keep it in an environment variable and never commit it to source control.

    終端機

    export SANDBASE_API_KEY="YOUR_SANDBASE_API_KEY"
  2. 02

    Submit a run

    Send a request to the Unified Run API with model kwaivgi/kling-video/v4/text-to-video. Only the model field changes between models on this page.

    終端機

    curl https://api.sandbase.ai/v1/run \
      -H "Authorization: Bearer $SANDBASE_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"model": "kwaivgi/kling-video/v4/text-to-video", "prompt": "A single drop of water falls from a leaf into a shallow dish, golden window light, macro shot"}'
  3. 03

    Fetch the result

    The response includes a run id. Poll it every few seconds until the status is completed, then download the output URL.

    終端機

    curl https://api.sandbase.ai/v1/run/$RUN_ID \
      -H "Authorization: Bearer $SANDBASE_API_KEY"

常見問題,一次看懂

How long can Kling 4.0 videos be?

3 to 30 seconds on every Kling 4.0 endpoint.

What resolutions does Kling 4.0 support?

Text to Video lists 720p and 1080p. Check each model page for its options.

Kling 4.0 or Kling 3.0?

Use 4.0 for clips longer than 15 seconds and reference-guided video. Use 3.0 for native 4K and Motion Control.

Can Kling 4.0 edit an existing video?

Yes. Kling V4 Video Edit changes a 3–30 second clip from a text instruction and optional reference images.

準備/設定/執行

用 Kling 4.0 API 開始建置。

一組 key、統一的 APIs,以及本頁每個 模型 都採用按用量計費。

取得您的 API key閱讀文件