← PixelAPI · Text-to-Speech · All docs · Pricing
Convert text to natural speech in 23 languages, optionally in a cloned voice from a short reference clip. Engine: Chatterbox (MIT licence). Output: WAV.
| Operation | Price | Notes |
|---|---|---|
| Speech | 40 credits per 1,000 characters | Charged per character, minimum 1 credit. ≈ $0.04 per 1,000 characters on Starter |
| Voice cloning | Same price | No extra charge for voice_ref |
/v1/tts/generateReturns an id. Poll GET /v1/tts/status/{id} for the WAV.
| Field | Type | Required | Description |
|---|---|---|---|
text | string | yes | Text to speak, max 400 characters. |
language | string | no | Default 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_ref | file | no | Reference voice clip for cloning (WAV/MP3/M4A, 5-20 s of clean speech, max 10 MB). |
model | string | no | auto (default), chatterbox-turbo or chatterbox-multilingual. |
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"
| model | Used for |
|---|---|
auto (default) | chatterbox-turbo for English, chatterbox-multilingual for every other language. |
chatterbox-turbo | English. |
chatterbox-multilingual | All 23 languages. |
/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"
Try it in the appTutorialTool overview
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.
Up to 400 characters per request. Split longer scripts into several requests and join the WAV files.
Arabic, Danish, German, Greek, English, Spanish, Finnish, French, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Dutch, Norwegian, Polish, Portuguese, Russian, Swedish, Swahili, Turkish and Chinese.
Attach a clean 5-20 second recording of the speaker as voice_ref. Only clone voices you have permission to use.
Chatterbox (MIT licence): chatterbox-turbo for English and chatterbox-multilingual for other languages.