# Kling 4.0 Video Edit - API, Playground & Pricing

> Run Kling 4.0 Video Edit by Kuaishou via API, Playground, or MCP from $0.564 per run - no provider API key needed. Restyle a real clip or swap what is in it, with references and keyframes, up to 30 seconds.

Page: https://flymy.ai/models/kling-4-0-video-to-video-edit/

Models / Video editing

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.

[▶ Try in Playground](https://app.flymy.ai/models/flymyai/kling-4_0-video-to-video-edit) [<> Get API](https://flymy.ai/models/kling-4-0-video-to-video-edit/#api)

**Provider**

[Kuaishou](https://flymy.ai/models/provider/kuaishou/)

**Category**

[Video editing](https://flymy.ai/models/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](https://flymy.ai/img/models/kling-4-0-video-to-video-edit.jpg)

Kling 4.0 Video Edit sample from the FlyMy.AI catalog

$ YOUR NEXT RUN

Claude Code, Codex, Cursor, Any 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.AI](https://app.flymy.ai/new-agent) [Download brief](https://flymy.ai/models/kling-4-0-video-to-video-edit.md)

## 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).

| Input | Type, values and default |
|---|---|
| [#](https://flymy.ai/models/kling-4-0-video-to-video-edit/#input-prompt) `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 |
| [#](https://flymy.ai/models/kling-4-0-video-to-video-edit/#input-video) `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 |
| [#](https://flymy.ai/models/kling-4-0-video-to-video-edit/#input-resolution) `resolution` | string optional Allowed: 720p, 1080p Default: `1080p` 720p ($0.094 per billed second) or 1080p ($0.141) |
| [#](https://flymy.ai/models/kling-4-0-video-to-video-edit/#input-duration) `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 |
| [#](https://flymy.ai/models/kling-4-0-video-to-video-edit/#input-aspect_ratio) `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 |
| [#](https://flymy.ai/models/kling-4-0-video-to-video-edit/#input-keep_audio) `keep_audio` | boolean optional Default: `false` true keeps the sound of your video instead of making new sound; no price effect |
| [#](https://flymy.ai/models/kling-4-0-video-to-video-edit/#input-images) `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 |
| [#](https://flymy.ai/models/kling-4-0-video-to-video-edit/#input-start_image_url) `start_image_url` | file optional Allowed: image file, as a URL or upload Optional first frame of the result; counts toward the ten pictures |
| [#](https://flymy.ai/models/kling-4-0-video-to-video-edit/#input-middle_image_urls) `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 |
| [#](https://flymy.ai/models/kling-4-0-video-to-video-edit/#input-end_image_url) `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.

[Every model's price →](https://flymy.ai/models/pricing/) [Usage pricing →](https://flymy.ai/pricing/)

## Kling 4.0 Video Edit vs similar models

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

| Model | Provider | Kind | Price | Default run | Resolution | Length |
|---|---|---|---|---|---|---|
| **Kling 4.0 Video Edit** | Kuaishou | Video editing | from $0.564 / run | $1.41 | 720p, 1080p | 3 to 30 seconds |
| [Gemini Omni 1.2 Flash Video Edit](https://flymy.ai/models/gemini-omni-1-2-flash-edit/) | Google | Video editing | from $0.024 / s | from $0.072 | 360p, 720p, 1080p, 4k |  |
| [Sync Lipsync 3](https://flymy.ai/models/sync-3-lipsync/) | sync. labs | Lip sync | from $0.133333 / run | about $1.33 |  |  |
| [Kling 4.0 Flash Video Edit](https://flymy.ai/models/kling-4-0-flash-video-to-video/) | Kuaishou | Video editing | from $0.378 / run | $0.63 |  | 3 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](https://app.flymy.ai/developers) 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.

## More reference video, editing and lip sync models

Keep characters and products from references, edit, extend, reframe or upscale a clip, dub it into another language, sync lips to a voice, make a photo talk or time a video to your audio.

### Kling 4.0 Reference to Video

Up to ten reference pictures kept consistent in a Kling 4.0 clip of up to 30 seconds.

Reference to video / from $0.157 / s

Link: https://flymy.ai/models/kling-4-0-reference-to-video/

### Kling 4.0 Flash Reference to Video

Fast Kling 4.0 clips that keep your characters and products from up to ten pictures.

Reference to video / $0.094 / s

Link: https://flymy.ai/models/kling-4-0-flash-reference-to-video/

### Kling 4.0 Flash Video Edit

Quick 720p restyles and swaps of a real clip, up to 20 seconds.

Video editing / from $0.378 / run

Link: https://flymy.ai/models/kling-4-0-flash-video-to-video/

### Wan 3.0 Reference to Video

Wan 3.0 from references: the same cast, location and voice across 30 seconds.

Reference to video / from $0.05 / s

Link: https://flymy.ai/models/wan-3-0-ref2v/

### Seedance 2.5 Reference to Video

Seedance 2.5 from many references: keep a cast consistent, or edit and extend a clip.

Reference to video / from $0.10794 / s

Link: https://flymy.ai/models/bytedance-seedance-2-5-reference-to-video/

### OmniHuman 2.0

One photo plus a voice track: a presenter, singer or character that moves in sync.

Talking video / $0.07 / s

Link: https://flymy.ai/models/bytedance-omnihuman-2-0/

## Go to the source

[Kling 4.0 Video Edit in the playground →](https://app.flymy.ai/models/flymyai/kling-4_0-video-to-video-edit), [Video editing models →](https://flymy.ai/models/video-editing/), [Kuaishou models →](https://flymy.ai/models/provider/kuaishou/), [Model endpoints in the docs →](https://docs.flymy.ai/api/models-endpoints), [Every model on FlyMy.AI →](https://flymy.ai/models/), [Model prices →](https://flymy.ai/models/pricing/), [Every MCP in the catalog →](https://flymy.ai/mcp/#catalog)

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.

---

For agents: the FlyMyAI operating guide (sign up, connect, run models, tools and agents) is https://flymy.ai/skill.md, and https://flymy.ai/llms.txt lists the other pages and the documentation.
