Contents

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"
  }
}
HTTPCode and message
400invalid_request
"Field messages is required"
401invalid_api_key
"API key not recognised"
402insufficient_credits
"Workspace has $0.00 in credits; this request needs $0.02"
404model_not_in_region
"Model deepseek-r2 is not served in region us-mem"
404not_found
"No route for POST /v1/embeddings"
429rate_limited
"Rate limit of 60 requests / min reached; retry after 12 s"
503model_unavailable
"Model deepseek-flash is not accepting requests"
503region_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.