Credit model
AI usage is billed in credits. The conversion rate depends on the model:
Credits are not currency — they are a normalized unit that maps to a dollar value on your invoice. The exact rate per credit is shown in your billing dashboard.
Monthly budget cap
Each organization has a monthly credit allotment. When credits are exhausted, inference requests fail. On the native surface, the error code isCONSUMPTION_BLOCKED with HTTP status 402:
BUDGET_EXCEEDED with status 429 (to match those SDKs’ rate-limit status convention) instead of a 402, since neither wire format has a payment-required concept. See the Error Reference for the full catalog.
Configuring a spend cap
Set a hard cap below your plan’s allotment viaPATCH /v1/usage/budget:
CONSUMPTION_BLOCKED (native surface) or BUDGET_EXCEEDED (compat surfaces) until the billing period resets or the cap is raised.
Spend alerts
Configure alert thresholds via the dashboard (Settings → AI Workspace → Budget Alerts). HASP sends email alerts when usage crosses 50%, 80%, and 100% of your configured cap. Budget thresholds do not emit webhook events.Per-request usage in responses
Every non-streaming response includes token usage in theusage field:
message_delta SSE event with usage.output_tokens and in a final UsageUpdate event.
Checking current usage
credits_used, credits_allotment, credits_remaining, and a per-model breakdown for the current billing period.