Video to video

Video to video API

The models that take a video in and give a changed video back: make the character from your photo perform the moves of a reference clip, swap the person in a shot, restyle a scene or edit it with a text instruction. Run them in the browser playground or through the API on one MegaBrain key, paid from a prepaid US-dollar balance.

The short answer

MegaBrain runs 9 video-to-video models on one API key: HappyHorse 1.0 — video edit, Wan 2.7 — video edit, Wan 2.6, Wan 2.6 Flash, Kling 3.0 Omni, Kling 2.6 — motion control, Kling 3.0 — motion control, Wan 2.2 Animate — move and Wan 2.2 Animate — replace. At default settings the lowest price is Wan 2.6 Flash at $0.012 per second of video, so a 5-second clip costs $0.06; the highest is HappyHorse 1.0 — video edit at $0.168 per second of input. Prices are in US dollars from the live MegaBrain catalogue; a job the provider fails is refunded in full.

Video-to-video models and prices

Prices in US dollars from the MegaBrain catalogue; they update automatically. Each model’s page has examples, every parameter and a playground.

HappyHorse 1.0 — video edit

$0.168

HappyHorse 1.0: edits a 3–60 s video from an instruction — restyle it, swap what is in it, keep or remake its sound; up to 5 reference images.

Video to videoper second of video

Wan 2.7 — video edit

$0.096

Alibaba Wan 2.7: edits a 2–10 s video from a prompt and an optional reference image, 720p or 1080p.

Video to videoper second of video

Wan 2.6 — video to video

$0.042

Alibaba Wan 2.6: a new 5 or 10 s video that follows the people, motion and look of up to 3 reference videos, 720p or 1080p.

Video to videoper second of video

Wan 2.6 Flash — video to video

$0.012

Alibaba Wan 2.6 Flash: a fast 5 or 10 s video from up to 3 reference videos, 720p or 1080p, optional sound.

Video to videoper second of video

Kling 3.0 Omni — video to video

$0.1362

Kuaishou Kling 3.0 Omni: transforms a 3–15 s video from a prompt — a new style, setting or subjects, with up to 4 reference images; 720p to 4K.

Video to videoper second of video

Kling 2.6 — motion control

$0.0756

Kuaishou Kling 2.6 Motion Control: the person in your image performs the moves of a 3–30 s reference video, 720p or 1080p.

Video to videoper second of video

Kling 3.0 — motion control

$0.1362

Kuaishou Kling 3.0 Motion Control: the person in your image performs the moves of a reference video, 720p or 1080p.

Video to videoper second of video

Wan 2.2 Animate — move

$0.075

Alibaba Wan 2.2 Animate Move: the character in your image performs the motion and expressions of a reference video, 720p.

Video to videoper second of video

Wan 2.2 Animate — replace

$0.036

Alibaba Wan 2.2 Animate Replace: swaps the person in a video for the character in your image, keeping the scene, light and motion; 480p to 720p.

Video to videoper second of video
ModelTaskPrice
HappyHorse 1.0 — video edit
alibaba/happyhorse-1.0/video-edit
Video to video$0.168 per second of input
Wan 2.7 — video edit
alibaba/wan-2.7/video-edit
Video to video$0.096 per second of input
Wan 2.6 — video to video
alibaba/wan-2.6/video-to-video
Video to video$0.042 per second of video
Wan 2.6 Flash — video to video
alibaba/wan-2.6-flash/video-to-video
Video to video$0.012 per second of video
Kling 3.0 Omni — video to video
kling-video/o3/video-to-video
Video to video$0.1362 per second of input
Kling 2.6 — motion control
kling-video/v2.6/motion-control
Video to video$0.0756 per second of input
Kling 3.0 — motion control
kling-video/v3/motion-control
Video to video$0.1362 per second of input
Wan 2.2 Animate — move
alibaba/wan-2.2/animate-move
Video to video$0.075 per second of input
Wan 2.2 Animate — replace
alibaba/wan-2.2/animate-replace
Video to video$0.036 per second of input

Which model to pick

