Errors

Errors

Crustoff returns errors in the OpenAI error envelope, so the official SDKs’ error handling works unchanged:

{
  "error": {
    "message": "Insufficient credits. Top up your balance to continue.",
    "type": "insufficient_quota",
    "code": "insufficient_quota",
    "param": null
  }
}

Status codes

HTTPtypecodeWhen
400invalid_request_errorMalformed body, bad size/n/response_format
401authentication_errormissing_api_keyNo Authorization header
401authentication_errorinvalid_api_keyUnknown key
401authentication_errorinactive_api_keyKey revoked
402insufficient_quotainsufficient_quotaBalance too low for the request
403permission_errorinactive_accountAccount suspended
404invalid_request_errormodel_not_foundUnknown model, or wrong modality for the endpoint
429rate_limit_errorrate_limit_exceededOver your RPM limit
502server_errorworker_errorThe model worker failed (you are not charged)
503server_errormodel_coldNo GPU is warm yet — retry shortly

Notes

  • model_not_found on the wrong endpoint. Calling /v1/chat/completions with an image model (or /v1/images/generations with a text model) returns 404 model_not_found. Check the model’s modality in /v1/models.
  • You are never charged for our failures. worker_error and model_cold release the credit hold in full.
  • x-prox-request-id. Every response carries this header — include it if you contact support about a specific request.