insufficient_credits

AllowanceSeen in: Runs, Data uploadsSee the limit

What happened

A hosted run or an upload holds credits before it starts. When your balance cannot cover even the first hold, the request is refused with 402 and nothing is queued. The reply carries available and required.

What to do

Add credits or wait for your monthly credits, or make the work smaller. A run that does not fit under your monthly spending cap is a different code, spend_cap_reached.

Example

json
{
  "error": {
    "code": "insufficient_credits",
    "message": "Not enough credits to run this.",
    "detail": {
      "available": 12,
      "required": 40,
      "request_id": "3c6f9a52-8e1d-4b7a-9f20-6d41a8c5e7b3"
    }
  }
}

Ask about this in the forum