Free LLM API cost calculator

AI Cost Calculator

Calculate AI and LLM API costs based on your token usage. Compare OpenAI, Anthropic, and Google Gemini models and estimate your daily, monthly, and yearly API expenses.

AI API Calculators

Calculate API Costs by Provider

Explore AI API pricing and calculate estimated costs for popular AI providers.

AI Cost Calculator

Usage

Usage presets

Estimated cost

$18.00/ day
$540.00/ month
$6,570.00/ year
Input cost / request$0.008
Output cost / request$0.01
Total / request$0.018

Compare with other models

GPT-5.6 Luna$30.00/ month94% cheaper
Gemini 3.1 Flash-Lite$37.50/ month93% cheaper
Gemini 3.8 Flash$101.25/ month81% cheaper
Gemini 3.7 Flash$101.25/ month81% cheaper
Claude Haiku 4.5$135.00/ month75% cheaper

Compare AI Models

AI API Pricing Comparison

Compare input and output token prices across popular AI models.

ModelProviderInput / 1MOutput / 1MCalculator
GPT-5.6 Sol
OpenAI$4.00$20.00
GPT-5.6 Terra
OpenAI$2.00$12.00
GPT-5.6 Luna
OpenAI$0.20$1.20
Claude Fable 5.1
Anthropic$10.00$50.00
Claude Opus 5
Anthropic$5.00$25.00
Claude Sonnet 5
Anthropic$2.00$10.00
Claude Haiku 4.5
Anthropic$1.00$5.00
Gemini 3.8 Flash
Google$0.75$3.75
Gemini 3.7 Flash
Google$0.75$3.75
Gemini 3.1 Flash-Lite
Google$0.25$1.50

Popular Comparisons

Compare Popular AI Models

Compare AI model pricing and see how different LLMs compare for input and output token costs.

How AI API Costs Are Calculated

AI API costs are mainly determined by the number of input and output tokens your application uses. Our AI Cost Calculator helps you estimate these costs for popular LLM models from OpenAI, Anthropic, and Google Gemini.

Input and Output Tokens

Input tokens are the text sent to an AI model, including your prompts and other context. Output tokens are the text generated by the model in response.

Price Per Million Tokens

AI providers usually publish separate prices for input and output tokens. Prices are commonly displayed per one million tokens.

Daily AI API Cost

Your daily cost depends on the number of requests, the average number of input tokens, and the average number of output tokens used for each request.

Monthly and Yearly Estimates

Once your estimated daily API cost is calculated, you can project your spending for 30 days and 365 days to understand your expected monthly and yearly AI API expenses.

AI Cost Formula

A simple way to estimate AI API cost is to calculate the input token cost and output token cost separately, then add them together.

Cost = (Input Tokens ÷ 1,000,000 × Input Price) + (Output Tokens ÷ 1,000,000 × Output Price)

AI API Cost Calculators

Use AI Bill Calc to estimate API costs for different providers, compare LLM pricing, and plan your monthly AI spending.

Frequently Asked Questions

Common questions about AI API pricing and token costs.

What is an AI Cost Calculator?

An AI Cost Calculator helps estimate the cost of using AI and LLM APIs based on your number of requests and token usage.

How is AI API cost calculated?

AI API cost is calculated using the number of input and output tokens multiplied by the model's price per one million tokens.

Which AI models can I compare?

AI Bill Calc lets you compare pricing for models from OpenAI, Anthropic, and Google Gemini.

Can I estimate monthly and yearly AI costs?

Yes. Enter your daily request volume and token usage to estimate your daily, monthly, and yearly AI API costs.

Is the AI Cost Calculator free?

Yes. AI Bill Calc provides a free calculator for estimating AI API costs.