AI API Cost Calculator

Estimate monthly AI API spend based on requests per day, average token counts, and your chosen model from OpenAI, Anthropic, or Google.

Frequently Asked Questions

How accurate are the preset prices?

Prices shown reflect published rates as of 2025. AI model pricing changes frequently, sometimes with short notice. Always verify current rates on the provider's official pricing page before committing a budget.

What counts as an input token?

Every token sent to the model counts: the system prompt, the user message, any retrieved context, and the full conversation history for multi-turn chats. Only the model's response counts as output tokens.

Does streaming affect cost?

No. Streaming returns tokens incrementally but you pay for the same total count whether the response is streamed or returned all at once.

How many tokens is my text?

A rough rule for English: tokens ≈ words × 1.3, or characters ÷ 4. Code and non-English languages tokenize differently. Use the provider's tokenizer playground for precise counts.

Are caching and batch discounts included?

No - this calculator uses standard on-demand rates. If you use prompt caching or batch APIs, your actual bill will be lower. Treat this estimate as an upper bound.

Important Disclaimer: Estimates for informational purposes only.

This calculator provides estimates for informational purposes only. Results are based on assumptions and may not reflect actual outcomes. Consult qualified professionals in relevant fields before making important decisions based on these results.