Error Response Format
HTTP Status Codes
| Code | Meaning | Description |
|---|---|---|
| 200 | OK | Success |
| 400 | Bad Request | Invalid format, missing required fields |
| 401 | Unauthorized | Missing, invalid, or expired API key |
| 402 | Payment Required | Insufficient credits |
| 403 | Forbidden | Open API disabled, insufficient scope |
| 404 | Not Found | Model not found |
| 409 | Conflict | Duplicate resource |
| 429 | Too Many Requests | Rate limit exceeded |
| 500 | Internal Server Error | Server error |
| 502 | Bad Gateway | RAG service unavailable |
Common Errors
Authentication (401)
Permission (403)
Credits (402)
Troubleshooting
API key not working
API key not working
- Check key status on the Open API page (active/expired/revoked)
- Verify Open API is enabled for your tenant
- Ensure
Authorization: Bearerformat is correct (space after Bearer)
Model not found
Model not found
- Verify an Open API type model exists for your tenant
- Check model name (case-sensitive)
- Confirm the model is active
Streaming not working
Streaming not working
- Include
"stream": truein the request body - Ensure your client supports SSE parsing
- Try adding
Accept: text/event-streamheader