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
| Status | Meaning | What to do |
|---|---|---|
| 400 | No 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. |
| 401 | The API key is wrong, mistyped or revoked. | Copy the key again, or generate a new one under API Keys. |
| 403 | Identity verification is needed before this instance can be used (code "kyc_required"). | Finish it under Settings → Verification, then retry. |
| 404 | The 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). |
| 409 | The 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. |
| 422 | Video 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. |
| 429 | Video 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. |
| 502 | The instance can't be reached right now. | Retry in a moment. If it keeps happening, check the instance on My Instances. |
| 503 | Image models: the model is still loading on the instance. | Retry in a moment. |
Retrying
502and video429are worth retrying after a short wait, with a growing delay between tries.400,401,403and422fail the same way every time until you change the request, the key or your account.409clears once a starting instance is ready. An instance whose pack has ended won't come back: deploy again.