API reference & errors
Endpoints, response handling and troubleshooting.
Core endpoints
Authenticate API requests with an Authorization: Bearer header. Use the exact model ID from the model directory. Endpoint support depends on the selected model and provider.
- GET /v1/models
- POST /v1/chat/completions
- POST /v1/embeddings
- POST /v1/images/generations
Handle errors
Inspect the HTTP status and error response. Keep secrets out of application logs and retain only the non-secret context needed to troubleshoot.
- 401: check whether your API key is valid and active.
- 403: check model, group, project and workspace permissions.
- 429: check rate limits and available provider capacity.
- 5xx: inspect provider availability and configured retry policy. Avoid blindly replaying requests with uncertain execution.
Streaming & tools
Streaming and tool support vary by endpoint and provider. A stream that has started returning output is not automatically replayed by project routing. Tool requests are also excluded from project retry.