Usage, credit and billing
Where to check charges
Section titled “Where to check charges”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.
Tokens are different from characters
Section titled “Tokens are different from characters”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.
A basic text calculation
Section titled “A basic text calculation”When cache and additional charges do not apply:
Input charge = input tokens / 1,000,000 × input price per millionOutput charge = output tokens / 1,000,000 × output price per millionTotal = (input charge + output charge) × applicable group multiplierFor 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 and other billing categories
Section titled “Cache and other billing categories”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.
Credit and limits
Section titled “Credit and limits”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.
Retries
Section titled “Retries”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.
