Skip to main content
API key is optional but recommended for better service limits.

Base URL

Authentication

Bearer your-api-key-here (optional)

POST /v1/text-to-speech/generate

Generate speech from text using streaming response.

Request Headers

Bearer YOUR_API_KEY (optional)
required
application/json

Request Body

string
required
Text to convert to speech
string
required
Audio format for output (e.g., “wav”)
number
required
Size of audio chunks for streaming (e.g., 128, 32)

Response

The API returns a streaming audio response with:
string
audio/ (e.g., audio/wav)
binary
Streaming audio data in the specified format

Error Codes