Error response format
Common errors
401 Unauthorized
Missing or invalid API key.403 Forbidden
Valid API key but insufficient permissions.400 Bad Request
Invalid request parameters.404 Not Found
Voice or model doesn’t exist.413 Payload Too Large
Text exceeds 5,000 characters.500 Internal Server Error
Server-side processing error.Error handling example
HTTP status codes
| Code | Meaning |
|---|---|
| 200 | Success |
| 400 | Bad request - invalid parameters |
| 401 | Unauthorized - invalid API key |
| 403 | Forbidden - insufficient permissions |
| 404 | Not found - invalid voice/model |
| 413 | Payload too large - text > 5,000 chars |
| 500 | Server error - processing failed |

