OpenAI token calculator

Budget GPT prompts before they run.

A private first-pass calculator for GPT input, output, context, and cost planning.

GPT-5.6 Terra1,050,000token context window
$2 input / 1M $0.2 cached / 1M $12 output / 1M
Official · verified 2026-07-31View provider pricing ↗Short-context price; prompts over 272K use a higher long-context tier.

What this page helps you decide

  • Estimate prompt tokens without uploading text.
  • See how output caps change the request budget.
  • Compare GPT routes with the wider model registry.

Prices are planning references, not a billing guarantee. Check the provider’s current pricing before launch.

Estimate a GPT-5.6 Terra request
1,050,000 context
0input tokens · local estimate
$0.0000estimated input cost
$0.0060reserved output cost
$0.0060estimated request total

0.05% of context reserved. Planning estimate based on characters ÷ 4; provider tokenizers and structured requests can differ.

The formula

From prompt to request cost

Estimated request cost equals input tokens multiplied by $2 per million, plus expected output multiplied by $12 per million. Cached input is separate only when the provider publishes a rate.

What changes the result

Count the assembled request

System instructions, conversation history, retrieved documents, tool definitions, files, and response length all matter. Use the visible prompt for drafting, then validate the final payload with OpenAI.

Before you rely on the number

GPT-5.6 Terra calculator questions

Is this GPT-5.6 Terra token count exact?

No. It is a private plain-text planning estimate. OpenAI tokenization, chat formatting, tools, files, and images can change the real count.

Does the prompt leave my browser?

No. The calculator runs locally in your browser. Only the page itself and published registry data are loaded from PromptCostLab.

How should I verify production cost?

Check the linked OpenAI pricing page, then compare the estimate with token usage returned by the real API request.