Errors & troubleshooting

API reference

Errors & troubleshooting ​

Start with the response message, then check the matching item below. Error wording and HTTP status can vary by upstream provider and route.

Six common checks ​

IssueWhat to checkNext step
Authentication failedMissing key, extra whitespace, wrong header, or revoked key.Copy the key again and use the header for its protocol. See authentication.
model_not_found or unsupported modelIncorrect call name, incompatible protocol, or model outside the key's group.Copy the exact model name from Model Plaza and confirm group access.
Insufficient balance or key budgetAccount balance is too low or the key has reached its configured budget.Review account balance, key status, key budget, and recent usage in the console.
No upstream account availableNo eligible resource, upstream concurrency limit, or maintenance.Try another model available to your key's group or retry later.
502 Bad GatewayClient connection, upstream maintenance, or an oversized session.Check service status, retry later, restart the client, and test a new session.
Incorrect endpoint or API formatDuplicate /v1, a full URL entered as a base URL, or an incompatible client type.Use the connection table and the endpoint-specific guide.

Isolate the request ​

  1. Confirm the key's group and protocol on API Keys.
  2. Copy an available model call name from Model Plaza.
  3. Send a minimal request using the relevant endpoint example.
  4. If it succeeds, compare the client settings, selected provider, model name, base URL, and authentication.
  5. If it fails, review Usage Records and keep the error message and request time.

Image requests must use an image endpoint and a supported image model. A successful text-model check does not establish image-model availability.

Billing questions ​

Charges are deducted from account balance according to the model, actual usage, and applicable route multiplier. Review the model, tokens, request time, and charge in Usage Records.

Contact support ​

Email [email protected] with your account email, incident time and time zone, model name, endpoint, client version, and the error text or a redacted screenshot. Include relevant order information for payment issues.

Never send a complete API key. If a key was exposed, revoke it and create a replacement.

Need help? Visit the Help Center →Open console ↗