inferva

Overview

Errors

Status codes, error types and what to do about them.

Errors return a JSON body with a human-readable message and a machine-readable type.

{
  "error": {
    "message": "No sponsored capacity left. Sponsor capacity in the app to serve this request.",
    "type": "capacity_exhausted"
  }
}
StatusTypeMeaning
400invalid_request_errorNo messages array, or no message has text content
401invalid_api_keyMissing, unknown or revoked key
402insufficient_fundsThe key owner's USDG balance cannot cover the request
404model_not_foundNo active provider serves the requested model
429rate_limit_exceededOver the tier's requests per minute; see Retry-After
502provider_errorThe provider could not complete the request; you were not charged
503capacity_exhaustedNo sponsored capacity position has room for the request
503settlement_busyThe settlement log was busy; retry

Charging rules

Funds and capacity are checked against the worst-case cost before generation starts. A request that fails with any of the errors above is not charged. The final charge uses actual token counts.

Was this page helpful?