Errors
Region
Errors return a JSON body with a code and a message. The message says what happened and what to do.
Error body
{
"error": {
"code": "region_unavailable",
"message": "No capacity in region au-syd; request was not routed elsewhere; retry after 30 s"
}
}| HTTP | Code and message |
|---|---|
| 400 | invalid_request "Field messages is required" |
| 401 | invalid_api_key "API key not recognised" |
| 402 | insufficient_credits "Workspace has $0.00 in credits; this request needs $0.02" |
| 404 | model_not_in_region "Model deepseek-r2 is not served in region us-mem" |
| 404 | not_found "No route for POST /v1/embeddings" |
| 429 | rate_limited "Rate limit of 60 requests / min reached; retry after 12 s" |
| 503 | model_unavailable "Model deepseek-flash is not accepting requests" |
| 503 | region_unavailable "No capacity in region au-syd; request was not routed elsewhere; retry after 30 s" |
429 and 503 carry a Retry-After header in seconds. A request is never retried in another region on your behalf. If you want a fallback region, call it yourself.