# Kling 4.0 Video Edit MCP and API by Kuaishou | FlyMy.AI

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

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

MCP / Models / Reference video, editing and lip sync

# Kling 4.0 Video Edit MCP: edit a clip from a prompt

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 from Claude Code, Codex, Cursor or any MCP client through one FlyMy.AI MCP, or call its API.

[Use Kling 4.0 Video Edit](https://flymy.ai/mcp/models/kling-4-0-video-to-video-edit/#start) [Inputs and price](https://flymy.ai/mcp/models/kling-4-0-video-to-video-edit/#inputs)

No API key, from $0.564 / run, Video editing, Kuaishou, Commercial use

$ 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/mcp/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/mcp/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/mcp/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/mcp/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/mcp/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/mcp/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/mcp/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/mcp/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/mcp/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/mcp/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/mcp/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/mcp/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.

[See usage pricing →](https://flymy.ai/pricing/)

## Call Kling 4.0 Video Edit from code

The same model, from an agent or from your own code. Keys stay in your FlyMy.AI account.

### From an agent, through the MCP

The 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"
  }
}
```

### From your code, over HTTP

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"
```

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

**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 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/mcp/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/mcp/models/kling-4-0-flash-video-to-video/

### 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/mcp/models/kling-4-0-reference-to-video/

### ByteDance Video Upscaler

Target-resolution upscaling to 8K with presets for AI clips, user video and old film.

Video upscaling / from $0.0072 / s

Link: https://flymy.ai/mcp/models/bytedance-video-upscaler/

### FLUX 3 Video Extend

FLUX 3 Video that picks up where your clip ends and carries on its motion, camera and scene.

Video extension / from $0.21 / s

Link: https://flymy.ai/mcp/models/flux-3-video-v2v/

### Gemini Omni 1.2 Flash Video Upscale

Google's own upscaler for Gemini Omni clips: take a draft to 1080p or 4K and keep its sound.

Video upscaling / from $0.035 / s

Link: https://flymy.ai/mcp/models/gemini-omni-1-2-flash-upscale/

## 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), [Model endpoints in the docs →](https://docs.flymy.ai/api/models-endpoints), [Reference video, editing and lip sync guide →](https://docs.flymy.ai/guides/generate-videos), [Every model on FlyMy.AI →](https://flymy.ai/mcp/models/), [Every MCP in the catalog →](https://flymy.ai/mcp/#catalog), [Usage pricing →](https://flymy.ai/pricing/)

From the FlyMy.AI model catalog of 2026-11-18: inputs from the 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.
