/api/v6/tts/synthesizeSynthesize text to speech
Turns a text into audio and returns its reference. Synchronous.
Scope and limits
API key with the tts service enabled
60 requests per minute
Supports Idempotency-Key
- Up to 4000 characters of text per request.
- Audio lifetime ranges from 1 hour to 1 year; the default is 30 days.
Turns a text into an audio file and returns its reference. Synthesis is synchronous: the response arrives once the audio is ready.
The voice is chosen with voice, using a code from the catalog (see GET /api/v6/tts/voices). Text allows up to 4000 characters per request.
The same text with the same voice is reused automatically: if you already generated that audio, the response arrives with cached: true and without processing it again.
Request body
application/jsontextvoiceGET /api/v6/tts/voices).speakingRateDefault: 1
formatwav for now.wavttlSecondsDefault: 2592000
{
"text": "Hola, te llamamos de Acme para confirmar tu cita.",
"voice": "es-us-female-2",
"speakingRate": 1
}Responses
Audio ready, freshly generated or reused.
{
"success": true,
"data": {
"id": "01J9Z4M7K2QABCDEF5GHTV3WXY",
"status": "completed",
"cached": false,
"charCount": 49,
"durationMs": 3120,
"voice": "es-us-female-2",
"cost": "12.500000",
"currency": "COP",
"audioUrl": "https://storage.hablame.co/tts/9f2c...e1.wav?Expires=...&Signature=..."
},
"meta": {
"requestId": "8f0c0e2a4b1d4c8fae2b7a91e0c5d3f6",
"timestamp": "2026-06-23T15:04:05+00:00",
"responseTimeMs": 412.5
}
}Invalid input: empty or too long text, unknown voice, or an out-of-range parameter.
Invalid or missing credentials.
Insufficient balance to generate the audio.
The API key does not have the tts service enabled, or a spending limit prevents generation.
Request limit exceeded.
Possible errors
Codes this endpoint can return in error.code. The full detail lives in the catalog.
AUTH_REQUIREDNo Bearer token was sent, and every call requires one.401AUTH_INVALID_KEYThe API key is not recognized: wrong format, revoked or expired.401AUTH_SERVICE_NOT_ALLOWEDThe key is not allowed to use the service behind this endpoint.400BAD_REQUESTWe could not parse your request.403ACCOUNT_READ_ONLYRead-only mode: only GET, HEAD and OPTIONS pass.429RATE_TPS_EXCEEDEDYou exceeded your organization quota for this endpoint.