LLM API Pricing Guide 2025: GPT-4o, Claude, Gemini Compared

⚠️ Prices updated as of April 2025. LLM pricing changes frequently — verify at provider websites before billing clients.
Advertisement

As AI features become standard in software products, understanding LLM API costs is essential for developers and freelancers. Here's a comprehensive breakdown of all major models as of April 2025.

Current LLM API Pricing Table

ModelProviderInput (per 1K tok)Output (per 1K tok)ContextBest For
GPT-4oOpenAI$0.005$0.015128KBest all-round performance
GPT-4o miniOpenAI$0.00015$0.0006128KBudget OpenAI; production apps
o3-miniOpenAI$0.0011$0.0044200KCoding, reasoning tasks
Claude 3.5 SonnetAnthropic$0.003$0.015200KCoding, writing, complex reasoning
Claude 3 HaikuAnthropic$0.00025$0.00125200KFast, cheap Claude for classification
Gemini 1.5 ProGoogle$0.00125$0.0052M ctx!Very long documents/RAG
Gemini 1.5 FlashGoogle$0.000075$0.00031M ctxCheapest per token at scale
Gemini 2.0 FlashGoogle$0.0001$0.00041M ctxFast, affordable, latest Google
Mistral LargeMistral$0.003$0.009128KEuropean data regulatory needs

Understanding Tokens

  • ~1 token = 4 characters = 0.75 words (English)
  • 750 words ≈ 1,000 tokens
  • A typical ChatGPT conversation (1K input + 500 output) costs ~$0.007 with GPT-4o
  • Output tokens typically cost 2–3× more than input tokens (generating is harder)

Which Model is Best for Different Use Cases?

Use CaseRecommended ModelWhy
Customer support chatbot (high volume)Gemini 1.5 Flash or GPT-4o miniCheapest per token, fast latency
Code generation toolClaude 3.5 Sonnet or o3-miniBest coding performance
Long document analysis (>50K words)Gemini 1.5 Pro (2M ctx)Only model with 2M context window
Content generation (marketing, SEO)GPT-4o or Claude 3.5 SonnetBest writing quality
Classification/labelling at scaleClaude 3 Haiku or GPT-4o miniFast, cheap, sufficient quality
Reasoning/math heavy taskso3-mini or GPT-4oBest reasoning benchmarks

GST on LLM APIs for Indian Businesses

OpenAI, Anthropic, and Google are foreign service providers. Indian GST-registered businesses must pay 18% IGST under Reverse Charge Mechanism (RCM) on these API charges:

  • You pay the dollar invoice amount (in USD)
  • Self-assess 18% IGST and pay it when filing GSTR-3B
  • Input Tax Credit can be claimed on this RCM GST (offsets your output GST)
  • Non-GST-registered individuals: RCM does not apply, no GST compliance needed
🧮 Calculate your monthly LLM API costs in INROpen LLM Cost Calculator →
Advertisement — 300×250