Plans and the API
An organization on a monthly plan uses the API exactly as before. This page covers what the plan allowance changes and how to read the plan state.
When the allowance runs out
Once a seat's allowance is used up, requests to paid models are refused with HTTP 429 and budget_exceeded in the response body. It is the same response as an empty prepaid balance; plans do not change its shape. Free models keep working.
Detect it by budget_exceeded in the body, not by the status code: 429 is also returned for rate limits.
Reading the plan state
GET /api/credits/balance returns a plan object when the organization has a plan, and null for a prepaid organization. It is the dashboard endpoint and is authenticated by a signed-in browser session, not by an API key. GET /api/usage/summary returns the same plan. Every amount is in the smallest unit of the organization's currency (yen, or US cents).
Fields of plan
code- The plan tier (lite / standard / pro). With seats of several tiers, the highest one.
items- The seats by tier: an array of plan_code and quantity.
seats- The total number of seats, which is how many members the organization can hold.
used_percent- How much of this period's allowance has been used, as a whole percent from 0 to 100.
allowance_left- True while some of this period's allowance is left, false once it is used up.
resets_at- When the allowance resets (ISO 8601); null while no period is open.
status- The subscription status (active, past_due, and so on).
lapsed- True when a renewal payment was not received and the period has closed.
frozen- Always false: prepaid credit is never held.
extra_usage- The extra usage setting: enabled, the cap per seat per period, used this period across all seats, and remaining.
prepaid_remaining- Prepaid credit beyond the allowance. Every key that is not on a seat's allowance spends it, and so does each seat key past its allowance while extra usage is on.
gateway_available- Whether usage could be read from the gateway.
When gateway_available is false, every figure that depends on usage (used_percent, allowance_left, extra_usage.used, extra_usage.remaining, prepaid_remaining) is null. Do not read it as zero.
The balance in the same response is only the organization's credit that your key can still spend. For a seat holder it is the room that credit funds through the seat while extra usage is on, and 0 otherwise. The seat's allowance is never an amount: it is plan.seat.used_percent and plan.seat.allowance_left. can_spend says whether a request can be sent now, that is, whether the seat has allowance left or the credit funds more; it is null when usage could not be read. A balance of 0 does not mean the key is stopped, so read can_spend.
{
"balance": 0,
"can_spend": false,
"currency": "jpy",
"scope": "organization",
"plan": {
"code": "standard",
"items": [
{ "plan_code": "standard", "quantity": 3 }
],
"seats": 3,
"status": "active",
"resets_at": "2026-11-03T00:00:00.000Z",
"used_percent": 100,
"allowance_left": false,
"lapsed": false,
"frozen": false,
"extra_usage": { "enabled": false, "cap": null, "used": 0, "remaining": 0 },
"prepaid_remaining": 2400,
"gateway_available": true
}
}Extra usage
Extra usage is set by an owner or administrator of the organization. While it is off (the default), a seat's requests are refused once its allowance is used up, until it resets. Turned on, a seat's key moves to the organization's prepaid credit when its allowance is used up and continues there up to a cap per seat per period (extra_usage.cap); the request that found the allowance used up is refused once, so retry it. The cap resets with each period, when the key moves back to its new allowance. Keys that are not on a seat's allowance always spend the credit.
Seats
Seats are how many members the organization can hold, counting the owner and pending invitations. Each seat holder gets a monthly allowance of their own, by their seat's tier, on their seat key: one member's use never takes another's.