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.

$ YOUR NEXT RUN
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.
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 |
|---|---|
# 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.
flymyai/kling-4_0-video-to-video-editflymyai/kling-4_0-video-to-video-editflymyai/kling-4_0-video-to-video-editKling 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.
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.
Go to the source
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.





