AI Development

OpenAI vs Anthropic vs Google AI APIs: Pricing and Features Compared

November 18, 2026 · 12 min read

OpenAI vs Anthropic vs Google AI APIs: Pricing and Features Compared

If you are adding AI to a product, the model you pick decides a large part of your running costs. The three biggest providers, OpenAI, Anthropic and Google, each sell several tiers of model through their APIs, with prices that differ by a factor of 80 from the cheapest to the most expensive, plus discounts for caching, batch processing and background jobs that can halve a bill. This guide compares AI API pricing across the three as of November 2026, explains the features that matter beyond price, works through a realistic monthly cost example in code, and shows how to keep your bill under control as usage grows.

How AI API Pricing Works

All three providers charge mainly by the token, a chunk of text of roughly three to four characters in English. You pay separately for:

  • Input tokens: everything you send, including instructions, conversation history, retrieved documents and tool definitions.
  • Output tokens: everything the model writes back. Output costs four to eight times more than input, and "thinking" or reasoning tokens are usually billed as output too.
  • Cached input: repeated prompt prefixes, such as a long system prompt, can be stored and re-read at a steep discount.
  • Extras: web search, code execution, image generation, audio and data-residency options carry their own prices or multipliers.

Prices are quoted per million tokens. A million tokens is roughly 750,000 English words, so a single short chat costs a fraction of a cent, but a busy product with long prompts can spend thousands of dollars a month. Our guide to LLM cost explains how to estimate token counts for different use cases.

OpenAI vs Anthropic vs Google: Price Comparison

The table below groups models into rough tiers. Prices are list prices in US dollars per million tokens for standard requests, as published on each provider's pricing page in November 2026.

TierOpenAIAnthropicGoogle
Top frontierGPT-6.2 Astra: $8 in / $40 outClaude Fable 5.2: $8 / $40No higher tier than Argon
FlagshipGPT-6 Astra (previous generation): $10 / $50Claude Opus 5.5: $4 / $20Gemini 4 Argon: $4 / $20 from 1 December 2026 ($2 / $10 introductory price until 30 November)
WorkhorseGPT-6.2 Sol: $2 / $10; GPT-6.1 Terra: $1 / $5Claude Sonnet 5.5: $2 / $10Gemini 3.7 Flash: $0.75 / $3.75 until 31 December 2026, then $1.50 / $7.50
BudgetGPT-6 Luna: $0.10 / $0.50Claude Haiku 5.5: $0.10 / $0.50 for prompts up to 100,000 tokensGemini 3.5 Flash-Lite: $0.30 / $2.50

Sources: OpenAI API pricing, Anthropic Claude pricing and Google Gemini API pricing, with Google's introductory periods reported at the launches of Gemini 4 Argon and Gemini 3.7 Flash. Prices change several times a year, and introductory or promotional rates expire, so always check the live pages before you commit.

Two patterns stand out. First, the providers now match each other closely at each tier, so price alone rarely decides between them. Second, the gap between tiers is enormous: a budget model can be 80 times cheaper than a frontier model, which is why routing tasks to the right tier matters more than haggling over a few cents.

Discounts That Change the Bill

  • Batch processing: all three offer roughly 50% off for requests that can wait, typically up to 24 hours. Ideal for overnight classification, summarisation and evaluation runs.
  • Prompt caching: re-reading a cached prefix costs a small fraction of the normal input price. Anthropic charges 5% of the base input price for cache hits on Opus 5.5 and Sonnet 5.5, OpenAI's newest Sol model charges $0.10 for cached input against $2 for fresh input, and Google advertises a 95% discount on cached input for Gemini 4 Argon. Writing to the cache usually costs a little more than normal input.
  • Background requests: OpenAI offers 30% to 40% off for eligible requests that can complete within two or eight hours.
  • Free tier: Google is the only one of the three with a meaningful free API tier, with low rate limits, and data sent on the free tier may be used to improve Google's products. It is good for prototypes, not production.

Premiums work the other way. OpenAI's Fast mode, renamed from priority processing in July 2026, costs twice the standard rate, and Anthropic's fast mode for Opus 5.5 is also double. Regional or data-residency processing adds about 10% at OpenAI and Anthropic, and OpenAI charges more for very long prompts, above 272,000 tokens on its recent models.

Features That Matter Beyond Price

