API reference

Errors

Every status code the API returns, what it means, and what to do.

What an error looks like

A request that fails answers with an HTTP status code and a JSON body. Errors from the API itself carry a short message in error, sometimes with a code:

From the API (403)
json
{
  "error": "Identity verification required. You've used the access allowed before verification; submit it at https://openllmbuddy.cloud/console/settings/verification and requests resume immediately.",
  "code": "kyc_required"
}

Errors from the model server on your instance use the OpenAI shape:

From your instance
json
{
  "error": {
    "message": "…",
    "type": "invalid_request_error"
  }
}

Tip

Handle both: read error.message when error is an object, and error when it is a string. OpenAI SDKs raise both as API errors with the status code.

Status codes

StatusMeaningWhat to do
400No API key sent, the body is not valid JSON, or a video or image request is invalid.Send Authorization: Bearer ob_sk_… and a valid JSON body.
401The API key is wrong, mistyped or revoked.Copy the key again, or generate a new one under API Keys.
403Identity verification is needed before this instance can be used (code "kyc_required").Finish it under Settings → Verification, then retry.
404The key's instance no longer exists, or the path is not one of the API's endpoints.Check the URL ends in /v1/chat/completions (or a video or image path), and that the instance still exists. For images: the picture is gone (kept 24 hours).
409The instance is still starting, has ended, or has no address yet. For videos: the job is not done yet.Wait for ready on My Instances. If its pack has ended, deploy again. For videos, keep polling.
422Video and image models: the request was refused by the safety checks. The body has an error code.Change the prompt or the image. These checks cannot be turned off.
429Video models: the instance already holds 4 jobs. Image models: it is still drawing another picture.Wait for a job or picture to finish, then send the next.
502The instance can't be reached right now.Retry in a moment. If it keeps happening, check the instance on My Instances.
503Image models: the model is still loading on the instance.Retry in a moment.

Retrying

  • 502 and video 429 are worth retrying after a short wait, with a growing delay between tries.
  • 400, 401, 403 and 422 fail the same way every time until you change the request, the key or your account.
  • 409 clears once a starting instance is ready. An instance whose pack has ended won't come back: deploy again.