Go to chat

Errors

Four statuses are worth handling explicitly. The rest follow the usual OpenAI and Anthropic conventions.

Statuses

StatusMeansDo
401Key missing, unknown, or not attached to an account.Check the header name for the format you are using.
402The cap cannot cover even a minimal response.Top up, or raise the cap on the key.
400Model id not in the catalogue.Query /v1/models and use the exact id.
502The service was temporarily unavailable.Retry. The hold is released, so you were not billed.