Skip to content

Usage, credit and billing

The wallet shows account credit. API keys contain separate key limits. Usage logs record models, tokens, groups and charges. Current unit prices are in the catalog; this guide does not maintain a fixed price table.

System instructions, conversation history, tool definitions, code and images can contribute to input usage. Some outputs also include reasoning usage. A coding task can make multiple requests, so its total charge is more than just the final visible response.

When cache and additional charges do not apply:

Input charge = input tokens / 1,000,000 × input price per million
Output charge = output tokens / 1,000,000 × output price per million
Total = (input charge + output charge) × applicable group multiplier

For an arithmetic example only, assume $1 per million input tokens and $4 per million output tokens. With 10,000 input and 1,000 output tokens, the base cost is $0.014. A 1x group multiplier keeps that value; 0.23x means 23% of the base value. Use the actual current price for a real model.

Cache reads and writes may have separate prices. A displayed input count may exclude separately listed cache tokens, so multiplying only two columns can be incomplete. Image billing may depend on images, quality or image tokens.

When reconciling records, compare the same request, time, model, token categories, cache reads/writes and group. A client’s estimate may use its own built-in prices instead of the platform’s actual charges.

Online recharge is available. Buy a code in your wallet, then redeem it there to add credit.

After adding credit, check that the key is active, not expired, within its allowance and allowed to use the target model. Follow the wallet’s currency labels and conversion information rather than treating a dollar value as a local-currency value.

An automatic retry can start another generation request. After a timeout, inspect the original usage record before retrying. A disconnected client does not establish that the upstream request failed or went uncharged.