Errors & Status Codes
OneTTS standardizes all error responses according to the OpenAI error payload structure.
🛑 Error Format
json
{
"error": {
"message": "Incorrect API key provided or missing Authorization header.",
"type": "invalid_request_error",
"param": null,
"code": "invalid_api_key"
},
"detail": "Incorrect API key provided or missing Authorization header."
}📊 Status Codes
| Code | Type | Meaning |
|---|---|---|
400 | invalid_request_error | Missing required fields or invalid parameters |
401 | authentication_error | Missing or invalid API key |
404 | not_found_error | Resource not found |
500 | api_error | Internal server or engine synthesis error |