FeatureOpenAIAnthropicGoogle
Context windowUp to about 1 million tokens on the top models; long prompts cost more1 million tokens at standard rates on current models (Haiku 5.5 prices above 100,000 tokens differently)1 million tokens on Gemini 4 Argon and Flash models
Tool use and agentsFunction calling, Responses API, built-in toolsTool use, computer use, Claude Agent SDK, managed agentsFunction calling, grounding with Google Search
Web searchBuilt-in tool, priced separatelyBuilt-in tool at $10 per 1,000 searchesGrounding with Google Search, priced separately
Images and mediaGPT Image models, realtime voice, transcriptionImage and PDF understanding; no image generationNano Banana image models, Veo and Omni video, audio
Cloud availabilityOpenAI platform and Microsoft AzureClaude platform, Amazon Bedrock, Google Vertex AI, Microsoft FoundryGemini API and Vertex AI
Fine-tuningSelf-serve fine-tuning being wound downNot a standard self-serve option; check enterprise offersTuning options on Vertex AI for some models

For many teams the deciding factors are cloud alignment and compliance: if your company already runs on AWS, Claude through Amazon Bedrock may be simplest to approve; Azure customers often start with OpenAI; Google Cloud customers with Gemini. Quality differs by task, so run your own tests, as described in our comparison of ChatGPT, Claude and Gemini.

A Worked Example: What Does a Support Assistant Cost?

Imagine a customer support assistant handling 20,000 conversations a month. Each request sends about 3,000 tokens (instructions, policies, retrieved help articles and the conversation) and receives 400 tokens back. Two-thirds of each prompt is identical every time, so it can be cached. This Node.js script calculates the monthly bill at list prices:

// api-cost.mjs - compare the monthly cost of one workload across AI APIs (list prices, November 2026).
// Prices are USD per 1M tokens. Check each provider's pricing page before you budget.
const MODELS = [
  { name: "OpenAI GPT-6.2 Astra", input: 8, output: 40 },
  { name: "Anthropic Claude Fable 5.2", input: 8, output: 40 },
  { name: "Anthropic Claude Opus 5.5", input: 4, output: 20 },
  { name: "Google Gemini 4 Argon", input: 4, output: 20 },
  { name: "OpenAI GPT-6.2 Sol", input: 2, output: 10 },
  { name: "Anthropic Claude Sonnet 5.5", input: 2, output: 10, cachedInput: 0.1 },
  { name: "Google Gemini 3.7 Flash", input: 1.5, output: 7.5 },
  { name: "OpenAI GPT-6.1 Terra", input: 1, output: 5 },
  { name: "Google Gemini 3.5 Flash-Lite", input: 0.3, output: 2.5 },
  { name: "OpenAI GPT-6 Luna", input: 0.1, output: 0.5 },
  { name: "Anthropic Claude Haiku 5.5", input: 0.1, output: 0.5 },
];

// A support assistant: 20,000 conversations a month, 3,000 tokens in and 400 out each,
// with two-thirds of each prompt (instructions and policies) identical every time.
const workload = { requests: 20_000, inputTokens: 3_000, outputTokens: 400, cachedShare: 2 / 3 };

export function monthlyCost(m, w, { batch = false, caching = false } = {}) {
  const inTok = (w.requests * w.inputTokens) / 1e6; // millions of input tokens
  const outTok = (w.requests * w.outputTokens) / 1e6; // millions of output tokens
  let inputCost = inTok * m.input;
  if (caching && m.cachedInput !== undefined) {
    inputCost = inTok * (1 - w.cachedShare) * m.input + inTok * w.cachedShare * m.cachedInput;
  }
  const total = inputCost + outTok * m.output;
  return batch ? total / 2 : total; // Batch APIs charge about half price
}

for (const m of MODELS) console.log(`${m.name}: $${monthlyCost(m, workload).toFixed(2)}`);
const sonnet = MODELS.find((m) => m.name.endsWith("Sonnet 5.5"));
console.log(`Sonnet 5.5 with Batch API: $${monthlyCost(sonnet, workload, { batch: true }).toFixed(2)}`);
console.log(`Sonnet 5.5 with prompt caching: $${monthlyCost(sonnet, workload, { caching: true }).toFixed(2)}`);

