VidLab

Text to Speech API

Turn written text into spoken audio you can direct. On VidLab, text to speech runs on 2 models, from $0.005 per second on VidLab Audio 1. One API key and one endpoint cover all of them, and a failed generation costs nothing.

Models for text to speech

ModelMakerFrom (USD)What it does
VidLab Audio 1VidLab$0.005 per secondOur own speech model. Describe the voice and write the words: it speaks them, with room sound and effects if you ask. Add up to 3 reference sounds to keep a voice, or one picture of the character to give them a voice. You pay per second of the audio it makes.
MiniMax Speech 2.8MiniMax$0.09 per 1,000 charactersText to speech you can direct. Pick one of over 300 voices, or send a recording of 10 seconds or more and it speaks in that voice. Set the emotion, speed, pitch and volume; write (laughs) or (sighs) in the words, and <#0.5#> for a pause. A new voice from a recording carries a one-time fee: the same recording sent again pays for its words alone.

What the catalogue accepts

Between them, these models accept up to 1 reference images, no audio track. Each model's page lists the exact values it takes and the rate for each option, so check the model you pick rather than the group.

How text to speech works on VidLab

  1. Send POST /v1/generations with the model id and the inputs. The call returns a job id at once.
  2. Read GET /v1/generations/{id}, or add ?wait=60 to hold the call until the job finishes. That endpoint is free and does not count against a rate limit.
  3. Download the output from the links in the finished generation. Quote the request first with POST /v1/generations/quote if you want a ceiling on the charge.

Choosing a model

The cheapest three in this group are VidLab Audio 1 at $0.005 per second, MiniMax Speech 2.8 at $0.09 per 1,000 characters. Price is not the whole decision: check the resolution, the clip length and whether the model takes the input you have. The pricing guide shows how to compare two models on the same request.

Frequently asked questions

How much does Text to Speech cost on VidLab?

Text to Speech runs on 2 models here. The lowest rate is $0.005 per second, on VidLab Audio 1. Every model's own page lists its options and what each option costs, and POST /v1/estimate prices a request with your exact settings before you submit it.

Which model should I use for text to speech?

Pick the cheapest model whose limits cover your input. Across this group the catalogue accepts up to 1 reference images, no audio track. The table above lists every model with its starting rate, its maker and what it does; open a model's page for its full options and inputs.

What do I send to run text to speech?

Send POST /v1/generations with the model id in the model field and the inputs in input. The response returns a job id immediately, and GET /v1/generations/{id} reports the status and, on success, the output URLs. One VidLab key calls every model in the catalogue.

Are failed generations billed?

A failed generation costs nothing. VidLab holds the price while a call runs and releases the hold if the call fails; you are charged once, on success. Retry with a new idempotency key after a job reaches a failed state, and keep the original key when you retry a request whose answer you never received.

Every model on VidLab · All rates · Other jobs · Get an API key