Zseton
Sign up

Error codes

What each error means and what to do.

Errors are in OpenAI format: {"error": {"message", "type", "code"}}. Branch on code, not on the message text. On the Anthropic endpoint the format is the Anthropic error envelope, and there's no 402.

HTTPcodeMeaning and action
401missing_api_keyNo key. You need an Authorization: Bearer zs_live_… or x-api-key header.
401invalid_api_keyInvalid or revoked key. Create a new one.
402insufficient_balanceBalance exhausted. Top up. (On the Anthropic endpoint: 400.)
402key_monthly_limit_reachedYou've reached this key's monthly spending cap. Raise it on the Keys page.
402promo_model_not_allowedPromo credit only works on specific models. Pick one of those, or top up.
400invalid_jsonThe body isn't valid JSON.
400stream_not_supportedStreaming only works on /v1/chat/completions and /anthropic/v1/messages.
404not_foundUnknown endpoint.
404minimum_discount_not_metNo capacity meets the requested minimum discount. Lower the X-Min-Discount value.
429rate_limitedToo many requests. Wait the time indicated in the Retry-After header.
502upstream_unavailableThe model provider is unreachable. Try again.
503no_sellers_for_modelThe model has no available capacity or doesn't exist. Check the /v1/models list.
503service_unavailableTemporary error on our side. Try again in a few minutes.

Every response carries an x-request-id header. Include it in support requests. support@zsetonai.hu.

Failed request fees

We don't charge for failed or errored requests. Only successful (2xx) responses are charged.

Next
Limits →
Error codes – Zseton docs