API reference

Base URL https://api.breadtts.com/v1 · JSON in, audio out · $5 per million input characters · speech-to-text from $0.05 per hour (jump).

Quickstart

  1. Create an account — you get 250,000 free characters.
  2. Create a key on the API keys page.
  3. Make a request:
curl "{API}/audio/speech" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "{MODEL}", "voice": "alba", "input": "Hello! Your order ships today."}' \
  --output hello.mp3

Authentication

Send your key as a bearer token: Authorization: Bearer sk_live_.... X-API-Key is also accepted. Keys are secret; call the API from your server, never from a browser or mobile app.

sk_test_ keys return real audio for free, limited to 100 characters per request and 100 requests per day.

Using the OpenAI SDKs

The speech endpoint is wire-compatible with OpenAI's. Point the SDK's base URL at us; tts-1, tts-1-hd and gpt-4o-mini-tts are accepted as model names, and OpenAI voice names (alloy, nova, onyx, ...) map to similar stock voices. instructions is accepted and ignored (reported in X-Ignored-Parameters).

from openai import OpenAI

client = OpenAI(base_url="{API}", api_key="sk_live_...")
client.audio.speech.create(model="{MODEL}", voice="alba", input="Hi!").write_to_file("hi.mp3")

Create speech

POST/v1/audio/speech

ParameterTypeDefaultDescription
inputstring | string[]requiredText to speak. Up to 10,000 characters (20,000 with stream). Pass an array to keep your own chunk boundaries (e.g. sentences from an LLM).
voicestringalbaStock voice id, your clone id (cloned_...) or an OpenAI voice name.
modelstring{MODEL}{MODEL}, bread-premium-2 for premium voices, or bread-expressive-1 for expressive voices with inline tags. OpenAI model names are accepted as aliases of {MODEL}.
response_formatstringmp3mp3, opus (Ogg), aac, flac, wav, pcm (24 kHz, 16-bit, mono, little-endian), ulaw / alaw (raw G.711, 8 kHz mono, for telephony).
sample_rateinteger24000pcm and wav only: 8000, 16000, 22050, 24000, 44100 or 48000. ulaw/alaw are always 8000.
speednumber1.00.5 to 2.0. Pitch is preserved.
normalizebooleantrueTurn text into speakable words (see normalization). Disable if you pre-process text yourself.
pronunciationsarray-Up to 100 {"word","respelling"} overrides, applied before the built-in dictionary.
streambooleanfalseStream audio as it is generated. mp3, opus, aac, pcm, ulaw, alaw. stream_format: "audio" is an alias.
deliverystringbytesbytes: audio body. url: JSON with a download link valid for 24 hours. json: base64 audio plus usage.
include_costbooleanfalseAdds X-Cost-USD and X-Balance-USD headers. JSON deliveries always include a usage object.
return_normalized_textbooleanfalseEcho the exact text spoken, per chunk (json/url delivery).
timestampsbooleanfalseAdd sentence and word timings for captions and highlighting (json/url delivery; see timestamps).
instructionsstring-Accepted for OpenAI compatibility and ignored (listed in X-Ignored-Parameters). Pick the delivery with the voice, or use expressive tags.
seedintegerrandomRepeatable output for the same input and settings.
chunk_silence_msinteger80Pause inserted between chunks, 0-2000. On bread-premium-2 it is inserted between every sentence.

Every response carries X-Request-Id, X-Model, X-Billable-Characters, X-Cold-Start (1 if an instance started or woke for this request) and X-Voice-Id; non-streamed responses also include X-Audio-Duration-Ms.

Streaming

With "stream": true the first bytes arrive after the first sentence is synthesized, so playback can start long before the full clip is ready. Use pcm for the lowest latency in voice agents (play samples directly), or mp3 for broad player support.

curl -N "{API}/audio/speech" -H "Authorization: Bearer $API_KEY" -H "Content-Type: application/json" \
  -d '{"input": "A long story...", "voice": "george", "response_format": "pcm", "stream": true}' \
  | ffplay -f s16le -ar 24000 -ac 1 -nodisp -autoexit -
If our engine fails mid-stream, the gateway re-synthesizes with the same seed and continues where it stopped, so you get one unbroken stream. Only if that keeps failing is the connection closed abnormally and the request refunded. If your client disconnects, the request is billed, and you can resume it for free (below).

Resuming a dropped stream

Streamed responses carry X-Resume-Token, valid for 10 minutes. If your connection drops, send the same request body again with resume_token and resume_offset (the number of audio bytes you already received). The stream continues from that byte, and the resume is not billed again. Each stream can be resumed up to 5 times.

{ "input": "A long story...", "voice": "george", "response_format": "pcm", "stream": true,
  "resume_token": "tr_...", "resume_offset": 183040 }

The audio is regenerated with the stream's seed (X-Seed), so nothing is stored, with or without zero data retention. A token only works for the same account and the same request body. Otherwise you get invalid_resume_token.

Delivery options

Audio is never stored by default. With "delivery": "url" we keep the file for 24 hours and return:

{
  "object": "audio.speech",
  "id": "req_...",
  "voice": "alba",
  "format": "mp3",
  "duration_ms": 5120,
  "audio": { "url": "{API}/files/aud_...mp3?exp=...&sig=...", "expires_at": 1791763200, "bytes": 41210 },
  "usage": { "billable_characters": 84, "normalized_characters": 97, "cost_usd": 0.00042, "balance_usd": 12.34558 }
}

Anyone with the link can download the file until it expires, so treat links like secrets. Not available with zero data retention.

Timestamps

With "timestamps": true (delivery json or url) the response adds sentence and word timings of the spoken text, for captions and word highlighting:

"timestamps": {
  "estimated": true,
  "source": "normalized_text",
  "sentences": [{ "text": "Your order ships today.", "start_ms": 0, "end_ms": 1480 }],
  "words": [{ "word": "Your", "start_ms": 0, "end_ms": 210 }, { "word": "order", "start_ms": 210, "end_ms": 560 }, ...]
}

Times are estimated from the text and scaled to the real audio duration, usually within a few hundred milliseconds per word. Words are those of the normalized text ($5 becomes five dollars). Timestamps are free.

Telephony

Phone networks use 8 kHz G.711. Request "response_format": "ulaw" (North America, Japan, Twilio Media Streams) or "alaw" (Europe) and send the bytes as they are, streamed or not: no conversion on your side. For transcription, open the realtime stream with encoding=mulaw&sample_rate=8000 (or alaw) and pass the caller's audio straight through. pcm and wav take any sample_rate from the list above, e.g. 16000 for wideband VoIP.

Text normalization

On by default. Numbers, currency ($1,299.99), dates (3/14), times (9:30pm), ordinals, temperatures, phone-style digit runs, acronyms, Roman numerals, markdown, URLs and emoji are converted into words the voice reads naturally. Preview the result for free:

POST/v1/normalize

{ "input": "Dr. Smith paid $42.50 on 3/14.", "pronunciations": [{ "word": "Smith", "respelling": "Smyth" }] }
-> { "normalized": "Doctor Smyth paid forty two dollars and fifty cents on March fourteenth.", "billable_characters": 30, "estimated_cost_usd": 0.00015 }

List voices

GET/v1/voices   GET/v1/voices/{id}

Returns your clones first, then the stock catalogue. Filter with ?type=clone or ?type=stock. Every stock voice has a preview_url you can play without authentication.

Voice cloning

POST/v1/voices   PATCH/v1/voices/{id}   DELETE/v1/voices/{id}

Accept the cloning terms once in the dashboard, then upload 3-60 seconds of clean speech (10-20 s is ideal). Accepted formats: wav, mp3, m4a/aac, ogg/opus, webm, flac, up to 12 MB. Up to 20 voices per account; creating them is free and they cost the same to use as stock voices.

