Skip to main content
The Audixa API uses HTTP status codes to indicate the success or failure of requests. Endpoint-specific details can add context to the common responses below.

Error Response Format

All error responses follow a consistent JSON format:
Some errors may include additional context:

HTTP Status Codes

Success Codes

Client Error Codes

Server Error Codes

WebSocket Close Codes

Common Errors

400 Bad Request

Returned when request parameters are missing or invalid.
Common causes:
  • Missing required fields (text, voice_id)
  • Invalid model value (must be base or advanced)
  • Empty text or text longer than the active plan limit
  • Voice and model are incompatible

401 Unauthorized

Returned when authentication fails.
Common causes:
  • Missing x-api-key header
  • Invalid or revoked API key

402 Payment Required

Returned when your account has insufficient balance.
Solution: Add at least $10 or start a subscription in the Billing Dashboard.

404 Not Found

Returned when a requested resource doesn’t exist.
Common causes:
  • Invalid generation_id when checking status
  • The generation belongs to another account

429 Too Many Requests

Returned when you exceed the rate limit.
Solution: Implement exponential backoff retry logic. See Rate Limits.

500 Internal Server Error

Returned when an unexpected server error occurs.
Solution: Retry the request. If the error persists, contact support@audixa.ai.

Error Handling Example

Handle transport errors directly, then handle the asynchronous FAILED status while polling: