Video to audio

Video to audio API

The models that watch a video and make its sound: the lines you write, spoken in sync, with effects and ambience that match the picture, or the video’s own speech dubbed into another language. Run them in the browser or through the API on one MegaBrain key, paid per second of the input video from a prepaid US-dollar balance.

The short answer

MegaBrain runs 2 video-to-audio models on one API key: Seed Audio 1.5 and Seed Audio 1.5 — video dubbing. At default settings the lowest price is Seed Audio 1.5 — video dubbing at $0.0108 per second of input, so a 10-second input costs $0.108; the highest is Seed Audio 1.5 at $0.0162 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-audio 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.

ModelTaskPrice
Seed Audio 1.5 — video to audio
bytedance/seed-audio-1.5/video-to-audio
Video to audio$0.0162 per second of input
Seed Audio 1.5 — video dubbing
bytedance/seed-audio-1.5/video-dubbing
Video to audio$0.0108 per second of input

Which model to pick

Seed Audio 1.5 video-to-audio makes a soundtrack for a video: put the exact lines to speak in quotes in the prompt and describe the rest, and it speaks them in sync with effects and ambience that match the picture. Seed Audio 1.5 video dubbing takes a video with Chinese or English speech and dubs it into the language you set in target_language, from Spanish and Hindi to Japanese and Arabic.

A video in, an audio file out

Send an MP4 or MOV of 4 seconds to 6 minutes, up to 200 MB, as a public https:// link in video_url. Both models return an MP3, or a WAV with output_format, to lay over the clip in your editor or with ffmpeg.

Priced by the length of your video

The server reads how long the input video is before it accepts the job; the price is that length times the per-second price in the table. A job the provider fails is refunded in full.

Need the face to speak too?

When a person on screen has to say the lines, a lip sync model moves the lips with the voice track as well.

Lip sync: 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/bytedance/seed-audio-1.5/video-to-audio", headers=HEADERS, json={
  "prompt": "a ceramic coffee mug on a sunlit oak table, product photo",
  "video_url": "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-audio cost through an API?

MegaBrain runs 2 video-to-audio models on one API key: Seed Audio 1.5 and Seed Audio 1.5 — video dubbing. At default settings the lowest price is Seed Audio 1.5 — video dubbing at $0.0108 per second of input, so a 10-second input costs $0.108; the highest is Seed Audio 1.5 at $0.0162 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.

Which languages can it dub into?

Seed Audio 1.5 video dubbing takes Chinese or English speech and dubs it into 30 language options, among them Spanish (Spain and Mexico), Portuguese (Brazil and Portugal), French, German, Italian, Hindi, Arabic, Japanese, Korean and Russian. Set the language with target_language.

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