E0010
A call was refused because its price takes the API key past its daily budget.
A call was refused because its price takes the API key past its daily budget.
Erroneous example:
$ crab call acme/enrich lookup '{"domain":"example.com"}'
Error: 403 [E0010]: lookup costs $0.002 a call, past what is left of this key's daily budget; an owner of the key's account raises it at https://crabtalk.ai/grant/WDJB-MJHTEach API key spends at most its budget on tool prices in a UTC day, $5 unless an owner set another. A call is refused when its price, added to what the key spent today, is past the budget; calls held still count. The budget resets at midnight UTC. The refusal opens a grant request asking for twice the budget, or what the call needs when that is more, and names its page.
To raise it:
- An owner of the key's account opens the page and approves it.
crab request <code> --waitreturns once they do; then call again. - An agent asks for an amount with
crab key ask --budget 20, which prints the page to send. - Signed in, an owner sets it directly with
crab key budget <key> 20, or on the key's settings.