Inputs
AI Token Cost
Enter the token counts for one request and the pricing for your model in dollars per 1 million tokens.
Result
--
Result explanation
How to read this result
Visualization
104
Estimate AI API token cost from input, cached input, and output token usage plus per-million pricing.
Sponsored
Inputs
Enter the token counts for one request and the pricing for your model in dollars per 1 million tokens.
Result
--
Result explanation
Visualization
Guide
Start here if you need to estimate AI API token cost from input, cached input, and output token usage plus per-million pricing and compare the outcome quickly.
It is especially helpful when the same question comes up often and you want one clean place to test different inputs.
Enter Requests, Input tokens, Cached input tokens, Output tokens, Input price, Cached input price, and Output price. Those values let the page estimate AI API token cost from input, cached input, and output token usage plus per-million pricing.
This calculator prices each token bucket separately because many AI models bill input, cached input, and output tokens at different rates.
It first calculates the cost of one request from the entered token counts and per-million token prices, then multiplies that amount by the number of requests.
Per request cost
T values are token counts and R values are prices in dollars per 1 million tokens.
Total cost
Use the requests field to scale one-call pricing into a batch or workload estimate.
The main result shown here is total cost. The calculator also returns per request cost, input cost, output cost, cached input cost, and total tokens so you can review the most useful supporting numbers at the same time.
Use plain numeric values in the units or formats named by each input label.
Differences usually come from rounding, unsupported inputs, or slightly different assumptions in another formula or workflow.
The main result shown here is total cost. The calculator also returns per request cost, input cost, output cost, cached input cost, and total tokens so you can review the most useful supporting numbers at the same time.
Related ideas for this page include unit consistency, throughput, conversions, scaling, and measurement.
Sponsored