Text to speech
Convert text to speech through the Respan gateway with automatic logging.
Headers
Authorization
Bearer token. Use Bearer YOUR_API_KEY.
Request
This endpoint expects an object.
model
TTS model.
Allowed values:
input
Text to generate audio for. Max 4096 characters.
voice
Voice to use.
response_format
Audio output format.
speed
Audio speed (0.25 to 4.0).
customer_credentials
Per-customer LLM provider credentials.
disable_log
When true, omits input/output from the log. Metrics still recorded.
metadata
Custom key-value metadata.
customer_identifier
End user identifier.
customer_email
Customer email address.
thread_identifier
Conversation thread ID.
request_breakdown
Return response metrics summary in the response body.
Response
Audio content in the requested format.
Errors
401
Unauthorized Error