Skip to content

How you are charged

A request costs usage × unit price × rate.

  • Usage: input, output, cache write and cache read tokens; models priced per request, image or second count those instead.
  • Unit price: the official price listed in the Model Plaza.
  • Rate: the line’s rate or your personal rate, multiplied further in peak hours and similar cases. See Reading the prices.

The amount before the rate is the original cost; what you’re charged is the billed cost. Usage shows both.

  • You’re charged after a request completes, for what it actually used. Nothing is put on hold beforehand.
  • Failed requests are free. When the platform retries on another account behind the scenes, only the attempt that succeeds is billed.
  • A stream that stops partway:
    • If the upstream stops, you pay for what was produced.
    • If you disconnect (closing the client, for example), the platform still receives the rest of the reply and bills the full usage, so stopping early doesn’t save money.

The balance is checked before a request starts. If the last request costs more than what’s left, the balance ends up negative; further requests are refused for insufficient balance until you top up.

The same goes for subscription quotas: the last request can take usage slightly over the limit.

Each key decides what it is billed to. When you create or edit a key, pick a Billing source:

Billing sourceMeaning
Balance (default)Charged to your balance.
SubscriptionAvailable when you have a subscription; charged to its quota.

With Subscription you can also tick Use balance automatically after the subscription quota runs out or expires (off by default):

  • Ticked: when the quota runs out or the subscription expires, requests move to the balance without interruption.
  • Not ticked: requests the subscription can’t cover are refused, so the balance is never spent by surprise.

To cap what one key can spend, set on the key:

LimitMeaning
QuotaThe most this key can ever spend, in US dollars; 0 means no limit.
5-hour / daily / 7-day limitsThe most it can spend in a period. The period starts at the first charge in it and clears completely 5 hours, 24 hours or 7 days later — not on calendar days.
ExpiryThe key stops working after this date; change the date to bring it back.

Limits count the billed cost whether the key is billed to the balance or a subscription. When the quota is used up, raise it or reset the used amount in the Hub.

Each account can run a limited number of requests at once; Profile in the Hub shows your “Concurrency Limit”. Requests over it wait in a queue for up to 30 seconds, then fail.

StatusMessageCause and fix
403Insufficient account balance or insufficient balanceNot enough balance. Top up.
429subscription quota is used up: ...The subscription’s quota is used up. Wait for it to reset, let the key fall back to the balance, or bill the key to the balance.
403no active subscription: ...No active subscription (it expired). Renew, or bill the key to the balance.
403daily usage limit exceeded and similarThe subscription’s daily, weekly or monthly quota is reached.
429API key quota is used upThe key’s quota is used up. Raise it or reset the used amount in the Hub.
429API key 5-hour spending limit reached, API key daily spending limit reached, API key 7-day spending limit reachedThe key’s 5-hour, daily or 7-day limit is used up. It clears when the period ends.
403API key has expiredThe key has expired. Change its expiry in the Hub.
401API key is disabledThe key is disabled. Enable it in the Hub.
429Too many pending requests, please retry later or Concurrency limit exceeded for user, please retry laterToo many requests at once. Retry later or run fewer in parallel.