DEVELOPER DOCUMENTATION
Errors & limits
Handle errors deliberately. Keep retries bounded.
| HTTP | Meaning | Next step |
|---|---|---|
| 400 | Invalid request | Check the exact model ID, text messages, and supported parameters. |
| 401 | Invalid or revoked key | Check your key and selected gateway. |
| 402 | Insufficient credits | Check active stake and available credits. |
| 404 | No available route | Refresh the live catalog; the model may no longer be available. |
| 429 | Rate limit reached | Back off before retrying. |
| 502 / 503 | Upstream or service unavailable | Retry with bounded exponential backoff; inspect any receipt first. |
Request limits
Maximum output is 65,536 tokens at the gateway and may be capped further by available credits or upstream limits. The model’s catalog context and output limits do not override the gateway’s request contract. Owner-level rate limits are shared across that owner’s keys.