Models / Video editing

Kling 4.0 Video Edit - API, Playground & Pricing

Kling 4.0 Video Edit changes a 3 to 30 second video from a prompt: restyle it, swap the background, an object or the weather, or add a character. Run it in the playground, call its API, or let Claude Code, Codex or Cursor run it through one FlyMy.AI MCP. No Kuaishou API key: runs are billed to your FlyMy.AI balance.

Provider
Kuaishou
Category
Video editing / Video editing
Price
from $0.564 / run ($1.41 at the defaults)
Resolution
720p, 1080p
Aspect ratio
16:9, 9:16, 1:1, 4:3, 3:4, 21:9
Length
3 to 30 seconds
Returns
video
Commercial use
Allowed
Model ID
flymyai/kling-4_0-video-to-video-edit
Kling 4.0 Video Edit by Kuaishou: video editing sample, edit a clip from a prompt
Kling 4.0 Video Edit sample from the FlyMy.AI catalog

$ YOUR NEXT RUN

Claude CodeCodexCursorAny agent

Use Kling 4.0 Video Edit in your assistant

Paste this prompt into Claude Code, Codex, Cursor or any agent. It reads the guide and helps you connect.

Read https://flymy.ai/skill.md and https://flymy.ai/models/kling-4-0-video-to-video-edit.md. Help me connect the FlyMy.AI MCP to this assistant, then run Kling 4.0 Video Edit (flymyai/kling-4_0-video-to-video-edit) for this task: With Kling 4.0 Video Edit, make the car in my clip red and keep everything else the same.
Open FlyMy.AIDownload brief

What Kling 4.0 Video Edit does

Send prompt (up to 26,000 characters) and video, an MP4 or MOV of 3 to 30 seconds, up to 300 MB, 700 to 4,553 pixels a side and no more pixels than 3840x2160, at 24 to 60 frames per second; name it @Video1 in the prompt. images holds up to ten references named @Image1 and on, and start_image_url, middle_image_urls and end_image_url fix frames (all count toward the ten). resolution is 720p or 1080p, duration and aspect_ratio default to your video's, and keep_audio keeps its sound. It is billed by the seconds of your video plus the seconds of the result. It renders no 4K, takes no reference videos, elements or voices and does not make a video from text alone.

Kling 4.0 Video Edit inputs

Every input of flymyai/kling-4_0-video-to-video-edit as its live schema lists them. Returns video (array).

InputType, values and default
# prompt
string required What to change and what to keep; name your video @Video1 and the pictures @Image1, @Image2, ... in the order you send them
# video
file required Allowed: video file, as a URL or upload The video to edit, @Video1 in the prompt: a link or an upload, 3-30 seconds, MP4 or MOV, up to 300 MB, 700-4553 pixels a side and no more pixels than 3840x2160, width 0.4-2.5 times the height, 24-60 fps. The price follows its length: $0.094 at 720p or $0.141 at 1080p per second of your video (rounded up) plus the result's, at least twice the result's
# resolution
string optional Allowed: 720p, 1080p Default: 1080p 720p ($0.094 per billed second) or 1080p ($0.141)
# duration
integer optional Allowed: 3 to 30 Length of the result, 3-30 seconds; left out, your video's length. Set it here, not in the prompt: the price counts it
# aspect_ratio
string optional Allowed: auto, 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 Shape of the result: auto (follows the inputs), 16:9, 9:16, 1:1, 4:3, 3:4 or 21:9; left out, your video's shape
# keep_audio
boolean optional Default: false true keeps the sound of your video instead of making new sound; no price effect
# images
string optional Up to ten reference pictures (characters, objects, a style), @Image1, @Image2, ... in the prompt; links or uploads: at least 300 pixels a side, up to 30 MB, aspect ratio 0.4-2.5; no price effect
# start_image_url
file optional Allowed: image file, as a URL or upload Optional first frame of the result; counts toward the ten pictures
# middle_image_urls
string optional Optional keyframes between the first and the last frame, in order, up to 8; they count toward the ten pictures
# end_image_url
file optional Allowed: image file, as a URL or upload Optional last frame of the result; counts toward the ten pictures

Ask your agent

Requests to paste as they are, once the FlyMy.AI MCP is connected.

“With Kling 4.0 Video Edit, make the car in my clip red and keep everything else the same.”runs flymyai/kling-4_0-video-to-video-edit
“Change the weather in my video to falling snow with Kling 4.0 Video Edit.”runs flymyai/kling-4_0-video-to-video-edit
“Restyle my clip as a pencil sketch animation with Kling 4.0 Video Edit.”runs flymyai/kling-4_0-video-to-video-edit

Kling 4.0 Video Edit price

From $0.564 per run, depending on resolution, duration and the length of the video you send. A 5-second video costs $1.41 with the default settings. A run at the default settings costs $1.41. A run costs $0.564 to $8.74, depending on resolution and duration and video. Billed to your FlyMy.AI balance; no seats, no subscription and no minimum.

