LLM pricing calculator
AI Token Cost Calculator
Estimate the cost of an AI model request or workload using separate input and output token prices.
Estimated cost
$0.90Custom AI modelTransparent token pricing
How to calculate AI token costs
Enter token usage
Add the input tokens sent to the model and output tokens generated in the response.
Add model prices
Enter the provider’s current input and output prices per million tokens.
Review the breakdown
Compare input cost, output cost, total tokens, and the combined estimate.
Know what you are pricing
What affects AI model cost
Input tokens
Prompts, instructions, context, retrieved documents, and conversation history usually count as input.
Output tokens
Generated responses are billed separately and often use a different price.
Provider-specific extras
Cached input, batch discounts, tools, images, audio, storage, and fine-tuning may use separate rates.
How is AI token cost calculated?
Input tokens and output tokens are priced separately per million tokens, then the two costs are added.
Why are input and output prices different?
Providers commonly charge different rates for processing context and generating new tokens.
Does this calculator use live model prices?
No. Enter the current rates from your provider so the estimate stays accurate as pricing changes.
What counts as an input token?
System instructions, prompts, conversation history, and supplied context can all count toward input usage.