Motion control: Kling 3.0 and Kling 2.6 Motion Control make the person in your image perform the moves of a reference video of up to 30 seconds, a dance, a gesture or a walk, at 720p or 1080p; Wan 2.2 Animate Move does the same at 720p, expressions included. Character swap: Wan 2.2 Animate Replace swaps the person in a video for the character in your image and keeps the scene, light and motion. Editing by instruction: HappyHorse 1.0 edits videos of 3 to 60 seconds and can keep or remake their sound, Kling 3.0 Omni transforms 3 to 15 seconds at up to 4K, and Wan 2.7 edits 2 to 10 seconds; all three take reference images. New clips from references: Wan 2.6 and Wan 2.6 Flash make a 5- or 10-second video that follows the people, motion and look of up to three reference videos.

The files are links

Pass the source video as a public https:// link to an MP4 or MOV file, and the character image as a JPEG, PNG or WebP link. The field names differ by model (video_url or video_urls, image_url or input_urls): each model’s page lists them. In the playground you can upload the files instead.

Priced by the length of your video

The server reads how long the input video is before it accepts the job, and the price is that length times the per-second price in the table, so the cost is known before anything runs. Wan 2.6 and Wan 2.6 Flash are priced by the clip length you ask for instead. A job the provider fails is refunded in full.

No source video? Start from a still

To bring a single photo or illustration to life rather than change a clip, pass it as the start frame of an image-to-video model.

Image to video: models and prices

First request

Generation runs through a queue: a POST request submits the job, then the script polls status_url and fetches the result from response_url. Create the key on the API key page after you sign up.

import os, time, requests

BASE = "https://getmegabrain.com/api/gateway/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['MEGABRAIN_API_KEY']}"}

job = requests.post(f"{BASE}/queue/kling-video/v3/motion-control", headers=HEADERS, json={
  "prompt": "a slow dolly shot of a lighthouse at dawn, waves below",
  "input_urls": [
    "https://example.com/photo.jpg"
  ],
  "video_urls": [
    "https://example.com/clip.mp4"
  ]
}).json()

while requests.get(job["status_url"], headers=HEADERS).json()["status"] not in ("COMPLETED", "FAILED"):
    time.sleep(2)

print(requests.get(job["response_url"], headers=HEADERS).json())

Questions and answers

How much does AI video-to-video cost through an API?

MegaBrain runs 9 video-to-video models on one API key: HappyHorse 1.0 — video edit, Wan 2.7 — video edit, Wan 2.6, Wan 2.6 Flash, Kling 3.0 Omni, Kling 2.6 — motion control, Kling 3.0 — motion control, Wan 2.2 Animate — move and Wan 2.2 Animate — replace. At default settings the lowest price is Wan 2.6 Flash at $0.012 per second of video, so a 5-second clip costs $0.06; the highest is HappyHorse 1.0 — video edit at $0.168 per second of input. Prices are in US dollars from the live MegaBrain catalogue; a job the provider fails is refunded in full.

Do I need an account with each model’s maker?

No. Sign up on MegaBrain, top up the balance by card and create one API key: it works for every model in the table, for the other image, video and audio models and for the text models.

How is generation paid for?

From a prepaid US-dollar balance at the price in the table, with no subscription. The price of a job is held when it is submitted and refunded in full if the provider fails it.

What is motion control?

Copying the movement of one video onto a character from an image: you send a photo of the character and a reference clip of someone dancing, waving or walking, and get a video of your character making the same moves. Kling 3.0 and 2.6 Motion Control and Wan 2.2 Animate Move do this; Kling 2.6 takes a reference video of 3 to 30 seconds.

How do I call it from code?

A POST request to https://getmegabrain.com/api/gateway/v1/queue/<model id> submits the job; then poll status_url until it is COMPLETED and fetch the video link from response_url. There is a Python example below, and every model’s parameters are on its page.

Get your API key

Sign-up is open. Create an account, top up the balance by card and create a key: it works for every text, image, video and audio model in the catalogue. Credits never expire.

Questions? Write to team@getmegabrain.com