From a model price to a project budget
A price per million tokens does not tell you the cost of a finished task. You also need to know how much context you send, how long the response is, and how many requests the task takes. This calculator separates input from output so that a small-looking rate difference does not hide a large output bill.
Use the model directory to find candidates and follow each provider’s current pricing documentation. Enter prices in US dollars per one million tokens. A rate quoted per thousand tokens must be multiplied by 1,000 first. Check the model identifier and pricing tier rather than assuming every version has the same rate.
How the estimate works
- Billing-period requests = requests per day × days in the period.
- Input tokens = billing-period requests × average input tokens per request.
- Output tokens = billing-period requests × average output tokens per request.
- Token cost = (input tokens ÷ 1,000,000 × input rate) + (output tokens ÷ 1,000,000 × output rate).
For example, 100 daily requests over 30 days, each with 1,000 input and 500 output tokens, consume 3 million input tokens and 1.5 million output tokens. At hypothetical rates of $1 and $4 per million respectively, token charges would be $3 + $6 = $9. These are arithmetic examples, not prices for a real model.
Make the workload representative
Count all the context
Your input can include system instructions, conversation history, retrieved documents, schemas and tool results. Measure an actual request where possible. A short question sent with a long history is not a short input. If your API reports token usage, use that usage to estimate a typical input and output rather than treating character counts as exact token counts.
Count retries and multi-step calls
An agent workflow may make several model calls to complete one user task. Include evaluation runs, failed attempts, retries and follow-up calls in requests per day. Run separate estimates for materially different workloads, such as short classification requests and long report generation, then add the totals.
Use a range before committing
Calculate a normal day and a high-usage day. Increase output length and request volume separately to see which matters most. Leave room in your budget for variations in demand and for model calls that do not produce a useful answer. This estimate does not predict response quality or latency; evaluate those with tasks that resemble your application.
What this tool leaves out
Provider invoices can include cached-input rates, batch or volume discounts, image and audio pricing, search/tool fees, storage, fine-tuning, regional differences and taxes. Use this tool only for the standard input/output token portion. It uses no vendor price feed, sends no calculator requests to a provider and does not require an account. Values stay in this page’s local component state and reset when the page is reloaded.
For a broader decision, compare model specifications and read our editorial and sourcing policy. A low token cost alone does not establish that a model is the right fit for your task.