curl "{API}/voices" -H "Authorization: Bearer $API_KEY" \
  -F name="Sam narrator" -F [email protected] -F consent=true
-> { "id": "cloned_3f9c...", "object": "voice", "name": "Sam narrator", "type": "clone", "models": ["bread-1", "bread-premium-2", "bread-expressive-1"], "premium": true, ... }

consent=true is your attestation, for this specific recording, that it is your voice or that you have the speaker's documented permission. One upload makes the clone for both models: bread-1 always, and bread-premium-2 while premium is available ("premium": true, which also makes the clone work on bread-expressive-1; if the premium profile could not be built, the clone still works on bread-1 and premium_error says why). Your upload is processed and discarded; we keep only encrypted voice profiles. Deleting the voice deletes them.

Premium voice (bread-premium-2)

Set "model": "bread-premium-2" on POST /v1/audio/speech for lifelike premium voices generated on GPUs, at $10 per million characters (per character, no minimum). Same parameters, formats and streaming as bread-1, with these differences:

Prewarm (free). Premium runs on an always-on GPU pool; under heavy load extra GPUs start on demand and sleep after about 10 idle seconds. Send a prewarm the moment you know a reply is coming, e.g. when your user stops talking, so capacity is ready and the first sentence starts fast:

curl -X POST "{API}/warmup?model=bread-premium-2" -H "Authorization: Bearer $API_KEY"
-> { "object": "warmup", "model": "bread-premium-2", "status": "warming" }

Prewarms are deduplicated and never billed, so calling one per conversation turn is fine. In a full-duplex agent built on the realtime stream, add tts_prewarm=bread-premium-2 to the stream URL and the API sends the prewarm for you at every speech_ended.

Premium sample for a clone. POST/v1/voices/{id}/reference (multipart file, consent=true, optional language) builds or replaces a clone's bread-premium-2 profile from a clean recording of the same speaker (5-20 s of speech). Its bread-1 voice is unchanged.

Expressive voice (bread-expressive-1)

Set "model": "bread-expressive-1" for the premium voices with performed non-verbal sounds and delivery styles, generated on GPUs at $8 per million characters (per input character like the other models, no minimum). Write tags in square brackets inside input and the voice performs them instead of reading them:

curl "{API}/audio/speech" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "bread-expressive-1", "voice": "emily", "input": "That'\''s hilarious [laugh] okay, let me check."}' \
  --output expressive.mp3
KindTagsAlso accepted
Sounds
[laugh][chuckle][sigh][gasp][cough][clear throat][sniff][groan][shush]
[laughing] [laughs] [laughter] [chuckles] [sighs] [gasps] [coughs] [clears throat] [sniffs] [groans] [shh]
Delivery
[whispering][angry][happy][crying][fear][surprised][sarcastic][dramatic][narration][advertisement]
[whisper] [whispers]

Use tags sparingly, where a person would actually laugh or sigh; a tag on every sentence sounds forced. Try them in the playground, which has one-click tag chips.

Voice design and clone + adjust

POST/v1/voices/design   then   POST/v1/voices with JSON {name, preview_id}

Describe a voice in words and get up to three previews on bread-premium-2; save the one you like as a clone (it works on bread-1 and bread-premium-2 and counts toward your 20 voices). Send a reference file (multipart, with consent=true) to clone + adjust: the previews keep that speaker and the description changes the delivery (emotion, pace, energy), not the identity. The Voice Design Studio in the dashboard does the same with clickable traits (how to use it).

