Every call to a cloud model means request tokens plus response tokens. The request includes not only the user's question but also instructions, the conversation history and any retrieved documents, if you're running
RAG. All of this has to fit into the context window: as of November 2026, OpenAI's flagship gpt-6.2-astra accepts up to 272k tokens, and every model has its own limit.
Three details that affect the bill the most:
- Output can cost more than input. With OpenAI gpt-6.2-astra, 1M input tokens cost $8 and 1M output tokens $40, five times more. Anthropic Claude Fable 5.2 and Google gemini-4-carbon keep the same 1:5 ratio, while Mistral's small Ministral 3 3B charges a single price per token (list prices as of November 2026).
- Reasoning tokens. Reasoning models “think” in hidden tokens before answering. You don't see them, but they take up context and are billed as output tokens, so a short answer can cost as much as a long one.
- Caching. The provider can cache a repeated request prefix: with OpenAI, cached input is up to 90% cheaper, and it works automatically. That's why it pays to put the unchanging part of the request at the beginning.