How a reply is billed
For pay as you go, each reply costs:
(prompt_tokens − cached_tokens) × $0.20 / 1M
+ cached_tokens × $0.05 / 1M
+ completion_tokens × $0.60 / 1M
A typical story reply sends about 8,000 prompt tokens and gets
back about 300. With nothing cached that is $0.0018; with 80% of the
prompt cached, as in a steady chat, it is $0.0008. The free credit alone covers about
2,800 replies at the uncached price.
Why cached tokens are 75% off
When the start of your prompt matches a recent request, the GPU already holds those tokens and skips the work
of reading them again. We pass that saving on. Chat apps resend the same system prompt and history every turn,
so most of a long chat bills at the cached price, as long as the top of the prompt stays the same.
How to keep prompts cache-friendly.
Limits
- Pay as you go: spend up to your balance. Requests per minute grow with your total top-ups.
- Flat plans: a fixed number of replies running at once and a context size. A request over the limit gets an immediate 429 with
Retry-After.
- Payments: card payments through Stripe. Top-ups and plans are prepaid; see our
refund policy.