FieldTypeDefaultDescription
descriptionstring-Up to 300 characters: gender, age, pitch, texture, emotion, pace, accent. Required unless a file is sent. Descriptions that name or imitate a real person are rejected (description_not_allowed).
preview_textstringper languageUp to 200 characters spoken in each preview. Defaults exist for en, es, fr, de, it, pt, nl, ja, zh and ko; send your own for other languages.
languagestringenPicks the default preview_text.
countinteger3Previews to generate, 1-3. Each uses a different seed.
file, consentmultipart-Optional reference recording (same formats and rules as cloning).
curl "{API}/voices/design" -H "Authorization: Bearer $API_KEY" -H "Content-Type: application/json" \
  -d '{"description": "A warm, middle-aged woman with a low voice, calm and reassuring", "count": 3}'
-> { "object": "voice_design", "source": "design", "previews": [ { "id": "pv_9b1e...", "url": "https://.../v1/files/aud_...mp3?...", "expires_at": 1793450000, "chars": 166 }, ... ],
     "usage": { "model": "bread-premium-2", "billed_characters": 498, "cost_usd": 0.00498, ... } }

curl "{API}/voices" -H "Authorization: Bearer $API_KEY" -H "Content-Type: application/json" \
  -d '{"name": "Calm narrator", "preview_id": "pv_9b1e..."}'

Billing and limits: previews are billed at the premium rate per character (preview_text length x previews generated; failed previews are refunded). Saving is free. Preview links expire after 15 minutes and preview ids after 24 hours. Up to 30 preview batches per hour and 2 at a time per account (429). Test keys cannot design voices.

Using the Voice Design Studio

