Why do my tokens run out after a couple of requests?
Every request is charged for all the tokens the model processed: your message, the whole conversation history, the system prompt, tool descriptions and the answer itself, including the model's reasoning.
Agents — Claude Code, Codex, Cursor, OpenCode and others — re-send the whole context on every step: their own system prompt of thousands of tokens, tool descriptions, open files and history. An agent makes dozens of such requests per task, so spending grows faster than short chat messages suggest.
Re-sent context is charged in full — there is no separate cache discount.
How to spend less: run /compact or start a new session when the context has grown; use a model with a lower coefficient for simple tasks; set a spending limit on the key. Every request and its charge is visible in the dashboard, in the request history.
Before a request runs, the most it can cost is reserved on your balance. The unused part comes back right after the answer.
AnyModel