| 401 / Unauthorized |
API Key |
Re-copy your Key; do not include "Bearer " when pasting it into the client. |
| 403 / Forbidden |
Key Permissions |
Check account balance, Key status, and the model restriction list. |
| 404 / Not Found |
URL Path |
Base URL ends at /v1; only Full URL includes /chat/completions. |
| model_not_found |
Model ID |
Copy model.id verbatim from the model restriction list or /v1/models. |
| Chat works but Agent fails |
Tool Calling |
Switch to a model that supports tool_calls and streaming. |
| Response cuts off mid-stream |
Streaming Output |
Check streaming/SSE compatibility and network stability. |
| Duplicate /v1/v1 |
Client Auto-Append |
Remove the duplicate path and keep only a single /v1. |
| Timeout |
Model / Network |
Test with a short prompt first, switch to a faster model, and check proxy or firewall settings. |