API

text-to-speech

The paid voices of the site's /text-to-speech, with the same synthesis: long text is split at sentence boundaries and joined sample-exact, `[pause 2s]` markup becomes exact silence (any length), yandex:* voices honour stress marks (a combining acute after the vowel) and `**word**` as a logical accent. openai:* voices are multilingual (the language follows the text); yandex:* voices are Russian. Priced per character exactly like the page — call POST /v1/tools/text-to-speech/estimate with the text and voice for the exact figure. ASYNCHRONOUS: returns 202 with a run id — poll GET /v1/runs/{id} or register a webhook. The file carries a machine-readable AI-generated mark.

v1 beta server · 1 tokens

Price (server): openai:* — 20 tokens per request + 1.3 per character (Hangul ×2, Arabic ×1.25); yandex:* — 1 per character; at least 1 per call; a pause longer than the voice can say itself splits the text into separate requests; paid plans: −5%, rounded up. The exact figure for your file: POST /v1/tools/text-to-speech/estimate.

Call it

POST https://tembrica.com/v1/tools/text-to-speech/runs
Authorization: Bearer $TIMBRICA_KEY
Idempotency-Key: <your retry-safe key>
Content-Type: application/json

Input

FieldTypeRequiredNotes
text string yes The text to read. One run takes up to 30 000 characters on openai:* voices, 60 000 characters on yandex:* voices. `[pause 2s]` inserts a pause.
max length: 60000
voice string yes `openai:*` — OpenAI voices, multilingual. `yandex:*` — Yandex SpeechKit Russian voices. A host offers the voices whose engine it has; a voice it does not offer is refused by the estimate and the run (validation_failed) before anything is held.
one of: openai:marin, openai:shimmer, openai:coral, openai:sage, openai:alloy, openai:echo, openai:cedar, openai:ash, openai:ballad, openai:verse, yandex:alena, yandex:jane, yandex:omazh, yandex:dasha, yandex:julia, yandex:lera, yandex:masha, yandex:marina, yandex:filipp, yandex:ermil, yandex:zahar, yandex:madirus, yandex:alexander, yandex:kirill, yandex:anton
speed number no Reading speed, 1 = the voice's own. Per engine: openai:* 0.5–1.5; yandex:* 0.5–2. Does not change the price.
vibe string no Tone. openai:* — default, calm, cheerful, energetic, serious, narration; yandex:* — neutral, good, evil, strict, friendly. A yandex:* voice takes only the roles it has (the estimate names them when it refuses one).
one of: default, calm, cheerful, energetic, serious, narration, neutral, good, evil, strict, friendly
pitch_shift integer no yandex:* voices only: shift of the voice's pitch in Hz, within that voice's own range.
format string no mp3 = an MP3 copy made from the master; wav = the lossless master the engine produced (mono). Does not change the price.
one of: mp3, wav
default: mp3

Errors it can return

validation_failed  too_long  insufficient_tokens  concurrency_limited  upstream_unavailable 

History

  • v1 — 2026-11-19 — Initial release (server lane, async, the site's per-character price).

This contract cannot change without a new version and a line above: a test compares the published schema, pricing and limits against a committed lockfile and fails the build otherwise. Subscribe to /v1/changelog to be told when something moves.