Kling 4.0 Video Edit vs similar models

Popular video editing models beside it, with prices from billing and settings from each live schema.

ModelProviderKindPriceDefault runResolutionLength
Kling 4.0 Video EditKuaishouVideo editingfrom $0.564 / run$1.41720p, 1080p3 to 30 seconds
Gemini Omni 1.2 Flash Video EditGoogleVideo editingfrom $0.024 / sfrom $0.072360p, 720p, 1080p, 4k
Sync Lipsync 3sync. labsLip syncfrom $0.133333 / runabout $1.33
Kling 4.0 Flash Video EditKuaishouVideo editingfrom $0.378 / run$0.633 to 20 seconds

Kling 4.0 Video Edit API

The same model from your own code or from an agent. Send your FlyMy.AI API key in the X-API-KEY header; get a key in your account.

cURL

Form fields, not JSON; files go as uploads or public URLs. The answer is a prediction_id; read the result at https://api.flymy.ai/api/v1/flymyai/kling-4_0-video-to-video-edit/predict/async/result/?request_id=<prediction_id>.

curl -X POST https://api.flymy.ai/api/v1/flymyai/kling-4_0-video-to-video-edit/predict/async/ \
  -H "X-API-KEY: $FLYMYAI_API_KEY" \
  -F 'prompt=Keep the subject and its motion, set the scene on a beach at golden hour' \
  -F "video=@clip.mp4"

Python

The FlyMy.AI SDK sends the same fields; a file input also takes a public URL.

# pip install flymyai
import os

from flymyai import client

fma = client(apikey=os.environ["FLYMYAI_API_KEY"])
task = fma.predict_async_task(
    model="flymyai/kling-4_0-video-to-video-edit",
    payload={
        "prompt": "Keep the subject and its motion, set the scene on a beach at golden hour",
        "video": "https://example.com/clip.mp4"
    },
)
# a long run: wait for its result (up to 15 minutes here)
result = task.result(timeout=900)
print(result.inference_responses[0].output_data)

JavaScript / TypeScript

The FlyMy.AI SDK sends the same fields; a file input also takes a public URL.

// npm install flymyai-js-client
import { FlyMyAI } from "flymyai-js-client";

const client = new FlyMyAI({ apiKey: process.env.FLYMYAI_API_KEY });
const response = await client.predict(
  {
    "prompt": "Keep the subject and its motion, set the scene on a beach at golden hour",
    "video": "https://example.com/clip.mp4"
  },
  "flymyai/kling-4_0-video-to-video-edit",
);
console.log(response.output_data);

MCP

Your agent calls get_model_schema, then run_model with:

{
  "endpoint_id": "flymyai/kling-4_0-video-to-video-edit",
  "input": {
    "prompt": "Keep the subject and its motion, set the scene on a beach at golden hour",
    "video": "https://example.com/clip.mp4"
  }
}

Questions about Kling 4.0 Video Edit

Do I need a Kuaishou API key for Kling 4.0 Video Edit?

No. Kling 4.0 Video Edit runs on FlyMy.AI's account, so you need no Kuaishou key or plan: sign in to FlyMy.AI once and each run is billed to your FlyMy.AI balance.

How much does Kling 4.0 Video Edit cost?

From $0.564 per run, depending on resolution, duration and the length of the video you send. A 5-second video costs $1.41 with the default settings. There is no subscription or minimum; the price comes from FlyMy.AI billing and was checked on 2026-11-18.

Can I try Kling 4.0 Video Edit before I write code?

Yes. Open Kling 4.0 Video Edit in the FlyMy.AI playground at https://app.flymy.ai/models/flymyai/kling-4_0-video-to-video-edit, fill in its inputs and run it; the same run is one API call later, billed the same way.

How do I use Kling 4.0 Video Edit in Claude Code, Codex or Cursor?

Add the FlyMy.AI MCP with one command and sign in, then ask in plain words, for example: "With Kling 4.0 Video Edit, make the car in my clip red and keep everything else the same." Your agent reads the inputs with get_model_schema and runs flymyai/kling-4_0-video-to-video-edit with run_model.

What does Kling 4.0 Video Edit need as input?

Kling 4.0 Video Edit requires prompt and video; it also takes 8 optional inputs, each listed on this page with its allowed values and default.

Can I call Kling 4.0 Video Edit from my own code?

Yes. Send form fields to https://api.flymy.ai/api/v1/flymyai/kling-4_0-video-to-video-edit/predict/async/ with your FlyMy.AI API key in the X-API-KEY header.

Go to the source

From the FlyMy.AI model catalog of 2026-11-18: inputs from each model's live schema, prices from FlyMy.AI billing. Requests are examples to paste, not recorded runs.