SaaufAI API errors and limits

What each error means and what to do about it.

Errors are JSON in the OpenAI shape, with the HTTP status as code and a resolution that says what to do next: {"error": {"message": "...", "type": "...", "code": 401, "resolution": "...", "docs": "/docs/errors"}}. This holds for every /v1 and /api address, including unknown ones.

StatusTypeWhat to do
400invalid_request_errorFix the request: valid JSON, with model and messages.
400unsupported_endpointUse /v1/chat/completions for this model.
401authentication_errorThe key is missing, wrong or revoked.
402insufficient_creditAdd credit in Credits, or use a free model.
403permission_errorThe key is locked to another model.
403model_not_availableListed, but not open on the API (Wisps and Playground only).
403key_expiredThe key reached its end date or limit. Make a new one.
404model_not_foundCheck the id on Models.
404not_found_errorNo endpoint at that address. See the OpenAPI spec.
405method_not_allowedUse a method from the Allow header.
429rate_limit_exceededSlow down and retry after the retry-after seconds.
429free_allowance_exhaustedThe free allowance is used up for now; it counts the last 7 days, so more frees up as older use ages out.
500server_errorSomething failed on SaaufAI's side. Retry with backoff; tell Support if it keeps happening.
502, 503upstream_error, model_unavailableThe provider had a problem. Retry with backoff, or try another model.

Limits

  • Spending: paid requests draw on your prepaid credit; a key's spending cap stops it at that total.
  • Free allowance: an allowance of GLM 4.5 Flash (much bigger on Extended), counted over the last 7 days, in Wisps and the Playground. It isn't available on the API.
  • Context and output: each model's maximum is on its page.