aitokencost.appWhat one AI call costs, part by part

Input vs output tokens: what each one is and what it costs

Input tokens are everything you send a model: the prompt, system message, files, tool results and earlier chat turns. Output tokens are everything it writes back, including reasoning tokens you never see. Output costs more at all five makers read on December 1, 2026: 5 times input on GPT-6 and Claude 5 models, 3 times on grok-4.7, 8.3 times on Gemini 3.5 Flash-Lite.

What counts as an input token?

An input token is any token you send in a request, and you pay the input rate for all of it, not only the question you typed. On GPT-6.2 Sol that rate is $2.00 per million tokens, or $0.10 when the tokens are read from a cache (December 1, 2026).

  • Instructions: the system or developer message, sent again with every call.
  • The prompt and anything pasted into it.
  • Files and images, which are tokenized too. OpenAI notes that message structure, tools, schemas, images and files all add to the input count.
  • Earlier turns of a conversation that you send back. Anthropic bills thinking blocks from earlier turns that stay in context as input.

Chat Completions calls these prompt tokens; the Responses API calls them input tokens.

What counts as an output token?

An output token is any token the model generates, whether you see it or not. On GPT-6.2 Sol that is $10.00 per million (December 1, 2026).

  • The visible answer, including any JSON or code.
  • Reasoning tokens the model spends before it answers (below).
  • Extra completions: with n above 1 in Chat Completions, every generated choice is billed.

Chat Completions calls these completion tokens. A cap like max_output_tokens limits all of them together.

How much more does output cost at each maker?

Output costs 2 to 8.3 times input on the models below, read from each maker's pricing page on December 1, 2026. Every GPT-6 and Claude 5 model on their price lists sits at exactly 5 times.

ModelInput per 1MOutput per 1MOutput ÷ input
GPT-6.2 Astra$8.00$40.005x
GPT-6 Luna$0.10$0.505x
Claude Fable 5.2$8.00$40.005x
Claude Haiku 5.5 (up to 100K)$0.10$0.505x
Gemini 4 Carbon$4.00$20.005x
Gemini 3.5 Flash-Lite$0.30$2.508.3x
grok-4.7$2.00$6.003x
grok-4.3$1.25$2.502x
DeepSeek V4.1 Flash (peak)$0.30$1.204x
DeepSeek V4 Pro (peak)$1.32$3.963x

None of these pricing pages says why output costs more; they only show that it does. All 16 models, with cached rates, are on the AI token cost table.

Are reasoning tokens input or output?

Reasoning tokens are output tokens: OpenAI says they "are billed as output tokens", Anthropic bills thinking "as output tokens", and Google's Gemini price row reads "Output price (including thinking tokens)" (December 1, 2026). OpenRouter treats them as output tokens and charges accordingly.

  • You pay for all of it. Anthropic and Google bill the full thinking, not the summary you see.
  • You can pay for nothing visible. If a response hits max_output_tokens while still reasoning, OpenAI notes you are charged for the input and reasoning tokens with no answer.
  • Later turns cost input. On Anthropic, thinking kept in context is billed again as input on the next turn.

OpenAI says a model may spend "a few hundred to tens of thousands" of reasoning tokens on one request. At GPT-6.2 Sol's $10 per million, 10,000 reasoning tokens cost $0.10.

Which side of the bill is bigger?

The bigger side depends on the shape of the call, so price both before cutting either. Three calls on GPT-6.2 Sol ($2 input, $10 output per million, December 1, 2026):

CallInputOutputBigger side
Answer from a long document: 20,000 in, 400 out$0.04$0.004Input, 91%
Write a long draft: 500 in, 2,000 out$0.001$0.02Output, 95%
Hard reasoning: 2,000 in, 8,000 out with reasoning$0.004$0.08Output, 95%

Input-heavy calls shrink most with caching: the same 20,000 tokens read from cache cost $0.002 instead of $0.04. Output-heavy calls shrink with shorter answers or a lower reasoning effort.

How do I count input and output tokens?

Count input before you send and read both from the response after. OpenAI's input-token counting endpoint (POST /v1/responses/input_tokens) and Anthropic's token counting are free; Gemini has count_tokens. No count predicts output: you read it from the response.

APIInput fieldOutput fieldReasoning inside output
OpenAI Responsesinput_tokensoutput_tokensoutput_tokens_details.reasoning_tokens
Chat Completions format (OpenAI, OpenRouter)prompt_tokenscompletion_tokenscompletion_tokens_details.reasoning_tokens
Anthropic Messagesinput_tokensoutput_tokensoutput_tokens_details.thinking_tokens
Gemini Interactionstotal_input_tokenstotal_output_tokenstotal_thought_tokens

Sending work that can wait? A batch API halves both sides at OpenAI, Anthropic and Google.

How was this page checked?

Every price, field name and billing rule above was read on December 1, 2026 from the pages below; the arithmetic uses those prices. We didn't run these calls. Errors: support@winding.ai.

  1. OpenAI: Understanding and counting tokens
  2. OpenAI: Reasoning models and OpenAI pricing
  3. Anthropic: thinking pricing, token counting and pricing
  4. Gemini pricing and Gemini thinking
  5. xAI pricing, DeepSeek pricing, OpenRouter: reasoning tokens