LLM API monthly cost calculator

Estimate monthly text API spending from requests, average tokens, input/output rates and additional calls.

Default rates are illustrative examples, not provider quotes. Enter current rates from your exact model’s official pricing page. All calculations run locally in your browser.

Example: $20 input + $20 output = $40 per month. Changes update the estimate automatically.

Formula and scope

Monthly cost = base calls × (1 + additional calls percent / 100) × (average input tokens × input rate + average output tokens × output rate) / 1,000,000. Additional calls are assumed to have the same average token counts.

This simplified estimate excludes free allowances, cache writes/storage, tools/search, image/audio, subscriptions, taxes and exchange rates. Calculate cache hits and misses separately, then add them. Use actual billed output tokens.

Read the full API cost guide · DeepSeek vs Gemini

Find model services and official rate sources →