> ## Documentation Index
> Fetch the complete documentation index at: https://docs.budgetpixel.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Text-to-Speech API

> Turn text into natural speech with Seed TTS 3.0 through the BudgetPixel API, in about 1,800 voices that each read 120 languages, priced per 100 characters.

**Text → speech.** Voice-overs, narration, a character's lines and announcements from
text, in about 1,800 voices. Every voice reads any of 120 languages with the accent of its
own native language. Each model has its own endpoint, `POST /v1/audios/{model}`.

## Models

1 model. Each name opens its API reference with every parameter.

| Model | Maker | What it does |
| - | - | - |
| [Seed TTS 3.0](https://docs.budgetpixel.com/api-reference/speech/generate-speech-with-seed-tts-30.md) `seed-tts-3.0` | ByteDance | Natural, expressive speech in about 1,800 voices and 120 languages, shaped by audio tags and a delivery direction, up to 10,000 characters per request. |

## Voices

[`GET /v1/voices`](https://docs.budgetpixel.com/api-reference/speech/list-voices) lists the voices. It is free. Filter
by:

* `language`: the voice's native language, which is its accent, as a name or a code
  (`Spanish`, `es`, `pt-BR`, `Hindi`).
* `gender` (`female`, `male`) and `age` (`teenager`, `adult`, `middle-aged`, `senior`).
* `use_case`: what the voice is made for, such as `AudioBook`, `Dubbing`, `Advertisement`
  or `CustomerService`.
* `q`: words that must all appear in the voice's name, description or use cases
  (`warm narrator`).

Each voice comes with its `voice_id`, a description and a `sample_url`, a short MP3 to
listen to. A page holds up to 200 voices (`limit` and `offset`; `next_offset` is set when
more match), and the response's `languages` lists the 120 language codes every voice
reads.

## How a request works

1. Pick a voice with `GET /v1/voices`. A voice native to your text's language sounds most
   natural.
2. Send `POST /v1/audios/seed-tts-3.0` with the `text` (up to 10,000 characters) and the
   `voice_id`, plus the text's `language` code for the most natural reading. The response
   returns a job `id` (`tts_...`) right away.
3. Poll [`GET /v1/audios/{job_id}`](https://docs.budgetpixel.com/api-reference/audios/get-music-job-status) until
   `status` is `succeeded`. The response then holds the MP3's `audio_url` and its
   `duration_seconds`. A few sentences are usually ready in seconds.

```bash theme={null}
curl -X POST https://api.budgetpixel.com/v1/audios/seed-tts-3.0 \
  -H "Authorization: Bearer $BUDGETPIXEL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "[excited] Big news today! Our voices now read more than a hundred languages.",
    "voice_id": "multi_female_dacey_v3_uranus_bigtts",
    "language": "en"
  }'
```

The MP3 is kept for 24 hours, so download what you want to keep.
[Async jobs](https://docs.budgetpixel.com/concepts/async-jobs.md) covers job statuses and errors.

## Shaping the delivery

* **Audio tags** in square brackets change the delivery where they stand: `[excited]`,
  `[whispering]`, `[laughs]`, `[sighs]` and more.
* **`instructions`** sets the tone of the whole read in up to 300 characters, e.g.
  "Warm and calm, like a bedtime story".
* **`speed`** and **`volume`** run from 0.5 to 2.0, **`pitch`** from -12 to 12 semitones,
  and **`sample_rate`** from 8,000 to 48,000 Hz (24,000 by default).

## Pricing

Speech is priced per started 100 characters of text: **3 credits** per 100 with Seed TTS
3.0. A Chinese character counts as 2, and audio tags count as text.
[`POST /v1/cost`](https://docs.budgetpixel.com/api-reference/models/estimate-the-cost-of-a-request) quotes a request
before you send it, and [`GET /v1/models?type=tts`](https://docs.budgetpixel.com/api-reference/models/list-available-models)
returns the current price. You pay only for jobs that succeed; see
[Pricing & credits](https://docs.budgetpixel.com/concepts/pricing-and-credits.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.