spillway
Using the API

Errors

Every error code, what it means and what to do about it.

Errors use the format of the endpoint you called (OpenAI or Anthropic), with a stable code.

Every error has a stable code.

Error codes

StatusCodeMeaning
400invalid_request_errorThe body is not valid JSON or is missing model / messages (or input for embeddings).
401authentication_errorMissing, malformed, unknown or revoked API key.
402insufficient_balanceYour balance cannot cover the cheapest eligible offer. Deposit USDC.
402key_budget_exceededThis key would go over its spending budget. Raise or reset it in the dashboard.
403permission_errorThe account is suspended, or the key may not use this endpoint.
404model_not_foundUnknown model id. List ids with GET /v1/models.
404no_sellers_for_modelNo healthy offer for this model right now under your trust settings.
404minimum_discount_not_metNo offer meets your minimum discount. The message names the best one available.
429rate_limitedToo many requests. Wait for the time in Retry-After.
4xx/5xxupstream_errorThe seller rejected the request, for example a parameter the model does not support. The message gives the status and a standard code.
503upstream_unavailableEvery attempted offer failed. Retry, or loosen your filters.