# Video to audio API

https://getmegabrain.com/media/video-to-audio · prices from the live MegaBrain catalogue

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

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.

## Video-to-audio models and prices

| Model | ID | Price |
|---|---|---|
| [Seed Audio 1.5 — video to audio](https://getmegabrain.com/media/bytedance/seed-audio-1.5/video-to-audio) | `bytedance/seed-audio-1.5/video-to-audio` | $0.0162 per second of input |
| [Seed Audio 1.5 — video dubbing](https://getmegabrain.com/media/bytedance/seed-audio-1.5/video-dubbing) | `bytedance/seed-audio-1.5/video-dubbing` | $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.

## Call it

```python
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())
```

## FAQ

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