By CalculatorInn Team · Updated: 2026-03-22 · Free & accurate · Instant results
Estimate the cost of AI API calls based on input and output token counts.
Interactive AI Token Cost Calculator
JavaScript is required for the interactive calculator. Enable JavaScript to use this tool.
Cost = (Input Tokens × Input Price + Output Tokens × Output Price) / 1,000,000 × Requests
AI APIs typically charge per million tokens for both input and output.
A token is roughly 4 characters or ¾ of a word in English.
Output generation requires more compute than processing input.
Fast, accurate calculators for finance, work, tech, and everyday math. Clear formulas and instant answers.
Browse 600+ free online calculators for finance, math, health, tech, business, education, salary, time, and unit conversions. Instant, accurate results with formulas and worked examples.