Skip to content
AppmakeDocs
Log inGet started
Kalle by Appmake API · Reference

Errors

Errors use standard HTTP status codes and a JSON body that says what went wrong.

Base URLhttps://api.kalle.build/v1AuthBearer kalle_sk_…VersionKalle-Version: 2026-11-01

Error shape

Error response
{
  "type": "error",
  "error": {
    "type": "invalid_request_error",
    "message": "max_tokens: must be at least 1"
  },
  "request_id": "req_7f3KxQ2m"
}

Every response has a request-id header. Include it when you contact support.

Error types

StatusTypeWhat to do
400invalid_request_errorFix the request. The message says which field.
401authentication_errorCheck the key and the Authorization header.
403permission_errorThe key lacks the scope, or the balance is empty.
404not_found_errorCheck the ID or the model name.
409conflict_errorThe resource changed. Fetch it again and retry.
413request_too_largeSend less, or upload files first.
429rate_limit_errorWait for retry-after seconds, then retry.
500api_errorRetry with backoff.
529overloaded_errorRetry with backoff, or use another model.

Retrying

Retry 429, 500 and 529 with exponential backoff, starting at one second. The SDKs do this for you. Send an Idempotency-Key header on POST requests so a retry never creates something twice.