The results span two orders of magnitude for the same workload: $800 a month on the top frontier models, $400 on the flagships, $200 on the workhorse Sol and Sonnet models, $150 on Gemini 3.7 Flash at its standard price, $100 on GPT-6.1 Terra, $38 on Gemini 3.5 Flash-Lite and just $10 on GPT-6 Luna or Claude Haiku 5.5. Sending the same work through the Batch API halves Sonnet's bill to $100, and caching the repeated two-thirds of each prompt brings it to $124 while keeping real-time answers. Cache-write charges, retries and tool calls add a little on top, so treat these as estimates.

How to Choose an AI API Provider

  1. Test quality on your own tasks. Build a set of 50 to 100 real examples and score each model, following our guide to LLM evaluation. The cheapest model that passes is usually the right default.
  2. Route by difficulty. Send simple tasks such as classification and extraction to a budget model and escalate only hard cases. Our guide to small language models explains when smaller models win.
  3. Check rate limits and reliability. New accounts start with low limits that rise with spend. Plan a fallback provider for outages.
  4. Review data terms. Paid API traffic is generally not used for training by any of the three, but check retention, zero-data-retention options and where data is processed.
  5. Avoid lock-in. Wrap model calls behind your own interface so you can switch providers or models as prices change. Frameworks covered in our guide to AI agent frameworks help with this.
  6. Consider open models. At very high volumes, or when data must stay on your servers, self-hosting may be cheaper; see the best open-source LLMs and our analysis of open-source vs closed AI models.

Ten Ways to Cut Your AI API Bill

  • Use the smallest model that meets your quality bar, and route only hard cases to larger models.
  • Cache long, stable prompt prefixes and put changing content at the end of the prompt.
  • Move non-urgent work to batch or background processing.
  • Trim conversation history and retrieved documents; send only what the model needs, a discipline explained in our guide to context engineering.
  • Set maximum output lengths and lower reasoning effort for simple tasks.
  • Ask for structured output, such as JSON, rather than long prose when a program reads the answer.
  • Deduplicate identical requests with your own response cache.
  • Limit agent loops with step and spending caps per task.
  • Set budgets and alerts per feature and per customer, not just per account.
  • Re-run your evaluations each quarter, because a newer, cheaper model may now be good enough.

Image, Video and Speech Pricing

Text is only part of the picture. Image models are billed per image or per token, typically from a few cents to around 20 cents per image depending on size and quality; our comparison of the best AI image generators covers the options. Video generation is billed per second of output and adds up quickly once you include retries, as our guide to the best AI video generators shows. Speech-to-text is usually priced per minute, with OpenAI's live transcription model listed at under two cents a minute, which is why building your own pipeline can undercut per-seat subscriptions for the tools in our comparison of the best AI note takers at high volume.

Frequently Asked Questions

Which AI API is the cheapest?

At list prices in November 2026, OpenAI's GPT-6 Luna and Anthropic's Claude Haiku 5.5 are the cheapest of the three providers' current models at $0.10 per million input tokens and $0.50 per million output tokens. Google offers a free tier for testing.

Is the OpenAI API cheaper than Claude?

At most tiers they are now priced the same: GPT-6.2 Sol and Claude Sonnet 5.5 both cost $2 and $10 per million tokens, and GPT-6.2 Astra and Claude Fable 5.2 both cost $8 and $40. Real costs depend on how many tokens each model uses for your task.

How much does it cost to run a chatbot on an AI API?

A small business chatbot with a few thousand conversations a month typically costs between a few dollars and a few hundred dollars a month, depending on the model, prompt length and caching. Use the calculation in this guide with your own numbers.

Do AI API providers use my data for training?

OpenAI, Anthropic and Google generally do not train on paid API traffic by default, but terms differ for free tiers and some features. Read the data usage and retention terms, and ask about zero-data-retention options for sensitive data.

What is prompt caching and how much does it save?

Prompt caching stores a repeated part of your prompt so the provider can re-read it cheaply. Cached reads cost 90% to 95% less than fresh input on many current models, which can cut input costs dramatically for apps with long, fixed instructions.

Will AI API prices keep falling?

The cost of a given level of capability has fallen sharply each year, but each new frontier model often launches at a premium. Expect cheaper workhorse models over time, and plan to re-test and switch models regularly.

Get Your AI Costs Under Control

We help companies choose models, design prompts and caching, and build routing and monitoring so AI features stay fast and affordable at scale. Contact our team for an AI cost review.

Want this built for you?

Our team offers Website Deploy On Vercel — get a free quote.

View Services