LLM API Cost Calculator — GPT-4, Claude, Gemini

Calculate LLM API monthly cost. Enter your input/output tokens, requests per day, and pick a model — get instant cost projection across OpenAI, Anthropic, and Google models.

Per request$0
Per day$0
Per month$0
Per year$0

Price Table (May 2026)

Price = USD / 1M tokens. Input is typically 3-5× cheaper than output — optimize input first (trim system prompts, prune context).

Cost-Saving Tricks

  • 🎯 Model routing: GPT-4o-mini judges difficulty, only hard cases go to GPT-4o
  • 📦 Prompt caching (both Anthropic & OpenAI): same system prompt → save 50%+
  • ⚡ Cut unused system prompt verbosity (use dibi8 Token Counter to verify)
  • 🪄 RAG chunk optimization: embeddings are 100× cheaper than LLM calls