Skip to main content
VoidAI returns errors in a consistent JSON format. Understanding these errors helps you build robust applications.

Error Response Format

All errors follow this structure:

HTTP Status Codes

Common Error Codes

Authentication Errors

Request Errors

Provider Errors

Handling Errors

Python

TypeScript

Retry Strategy

For transient errors (5xx, rate limits), implement exponential backoff:

Debugging Tips

Every error includes a reference_id. Save this for support inquiries - it helps us track down issues quickly.
Most authentication errors are caused by typos or using the wrong API key. Double-check your key starts with sk-voidai-.
Use the Models endpoint to see available models before making requests.
Insufficient credits will cause requests to fail. Check your dashboard for your current balance.

Getting Help

If you encounter persistent errors:
  1. Note the reference_id from the error response
  2. Check your dashboard for account status
  3. Join our Discord for community support