← PixelAPI · Text-to-Speech · All docs · Pricing

Text-to-Speech & Voice Cloning API

Convert text to natural speech in 23 languages, optionally in a cloned voice from a short reference clip. Engine: Chatterbox (MIT licence). Output: WAV.

This page previously documented an older TTS model. The current engine is Chatterbox; requests, limits and prices below are current.

Pricing

OperationPriceNotes
Speech40 credits per 1,000 charactersCharged per character, minimum 1 credit. ≈ $0.04 per 1,000 characters on Starter
Voice cloningSame priceNo extra charge for voice_ref

POST/v1/tts/generate

Returns an id. Poll GET /v1/tts/status/{id} for the WAV.

FieldTypeRequiredDescription
textstringyesText to speak, max 400 characters.
languagestringnoDefault en. One of: ar, da, de, el, en, es, fi, fr, he, hi, it, ja, ko, ms, nl, no, pl, pt, ru, sv, sw, tr, zh.
voice_reffilenoReference voice clip for cloning (WAV/MP3/M4A, 5-20 s of clean speech, max 10 MB).
modelstringnoauto (default), chatterbox-turbo or chatterbox-multilingual.

Example

curl -X POST https://api.pixelapi.dev/v1/tts/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "text=Welcome to our store. Today's deals end at midnight." \
  -F "language=en" \
  -F "voice_ref=@my_voice_10s.wav"

# then poll until status is "completed"
curl https://api.pixelapi.dev/v1/tts/status/TTS_JOB_ID -H "Authorization: Bearer YOUR_API_KEY"

Models

modelUsed for
auto (default)chatterbox-turbo for English, chatterbox-multilingual for every other language.
chatterbox-turboEnglish.
chatterbox-multilingualAll 23 languages.

GET/v1/tts/status/{id}

Poll until status is completed, then download the WAV from output_url.

curl https://api.pixelapi.dev/v1/tts/status/TTS_JOB_ID -H "Authorization: Bearer YOUR_API_KEY"

Limits

Try it in the appTutorialTool overview

FAQ

How much does text-to-speech cost?

40 credits per 1,000 characters, charged per character with a minimum of 1 credit. Voice cloning costs the same. 1 credit = $0.001 on the Starter plan.

How long can the text be?

Up to 400 characters per request. Split longer scripts into several requests and join the WAV files.

Which languages are supported?

Arabic, Danish, German, Greek, English, Spanish, Finnish, French, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Dutch, Norwegian, Polish, Portuguese, Russian, Swedish, Swahili, Turkish and Chinese.

How does voice cloning work?

Attach a clean 5-20 second recording of the speaker as voice_ref. Only clone voices you have permission to use.

Which model is used?

Chatterbox (MIT licence): chatterbox-turbo for English and chatterbox-multilingual for other languages.