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

Kling V4 Video Edit

kwaivgi/kling-video/v4/video-edit

Kling V4 Video Edit by Kuaishou edits a 3-30 second source video from a text instruction and optional reference images.

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

Try the model

Playground

Open playground
Input
Edit instruction. Refer to the source video as @Video1 and reference images as @Image1, @Image2, ...
Video to edit (3-30s, min 700x700 px, up to 300 MB). The output keeps its length.

PNG, JPEG, WebP, or GIF · 20 MiB maximum each · up to 10

Optional reference images, referenced as @Image1, @Image2, ...
Output resolution. Allowed values: 720p, 1080p.
OutputExample

Examples

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

Model card

Specifications

Pricing

Base price
$8.46 / 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/video-edit
Execution
async
Base URL
https://api.sandbase.ai
API
Unified Run API
Endpoint
/v1/run

API README

Kling V4 Video Edit

Kling V4 video edit changes a 3–30 second source video from a text instruction, with optional reference images. The output keeps the source length.

Fields

FieldTypeDefaultNotes
promptstring, required—Edit instruction. Refer to the source as @Video1 and images as @Image1, …
videovideo URL, required—3–30s, min 700×700 px, up to 300 MB.
imagesimage URL[]—Up to 10 reference images.
resolution720p / 1080p1080pOutput resolution.

Billing

$0.094 (720p) or $0.141 (1080p) per second, counted on input plus output (2× the source length). Settlement uses the output length (it matches the source); the quote before submission assumes a 30 second source when the length cannot be read.

SourcePrice
6s, 1080p$1.692
10s, 720p$1.88
30s, 1080p$8.46
Failed runs are not charged.

Prompting

  • State what to change and what to keep, e.g. "replace the jacket in @Video1 with the coat in @Image1".

Limits

  • Source videos 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/video-edit
# 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/video-edit",
  "prompt": "Change the background to a tropical island at sunset.",
  "resolution": "1080p"
}
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$8.46 / runOct 21, 2026
KwaiVGIVideo$1.18 / 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 Video Edit through SandBase?

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