๐Ÿงฎ Free tool

AI API Cost Calculator

How much does the Claude, GPT or Gemini API cost? Estimate your monthly spend in seconds based on your real usage.

$0.00
estimated monthly cost ยท โ€”

Reference prices per million tokens (2026)

ModelInput (per 1M tokens)Output (per 1M tokens)Best for
Claude Haiku~$1~$5Real-time chat, classification, high volume
Claude Sonnet~$3~$15Coding, agents, daily professional use
Claude Opus~$15~$75Deep reasoning, critical tasks
GPT (standard)~$2.5~$10General purpose, multimodal
Gemini (standard)~$1.25~$10Huge contexts, Google ecosystem

โš ๏ธ Reference prices in USD, subject to change: labs update them frequently (usually downward). Always verify on the official pages of Anthropic, OpenAI and Google before budgeting a project. Prompt caching and batch discounts can cut the bill by up to 90%.

3 tricks to pay less for the API

  1. Default to the small model. 80% of tasks don't need the big model: route to Haiku and escalate to Sonnet or Opus only when needed.
  2. Enable prompt caching. If you repeat the same context (instructions, documents), caching cuts those tokens' cost by up to 10x.
  3. Batch what can wait. Batch APIs offer ~50% discounts for anything that doesn't need an immediate response.

Not using the API yet? Start free with Claude's consumer plans and make the jump when volume justifies it.