How token pricing works
Every hosted LLM bills per token, split between input (your prompt + conversation history + tool definitions) and output (what the model generates). Prices are quoted per million tokens, so the math is (tokens ÷ 1,000,000) × per-million-rate. Modern context windows mean the entire conversation is re-priced on every turn — a 50-message chat re-bills the full transcript each round, which is why long sessions get expensive fast.