#QuoteOfDay 💡 ! Content is Not the King, It's the Kingdom  content is not king it is kingdom techyxpert

Artificial IntelligenceTechnology

AI API Cost Calculator 2026: Compare OpenAI, Claude & Gemini Prices

AI API Cost Calculator – OpenAI vs Claude vs Gemini (TechyXpert)

Last updated: November 17, 2026 · By Visal Vadayar

Quick answer: For 10,000 requests a month with 1,500 input and 400 output tokens each (50% cached), the cheapest models cost about $2–3 a month (GPT-5 nano, Gemini 2.5 Flash-Lite, GPT-6 Luna, Claude Haiku 5.5), mid-tier models like GPT-6.1 Sol and Claude Sonnet 5.5 cost about $56, and flagships like GPT-6 Astra cost about $283. Use the calculator below with your own numbers.

AI API Cost Calculator

Compare monthly costs for OpenAI, Claude and Gemini models. Prices last checked November 17, 2026.

ModelInput / 1MOutput / 1MPer requestPer monthRelative

Rates are standard list prices in USD per 1 million tokens for short prompts. Long prompts cost more (OpenAI GPT-6/5.x above ~272K input tokens, Gemini Pro above 200K, Claude Haiku 5.5 above 100K). Upcoming changes: Gemini 4 Argon rises to $4/$20 on December 1, 2026; Gemini 3.8 Flash rises to $1.50/$7.50 on January 1, 2027. Always confirm on the provider’s pricing page before budgeting.

How to use the AI API cost calculator

  1. Requests per month: how many times your app calls the model. A support chatbot handling 500 conversations a day with 4 messages each is about 60,000 requests a month.
  2. Input tokens per request: everything you send: system prompt, retrieved documents, chat history and the user’s message. This is usually the biggest number.
  3. Output tokens per request: the model’s answer, including any hidden reasoning tokens on “thinking” models.
  4. Cached input share: the part of each prompt that repeats exactly (system prompt, policies, product docs). Providers bill cached tokens at a fraction of the normal price.
  5. Processing: choose Batch if results can wait minutes or hours. OpenAI, Anthropic and Google all discount batch jobs by about half.

The table sorts every model from cheapest to most expensive for your workload and highlights the lowest cost. Not sure how many tokens you use? Read what tokens are and how AI pricing works.

AI API prices per million tokens (November 2026)

ModelProviderInput / 1MOutput / 1M
GPT-6 AstraOpenAI$10.00$50.00
GPT-6.1 SolOpenAI$2.00$10.00
GPT-6.1 TerraOpenAI$1.00$5.00
GPT-6 LunaOpenAI$0.10$0.50
Claude Fable 5.2Anthropic$8.00$40.00
Claude Opus 5.5Anthropic$4.00$20.00
Claude Sonnet 5.5Anthropic$2.00$10.00
Claude Haiku 5.5 (≤100K prompt)Anthropic$0.10$0.50
Gemini 4 ArgonGoogle$2.00$10.00
Gemini 3.1 ProGoogle$2.00$12.00
Gemini 3.8 FlashGoogle$0.75$3.75
Gemini 3.5 Flash-LiteGoogle$0.30$2.50

For a full side-by-side with caching, batch and long-context rules, see our OpenAI vs Claude vs Gemini API pricing comparison.

Why output tokens matter more than you think

Output tokens cost 4 to 8 times more than input tokens on most models. A chatbot that writes long answers can cost more than one that reads long documents. Two easy wins: ask for concise answers in your system prompt, and set a maximum output length. Reasoning (“thinking”) models also bill their hidden reasoning as output, so a short visible answer can still use thousands of output tokens.

Example monthly costs

Use caseVolumeCheap modelMid-tier model
Website support chatbot60,000 msgs · 2,000 in / 300 out~$21 (Haiku 5.5)~$420 (Sonnet 5.5)
Blog article drafts300 drafts · 3,000 in / 2,500 out~$0.47 (GPT-6 Luna)~$9.30 (GPT-6.1 Sol)
Document Q&A5,000 questions · 30,000 in / 800 out~$16.60 (Flash-Lite 2.5)~$348 (Gemini 3.1 Pro)

These examples assume no caching and standard processing. With caching and batch, real bills are often 40–70% lower. For a full breakdown of a real project, read how much it costs to run an AI chatbot.

Tips to cut your AI API costs

  • Route by difficulty: send easy questions to a small model and only escalate hard ones to a flagship.
  • Cache your system prompt: put fixed instructions and documents at the start of the prompt so they qualify as cached input.
  • Trim history: summarize old conversation turns instead of resending everything.
  • Batch background work: classification, tagging and summaries rarely need real-time answers.
  • Watch long-context thresholds: OpenAI GPT-6/5.x prices jump above about 272K input tokens and Gemini Pro above 200K.

If you’re building on Google’s models, our overview of Gemini as a multimodal AI explains what each Gemini tier is good at.

Frequently asked questions

How much does the OpenAI API cost per million tokens?

As of November 2026, GPT-6.1 Sol costs $2 per million input tokens and $10 per million output tokens, GPT-6.1 Terra costs $1 and $5, GPT-6 Luna costs $0.10 and $0.50, and the flagship GPT-6 Astra costs $10 and $50. Prompts above roughly 272K input tokens are billed at higher long-context rates.

How much does the Claude API cost?

Claude Opus 5.5 costs $4 per million input tokens and $20 per million output tokens, Sonnet 5.5 costs $2 and $10, Haiku 5.5 costs $0.10 and $0.50 for prompts up to 100K tokens, and Fable 5.2 costs $8 and $40 (November 2026).

What is the cheapest AI API in 2026?

For simple, high-volume tasks the cheapest options are GPT-5 nano ($0.05/$0.40), Gemini 2.5 Flash-Lite ($0.10/$0.40), GPT-6 Luna and Claude Haiku 5.5 (both $0.10/$0.50) per million input/output tokens. The right choice depends on output quality for your task, so test two or three models before committing.

How many words is 1 million tokens?

For English text, one token is roughly 0.75 words, so 1 million tokens is about 750,000 words. Code, non-English languages and numbers usually use more tokens per word.

How can I reduce my AI API bill?

Use the smallest model that passes your quality tests, cache repeated prompt prefixes (cached input is up to 90–95% cheaper), send non-urgent jobs through the Batch API (about 50% off), trim chat history and keep output short with clear instructions.

Are these prices final?

They are list prices checked on November 17, 2026 for standard, short-context requests. Providers change prices often, and Gemini 4 Argon and Gemini 3.8 Flash already have announced increases, so confirm on the provider’s pricing page before budgeting.

About author

Visal Vadayar is a digital marketing strategist and serial entrepreneur from India with a decade of building high-growth, profitable online businesses. Founder of MyMidlist.com—a verified B2B directory spanning MENA—and TechyXpert.com. Expert in SEO, content strategy, and SaaS growth.
Related posts
Artificial IntelligenceTechnology

OpenAI vs Claude vs Gemini API Pricing (November 2026): Full Comparison

Technology

Name Compatibility Calculator: Numerology Name Match for Love & Marriage

Technology

Love Calculator: Test Your Love Compatibility by Name (Free & Private)

Technology

How Much Data Does Streaming Use? Netflix, YouTube, Disney+ & More (2026)

Sign up for our Newsletter and
stay informed

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.