Inputs
AI Token Cost
Enter the token counts for one request and the pricing for your model in dollars per 1 million tokens.
Result
--
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
--
How It Works
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.
Sponsored