AI API Cost Calculator
Estimate monthly spend across OpenAI, Anthropic, and Gemini — tokens or credits
Prices are approximate list rates — verify with your provider.
Rates are public list prices in USD per 1M tokens and may change; caching, batch APIs, and volume tiers often cost less.
1 Provider & model
OpenAI, Anthropic, Google, or Custom
2 Billing mode
Tokens = classic $/1M pricing. Credits = estimate runway from a prepaid USD balance.
How much prepaid spend you have left
Face value of a credit pack you are buying
Use 1 for simple $ balance ÷ cost. If 1 credit ≠ $1, set credits per $1 of API cost (e.g. 100 if 100 credits = $1).
3 Usage
Pick how you want to enter volume — either totals or requests × avg tokens.
Used to derive monthly token totals (× 30 days)
Used for per-request cost, per 1k requests, and credits runway
Used for per-request cost, per 1k requests, and credits runway
Total prompt / context tokens billed in a month
Total completion tokens billed in a month
4 Results
5 Compare models
Choose up to 3 models via dropdowns (same usage assumptions as above).