Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| 401 Invalid or revoked API key | Copied wrong, revoked, or missing key. | Check the header, look at the key status on the API Keys page, generate a new key if needed. |
| 403 (gate / suspended / unverified) | Suspension, closed API access, unverified email, or subscription requirement. | Clear the warnings on the Account page, check your plan. |
| 404 model | Panel display name vs. API ID mismatch. | Use the id field from the GET /v1/models response. |
| 400 messages / input | Empty body or unconvertible input. | Check the messages / input field and the JSON format. |
| 400 tool / unsupported_tools | Unmatched tool pair or unusable tool definition. | Send assistant tool_calls together with the tool result; simplify tool schemas. |
| 429 | RPM, quota, or concurrency cap. | Honor reason and Retry-After; on quota, wait for the window. |
| 502 / 503 | Temporary upstream or service problem. | Retry with time-budgeted backoff; if it persists, share the X-Request-ID with support. |
| Stream cut halfway | Proxy buffering, short client timeout, or a dropped connection. | Turn off buffering, raise the timeout, do not complete the response before a terminal event. |
| Wrong protocol | Chat client against the Responses endpoint or vice versa. | Check the last segment of the SDK baseURL; follow the relevant agent guide. |
When contacting support, include the X-Request-ID response header value, the model ID, and the time.