Hanzo AI

List limits

Reads the caller's plan AI limits: each window's billed cents used and allowed, when it resets, and whether their one free reset for the period is still there.

GET /v1/ai/limits

Addresshttps://api.hanzo.ai/v1/ai/limits
MethodGET
OperationaiLimits
AuthAuthorization: Bearer $HANZO_API_KEY

Reads the caller's plan AI limits: each window's billed cents used and allowed, when it resets, and whether their one free reset for the period is still there.

Request

GET /v1/ai/limits takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200aiLimitsok
defaultproblem-detailsrefused

200 body — 21 fields.

FieldInTypeAlwaysDescription
monthbodyaiLimit—
month.limit_centsbodyinteger (int64)—LimitCents is what the plan covers in this window, in billed cents.
month.resets_atbodystring—ResetsAt is when the window starts again (RFC3339), null for a session that is not running: it starts at the member's next priced call.
month.used_centsbodyinteger (int64)—UsedCents is what the plan has covered in this window, in billed cents.
period_endbodystring—
period_startbodystring—PeriodStart and PeriodEnd bound the billing period (RFC3339).
planbodystring—Plan is the rung that covers AI ("dev", "max-5x", "max-20x", "team", "team-annual"), empty when the caller's plan covers none and they spend bought credit only.
reset_availablebodyboolean—ResetAvailable says the member can restart their session and weekly windows now; ResetExpiresAt is when an unused reset lapses (the period end).
reset_expires_atbodystring—
sessionbodyaiLimit—
session.limit_centsbodyinteger (int64)—LimitCents is what the plan covers in this window, in billed cents.
session.resets_atbodystring—ResetsAt is when the window starts again (RFC3339), null for a session that is not running: it starts at the member's next priced call.
session.used_centsbodyinteger (int64)—UsedCents is what the plan has covered in this window, in billed cents.
weeklybodyaiLimit—
weekly.limit_centsbodyinteger (int64)—LimitCents is what the plan covers in this window, in billed cents.
weekly.resets_atbodystring—ResetsAt is when the window starts again (RFC3339), null for a session that is not running: it starts at the member's next priced call.
weekly.used_centsbodyinteger (int64)—UsedCents is what the plan has covered in this window, in billed cents.
weekly_premiumbodyaiLimit—
weekly_premium.limit_centsbodyinteger (int64)—LimitCents is what the plan covers in this window, in billed cents.
weekly_premium.resets_atbodystring—ResetsAt is when the window starts again (RFC3339), null for a session that is not running: it starts at the member's next priced call.
weekly_premium.used_centsbodyinteger (int64)—UsedCents is what the plan has covered in this window, in billed cents.

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


AI API · All Hanzo APIs · Interactive reference

How is this guide?

On this page