[DOCS]

Errors

Every error uses the OpenAI envelope, so SDK error handling works unchanged. The code field is stable and machine-readable. This page lists every code the platform can emit.

ERROR ENVELOPE
{
  "error": {
    "message": "This API key is disabled. Re-enable it from your dashboard.",
    "type": "authentication_error",
    "code": "api_key_disabled"
  }
}

All error codes

HTTPCODETYPEMESSAGE
401missing_api_keyauthentication_errorMissing API key. Pass it as: Authorization: Bearer sk-blaze-...
401invalid_api_keyauthentication_errorInvalid API key.
403api_key_disabledauthentication_errorThis API key is disabled. Re-enable it from your dashboard.
400invalid_requestinvalid_request_errorThe request body is invalid.
404model_not_foundinvalid_request_errorUnknown model. See GET /v1/models for available models.
404model_not_availableinvalid_request_errorThis model is not available yet. See blazeinference.com/models.
413payload_too_largeinvalid_request_errorRequest body exceeds the 5 MB limit.
400context_length_exceededinvalid_request_errorThe request exceeds the model's context window.
429quota_exceededrate_limit_errorDaily free quota reached (100 successful requests/day). Resets at midnight UTC.
429rate_limitedrate_limit_errorToo many requests. Slow down and retry shortly.
502inference_errorapi_errorInference failed. This request did not count against your quota. Please retry.
504inference_timeoutapi_errorInference timed out. Please retry.
500internal_errorapi_errorInternal error. Please retry.
400invalid_otpinvalid_request_errorInvalid code.
400otp_expiredinvalid_request_errorThis code has expired or was already used. Request a new one.

Errors during streaming

If a stream fails after it has started, the final SSE event carries the same envelope (typically inference_error or inference_timeout) followed by data: [DONE]. Failed streams never count against your quota.