No code needed: the studio is on the Voices page of the dashboard.

  1. Pick a mode. Describe a voice creates a new voice from words. Clone + adjust starts from a recording (5-60 s, one speaker, with the speaker's permission) and changes how it is delivered.
  2. Describe the voice. Type up to 300 characters or click the trait chips (gender, age, pitch, texture, emotion, pace, accent). The examples under the box are a good starting point.
  3. Choose the preview. Pick a language (the default sentence follows it) and 1-3 previews. You can edit the preview sentence; the estimated cost is shown before you generate.
  4. Generate and listen. Each preview is a different take on the same description. Click Generate again for new takes, or tweak the description first.
  5. Save your favorite. Click Use this voice on it and give it a name. It appears under Your voices with a cloned_... id that works on bread-1 and bread-premium-2, in the playground and in every API request.

Clone + adjust uses the same cloning terms as cloning; accept them once on the Voices page first.

Writing a good description. Describe how the voice sounds, from broad to specific: "A young man with a bright, slightly raspy voice, energetic and friendly, speaking quickly with an Australian accent." Combine a few traits rather than many; one emotion and one pace work better than several. Use preview_text that sounds like your real content (a support greeting, a story opening) to judge the voice in context. Names of real people, celebrities or "sounds like" comparisons are rejected.

Languages

bread-premium-2 speaks 30 languages; there is no language parameter, it reads the language of your text (a voice keeps its identity across languages). bread-1 and bread-expressive-1 are English only (bread-expressive-1 returns language_not_supported for other languages).

Arabic, Burmese, Chinese (Mandarin, plus dialects such as Cantonese and Sichuanese), Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Indonesian, Italian, Japanese, Khmer, Korean, Lao, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Tagalog, Thai, Turkish, Vietnamese.

GET /v1/models lists the ISO 639-1 codes in each model's languages. Text normalization (numbers, abbreviations) is English-oriented; for other languages write numbers as words for the most natural reading.

Speech to text: realtime stream

GET/v1/audio/transcriptions/stream   WebSocket · model {STT_MODEL} · $0.06 per hour of audio, billed per connected second

Open a WebSocket with your key in the Authorization header and stream raw audio as binary frames (mono, 20-100 ms per frame). Settings go in the query string. Partial text arrives while the person speaks; a final event commits each sentence, and speech_ended marks the end of a turn, so a voice agent knows when to reply.

import asyncio, json, os, websockets

URL = "{WSS}?sample_rate=16000"

async def main():
    headers = {"Authorization": f"Bearer {os.environ['API_KEY']}"}
    async with websockets.connect(URL, additional_headers=headers) as ws:
        async def send_audio():
            with open("call.raw", "rb") as f:  # 16 kHz, 16-bit, mono PCM
                while chunk := f.read(3200):  # 100 ms per frame
                    await ws.send(chunk)
                    await asyncio.sleep(0.1)
            await ws.send(json.dumps({"type": "finalize"}))

        asyncio.create_task(send_audio())
        async for message in ws:
            event = json.loads(message)
            if event["type"] == "partial":
                print("...", event["text"], end="\r")
            elif event["type"] == "final":
                print(event["text"])

asyncio.run(main())

Audio sent before the engine is ready is buffered (up to 6 MB, about 3 minutes at 16 kHz), so you can start streaming right away. Engines resume from standby in about a second; use a session to have one ready before the user speaks. Connections last up to 2 hours (60 seconds with sk_test_ keys). Reconnect to continue.

Dropped connections

Every ready event carries a resume_token, which lasts 5 minutes. A resume_token event sends a fresh one before it expires. To survive a network drop, or an engine_unavailable error (close code 4503):

  1. Keep each audio frame you send until a final event covers it, which means its end_ms is at or after the end of that frame. Between turns, a couple of seconds is enough.
  2. When the connection drops, reconnect to {WSS}?resume_token=... with the same settings. The token is the credential, so you don't need a key or a new browser token. The resumed connection keeps the session id and has no second 10-second minimum.
  3. Send the frames you kept, then continue with live audio. The session clock carries on: ready has resumed: true and mic_position (16 kHz samples heard so far), and the replayed audio is timed from mic_position / 16 ms onward. The turn that was open when the connection dropped is discarded, so replaying it loses nothing.

Stream settings

Pass any of these as query parameters. Most can also be changed mid-stream with a config message.

ParameterDefaultDescription
encodingpcm_s16lepcm_s16le, pcm_f32le, mulaw, alaw (telephony), or opus: one raw Opus packet per binary frame, no Ogg container.
sample_rate160008000-48000 Hz. Ignored for opus. 16 kHz is ideal; other rates are resampled.
silence_commit_ms700200-5000. Pause that ends a turn (speech_ended).
end_of_turnsmartsmart: if the text so far ends on a filler or connecting word ("um", "so", "and", "then", "the", "to"... as in "I want to order a..."), wait incomplete_commit_ms instead. silence: always commit after silence_commit_ms.
incomplete_commit_ms1600200-5000. Pause that ends an unfinished-sounding turn in smart mode.
final_ms150100-1000, at most silence_commit_ms. Silence after which the sentence is finalized (before the turn ends).
presetnormalquiet, normal or noisy. Sets the speech detector's sensitivity unless you set vad_threshold/min_speech_ms.
vad_threshold0.50.1-0.95. Higher ignores more background sound.
min_speech_ms9632-1000. Speech needed before speech_started.
noise_gate_dbfsoffoff, auto (tracks the noise floor), or a level from -80 to -20 dBFS below which audio counts as silence.
noise_suppressionfalseServer noise suppression. Helps steady noise (fans, hum); can hurt with background talkers.
agcfalseAutomatic gain control for very quiet microphones.
aecautoEcho cancellation when you send reference audio. off disables it.
barge_in_threshold / barge_in_min_ms0.5 / 128Speech detection while reference audio is playing (an interruption). Raise them if echo is taken as an interruption.
interim_resultstrueSend partial events.
punctuatetruePunctuation and capitalization.
word_timestampstrueAdd words[] with per-word start_ms/end_ms to text events.
speculativefalseSend speculative_final as soon as a turn probably ended, so you can start your LLM early; speculative_cancel follows if the person keeps talking.
vocabulary-Up to 100 terms for this connection, comma-separated (or a JSON array in a config message). See vocabulary.
outputjsontext sends each final as a plain text line instead of JSON. Other events stay JSON.
max_segment_ms150002000-60000. Force a final during long uninterrupted speech.
idle_timeout_s30010-1800. Close the connection after this long without speech.
languageautoauto transcribes any supported language. en removes words that are not English (for example, words in other languages heard in background noise). prefer_en does the same, but keeps other languages when they are spoken clearly into the microphone.
session_id-Use a held session.

Events

The server sends JSON text frames. Every event has type, seq and session_ms; turn events carry a turn_id; text events add text, start_ms, end_ms and (with word_timestamps) words.

typeMeaning
sessionSent at once: session_id, request_id, status (ready or starting).
readyThe engine is listening and billing starts. Includes the effective config, cold_start, waited_ms, resume_token (see dropped connections), and resumed/mic_position after a reconnect.
resume_tokenA fresh resume_token, sent before the previous one expires.
speech_startedThe person started talking (use it to stop your TTS playback).
partialText so far for the current sentence. Replaces the previous partial.
finalA finished sentence. Append it; it won't change.
speech_endedThe turn is over. Time to respond.
finalizedAnswer to {"type": "finalize", "ack": true}: every final for the audio sent before it has been delivered.
speculative_final / speculative_cancelOnly with speculative=true.
closingThe server is about to close: reason is max_duration, test_key_limit, insufficient_balance, monthly_cap_reached or idle_timeout.
errorcode and message. Setting errors (bad_config, bad_audio, bad_message) keep the connection open.
{"type": "final", "seq": 14, "session_ms": 5230, "turn_id": 2, "text": "Can I move my appointment to Friday?",
 "start_ms": 3120, "end_ms": 5080, "words": [{"word": "Can", "start_ms": 3120, "end_ms": 3280}, ...]}

Client messages

Besides binary audio, you can send JSON text frames:

Sessions & warm engines

POST/v1/sessions   GET/v1/sessions/{id}   DELETE/v1/sessions/{id}

A session prewarms an engine for one of your users, so their stream starts instantly. Create it when a call or screen opens, then connect with ?session_id=. Holding a session is free; it ends after 5 minutes with no speech, or when you delete it.

curl "{API}/sessions" -H "Authorization: Bearer $API_KEY" -H "Content-Type: application/json" -d '{"type": "stt", "wait_s": 20}'
-> { "object": "session", "id": "sess_...", "type": "stt", "ready": true,
     "stt": { "ready": true, "cold_start": true, "idle_timeout_s": 300, ... }, "stream_url": "{WSS}?session_id=sess_..." }

type is stt, tts or duplex (both, for voice agents). One stream at a time per session (session_busy otherwise). If a connection drops, reconnect with the same session_id within 5 minutes: ready reports "resumed": true and echo cancellation keeps its state. POST /v1/warmup?product=stt starts a shared instance without reserving it.

Browser tokens

POST/v1/realtime/token

Never put a key in a browser or app. Have your server mint a single-use token (valid 60 seconds; optionally pass {"session_id": "sess_..."}), then connect from the browser with the token as a WebSocket subprotocol, or as ?token=:

// server: POST {API}/realtime/token -> { "object": "realtime_token", "token": "rt_...", "expires_at": ..., "url": "..." }
const ws = new WebSocket("{WSS}?sample_rate=16000", ["bread-stt", token]);
ws.binaryType = "arraybuffer";
ws.onmessage = (e) => { const ev = JSON.parse(e.data); if (ev.type === "final") console.log(ev.text); };

Echo cancellation & barge-in

For voice agents on a speaker, send what you play as reference audio and the server removes it from the microphone, so you don't need echo cancellation on the device and the user can interrupt (barge in) at any time.

  1. Send {"type": "reference_audio", "encoding": "pcm_s16le", "sample_rate": 24000}. From then on, prefix every binary frame: 0x01 + microphone audio, or 0x02 + the audio you are playing.
  2. Send reference frames when you play them, interleaved with the microphone frames. With "timestamps": true, a reference frame is 0x02 + an int64 little-endian microphone sample position + audio, for exact alignment.
  3. On speech_started stop playback and send {"type": "playback", "state": "stop"}. Optionally send {"type": "playback", "text": "..."} with the spoken text so leftover echo is never transcribed.

Vocabulary

GET/v1/stt/vocabulary   PUT/v1/stt/vocabulary

Teach the recognizer names, products and jargon. Your account vocabulary (up to 500 terms) applies to every stream and file; add up to 100 more per request with vocabulary. sounds_like lists how the term tends to be misheard. PUT replaces the whole list; an empty list clears it. You can also edit it on the playground.

curl -X PUT "{API}/stt/vocabulary" -H "Authorization: Bearer $API_KEY" -H "Content-Type: application/json" \
  -d '{"terms": ["Kubernetes", {"term": "Nguyen", "sounds_like": ["win", "new yen"]}]}'

File transcription

POST/v1/audio/transcriptions   $0.05 per hour of audio

OpenAI-compatible. Upload wav, mp3, m4a, ogg/opus, flac or webm, up to 100 MB and 2 hours, as multipart/form-data with a file field, or as a raw audio body with the options in the query string. whisper-1 and gpt-4o-transcribe are accepted as model names, so the OpenAI SDK works with our base URL.

curl "{API}/audio/transcriptions" -H "Authorization: Bearer $API_KEY" \
  -F [email protected] -F response_format=verbose_json -F "timestamp_granularities[]=word"

from openai import OpenAI
client = OpenAI(base_url="{API}", api_key="sk_live_...")
print(client.audio.transcriptions.create(model="whisper-1", file=open("meeting.mp3", "rb")).text)
FieldDefaultDescription
filerequiredThe audio file (multipart), or send the audio as the request body.
response_formatjsonjson ({"text"}), verbose_json (adds duration and segments), text, srt or vtt.
timestamp_granularities[]segmentAdd word for words[] with start/end seconds (verbose_json).
vocabulary-Up to 100 extra terms, comma-separated or a JSON array.
model, language, prompt, temperature-Accepted for compatibility. Only English is supported for now.

The response includes X-Audio-Duration-Ms, X-Cost-USD and X-Balance-USD. Uploads need a Content-Length header (every HTTP client does for files). Test keys transcribe files up to 60 seconds.

Transcription billing

Balance & usage

GET/v1/balance

{ "object": "balance", "balance_usd": 12.34, "characters_remaining": 2468000,
  "auto_topup": { "enabled": true, "threshold_usd": 5, "amount_usd": 25, "pending": false, "last_failure": null } }

GET/v1/usage?start=2026-10-01&end=2026-10-31&group_by=day — group_by is day, key or none. Totals include requests, errors, characters, audio seconds and cost.

Warmup & cold starts

Engines run on a pool of machines that sleep a few seconds after their last request and resume in well under a second, so you rarely need this. If a request must be as fast as possible (a live call is about to begin, say), warm up a few seconds beforehand. It is free and limited to once per minute per key.

POST/v1/warmup?wait=true

{ "object": "warmup", "status": "warm", "waited_ms": 0, "instance_uptime_s": null }

Without wait it returns immediately with "warming" or "warm". "warming" means every engine is busy right now; your request is served as soon as one frees up or a new one starts.

Zero data retention

Turn on ZDR for your whole account (Profile) or per key. With ZDR we write no request logs and store none of your text. Character counts and charges are still recorded because they are your billing record, and /v1/usage keeps working. delivery: "url" is rejected with zdr_conflict.

Errors

Errors use OpenAI's shape and always include a stable code and the request_id:

{ "error": { "message": "This request costs $0.000420 but your balance is $0.000100. Add credits or enable auto top-up.",
  "type": "billing_error", "code": "insufficient_balance", "param": null, "request_id": "req_8fK2...", "doc_url": "..." } }

If a request fails on our side (5xx), you are not charged. 429 and 503 responses include Retry-After.

HTTPcodeWhat to do
400invalid_request, invalid_jsonFix the parameter named in param.
400empty_inputThe input had nothing speakable (only emoji or symbols?).
400unsupported_formatUse a listed format; streaming needs mp3, opus, aac or pcm.
400model_not_foundUse {MODEL}, bread-premium-2, bread-expressive-1 or an OpenAI TTS model name.
400language_not_supportedbread-expressive-1 speaks English only. Send other languages with bread-premium-2.
400invalid_pronunciationWords and respellings may contain letters, spaces, apostrophes and hyphens only.
400zdr_conflictUse bytes or json delivery with ZDR.
400test_key_limitTest keys allow 100 characters per request.
400invalid_setting, invalid_vocabularyFix the transcription setting or vocabulary term named in param.
400bad_audioThe file couldn't be decoded, or a stream frame didn't match encoding.
400invalid_resume_tokenResume tokens last 10 minutes and need the same account and body. Send a new request.
429resume_limitA stream can be resumed 5 times. Send a new request.
401invalid_tokenBrowser tokens are single use and last 60 seconds; mint a new one. Stream resume tokens last 5 minutes; open a new stream.
403stt_not_enabledSpeech-to-text isn't enabled for this account; contact support.
404session_not_foundThe session ended (5 quiet minutes) or was deleted. Create a new one.
409session_busyClose the other stream on this session, or create another session.
413file_too_large, audio_too_longFiles are limited to 100 MB and 2 hours; split longer recordings.
401missing_api_key, invalid_api_key, api_key_revokedCheck the key or create a new one.
402insufficient_balanceAdd credits or turn on auto top-up.
402monthly_cap_reachedRaise or remove the key's monthly cap.
403account_suspendedContact support.
403test_key_not_allowedUse a live key for cloning.
404voice_not_foundList valid ids with GET /v1/voices.
409idempotency_conflict, idempotency_in_progress, idempotency_replaySee retries.
409voice_limit_reached, key_limit_reachedDelete an existing voice or key.
413input_too_long, audio_file_too_largeSplit the text, or use stream for up to 20,000 characters.
415unsupported_audio_type, unsupported_media_typeUpload a supported audio format; send JSON with the right Content-Type.
422clone_audio_too_short, clone_audio_too_long, clone_audio_unusableUpload 3-60 s of clear speech.
429rate_limited, concurrency_limited, test_quota_exhausted, too_many_sessionsWait for Retry-After seconds. For sessions, end ones you no longer need.
500internal_errorRetry; quote the request id if it persists. Not billed.
502engine_errorRetry. Not billed.
503engine_unavailable, engine_cold_start_timeoutRetry after Retry-After, or warm up first. Not billed.
504upstream_timeoutRetry with shorter input. Not billed.

Retries & idempotency

Send an Idempotency-Key header (any unique string, e.g. a UUID) to make retries safe for 24 hours:

Retry 429, 500, 502, 503 and 504 with exponential backoff. Don't retry other 4xx errors without changing the request.

Limits

Characters per request10,000 (20,000 streaming)
Requests per minute120 per key (configurable up to 600)
Concurrent requests10 per account
Cloned voices20 per account
Clone reference audio3-60 s, 12 MB
Download links24 hours
Transcription streams10 at once per account (each holds a session)
Transcription connection length2 hours (60 s with test keys); reconnect to continue
Transcription audio framesMono, 8-48 kHz, 20-100 ms per frame recommended
Transcription files100 MB and 2 hours (60 s with test keys)
Transcription vocabulary500 account terms + 100 per request
Browser tokens60 seconds, single use
Request logs30 days (none with ZDR)

Need more? Contact us.

OpenAPI spec

The machine-readable spec is at /v1/openapi.json. Import it into Postman, Insomnia or an SDK generator.