Skip to content
INRENT
Platform

Errors

Error format, codes, and how to fix each one.

Every error has the same shape:

{
  "error": {
    "type": "insufficient_credits_error",
    "code": "insufficient_credits",
    "message": "Your organization's credit balance is too low for this request. Add credits or enable auto-recharge.",
    "param": null,
    "request_id": "req_01J9Z4Q3W6M0Y8R2T5V7X9B1C3",
    "details": { "balance_inr": "₹1.80", "estimated_cost_inr": "₹0.405000" }
  }
}

Always log request_id. Support can trace any request with it.

Reference

StatusCodeWhat happenedHow to fix
400invalid_requestThe body failed validation (see param).Fix the field named in param.
400invalid_jsonThe body is not valid JSON.Send Content-Type: application/json with valid JSON.
400unsupported_capabilityNo provider for this model supports a feature you used.Remove the feature or pick another model.
400context_length_exceededPrompt + max_tokens exceeds the context window.Shorten the input or lower max_tokens.
401missing_api_key / invalid_api_keyKey missing or wrong.Check the Authorization header.
401revoked_api_key / expired_api_keyKey revoked, rotated or expired.Create or rotate a key.
402insufficient_creditsBalance can't cover the estimated cost.Add credits or enable auto-recharge.
402api_key_budget_exceededThe key hit its spend limit.Raise the key's limit.
402project_budget_exceededThe project hit its monthly budget.Increase the budget or wait for the next month.
402organization_budget_exceededThe organization hit its monthly cap.Raise the cap in Billing.
403model_not_allowedThe key or project allowlist excludes the model.Update the allowlist.
403insufficient_key_permissionsThe key lacks a permission (e.g. keys:write).Use a key with that permission.
403permission_escalationA key tried to create a more powerful key.Grant only permissions the key has.
404model_not_foundUnknown model id.Use an id from GET /models.
429rate_limit_exceededA rate limit was hit.Wait retry-after seconds and back off.
501endpoint_not_supportedThe endpoint isn't available yet.See the roadmap.
502upstream_error and relatedThe provider failed after all fallbacks.Retry, or allow fallbacks and fallback models.
503model_unavailableNo eligible provider (not enabled, needs BYOK, or all down).Read the message; add a BYOK key or choose another model.
504upstream_timeoutThe provider didn't respond in time.Retry or reduce the request size.
500internal_errorSomething failed inside INRENT.Retry; contact support with the request_id.

Cloud VPS

StatusCodeWhat happenedHow to fix
400compute_permission_needs_userA key created through the API asked for compute:* permissions.Create the key in the console under API Keys.
403key_has_no_userThe key was created by another key, so there is no person for it to act as.Use a key created in the console.
403key_creator_not_memberThe person who created the key left the workspace.Create a new key.
403key_creator_forbiddenThe key's creator no longer has the role permission.Change their role, or use another person's key.
403key_spend_limit_not_supportedA key with a spend limit tried to order, resize or turn on backups.Use a key without a spend limit for those calls.
409conflictThe server is busy with another action, or its state does not allow this one.Wait for the current action to finish, then retry.
503capacity_unavailableNo machine in the region has room for the server.Try another region or size, or retry later.

See Cloud VPS keys.

Errors from providers

Upstream error messages are passed through when they help, with credentials redacted. details.provider and details.upstream_status identify the source.

Edit this page