Base URL
Authentication
All API requests require authentication using an API key in theAuthorization header:
Response Format
All API responses are returned in JSON format unless otherwise specified.Success Response
Error Response
HTTP Status Codes
| Status Code | Description |
|---|---|
| 200 | Success |
| 201 | Created |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
Rate Limiting
API requests are rate-limited based on your subscription plan. Rate limit information is included in response headers:X-RateLimit-Limit: Maximum requests allowedX-RateLimit-Remaining: Remaining requests in current windowX-RateLimit-Reset: Time when the rate limit resets (Unix timestamp)
Pagination
List endpoints support pagination using query parameters:page: Page number (default: 1)limit: Items per page (default: 20, max: 100)
Endpoints Overview
Text-to-Speech
POST /tts-stream- Convert text to speechPOST /tts-stream(streaming) - Stream text to speech
Speech-to-Text
POST /stt- Transcribe audio to textGET /stt/languages- Get supported languages
Voices
GET /voices- List all voices