Errors — OneHub

All errors follow the OpenAI error format.

Docs Docs Quick Start Authentication SDK Setup Available Models Rate Limits Chat Completions Streaming List Models Embeddings Image Generation Text to Speech Speech to Text Billing & Wallet Webhooks Errors

Errors

Every error response uses the OpenAI error envelope:

{
  "error": {
    "message": "You exceeded your current quota",
    "type": "insufficient_quota",
    "code": "insufficient_quota"
  }
}

Status codes

StatusDescription
400Bad Request — malformed body or invalid parameter
401Unauthorized — invalid or missing API key
402Payment Required — insufficient wallet balance for a paid model
403Forbidden — model not available on your plan
404Not Found — unknown endpoint or model
429Too Many Requests — rate limit exceeded
500Internal Server Error — unexpected failure
502Bad Gateway — upstream provider error
503Service Unavailable — provider not configured

Error types

TypeMeaning
invalid_request_errorThe request was malformed or a parameter was invalid
authentication_errorBad or missing API key
insufficient_quotaWallet balance too low for a paid model
permission_errorModel not unlocked on your plan
rate_limit_exceededToo many requests
api_errorSomething went wrong upstream