Usage & Billing
Usage & Billing
JoyToken records tokens, Credits, model, provider, tier, and API key attribution after successful model calls.
What to Check
Billing Fields
Streaming responses append a metadata event before [DONE].
Usage Attribution
Use one API key per environment and workflow:
Cost Control
Balance and Budget
402 insufficient_quota usually comes from wallet balance, key budget, or tier balance. Check in this order:
- Personal or organization wallet balance.
- Balance for the requested tier.
- Daily / weekly budget on the API key.
- If a pinned model fails, test with
model: "auto". - If
premiumis too expensive, trystandardoreconomy.