Coffee
← Blog AI Cost Management

Gemini vs Claude API Pricing: Which Is Cheaper Per Task?

By FavTray · · Updated

Written by the team behind FavTray, a Mac developer dashboard for the menu bar. We check every app we cover against its own site, docs or a hands-on test, and each post says which.

Short answer: On Gemini vs Claude API pricing, Gemini is cheaper than Claude mid-range and almost tied at the bottom. As of November 2026, Gemini 2.5 Flash-Lite costs $0.10/$0.40 per million input/output tokens and Claude Haiku 5.5 costs $0.10/$0.50. Mid-tier, Gemini 3.8 Flash ($0.75/$3.75) undercuts Claude Sonnet 5.5 ($2/$10). From December 1, Gemini 4 Carbon matches Claude Opus 5.5 ($4/$20).

TL;DR

  • Cheapest tokens: Gemini 2.5 Flash-Lite and Claude Haiku 5.5 both charge $0.10 per million input tokens; Gemini is $0.10 cheaper on output.
  • Mid-tier: Gemini 3.8 Flash and Gemini 4 Hydrogen cost 25% to 63% less per call than Claude Sonnet 5.5.
  • Top tier: Gemini 4 Carbon is half the price of Claude Opus 5.5 until November 30, 2026, then the same.
  • Long prompts: Claude Sonnet 5.5 is about half the price of Gemini 3.1 Pro Preview above 200K tokens.
  • Free tier: Gemini only. Both give 50% off batch jobs.

Every price below comes from Google’s Gemini API pricing page and Anthropic’s Claude pricing page, checked on November 14, 2026. Both vendors have scheduled price changes in the next two months, so check again before you commit a budget. For one provider in depth, see our dedicated guides to Claude API pricing and Gemini API pricing.

What is Gemini vs Claude API pricing, model by model?

Gemini is cheaper at most tiers in November 2026, but Claude Haiku 5.5 has closed the budget gap and Gemini’s top models get a price rise on December 1. The table pairs each Gemini model with the Claude model it competes with. Prices are US dollars per million tokens, standard (non-batch) rates.

TierModelInput ($/1M)Output ($/1M)Cached input read ($/1M)Long-prompt surchargeFree tier
BudgetGemini 2.5 Flash-Lite$0.10$0.40$0.01NoneYes
BudgetClaude Haiku 5.5$0.10$0.50$0.01$0.50 / $2.50 above 100KNo
BudgetGemini 3.1 Flash-Lite$0.25$1.50$0.025NoneYes
BudgetGemini 3.5 Flash-Lite$0.30$2.50$0.03NoneYes
MidGemini 3.8 Flash$0.75*$3.75*$0.075*NoneYes
MidClaude Haiku 4.5$1$5$0.10NoneNo
MidGemini 4 Hydrogen$1.50$7.50$0.075NoneYes
MidClaude Sonnet 5.5$2$10$0.10NoneNo
UpperGemini 3.1 Pro Preview$2$12$0.20$4 / $18 above 200KNo
UpperGemini 4 Argon$2**$10**$0.10**NoneNo
TopGemini 4 Carbon$2**$10**$0.10**NoneNo
TopClaude Opus 5.5$4$20$0.20NoneNo
TopClaude Fable 5.2$8$40$0.20NoneNo

*Gemini 3.8 Flash is on promotional pricing through December 31, 2026. From January 1, 2027 it doubles to $1.50 input and $7.50 output, the same as Gemini 4 Hydrogen.

**Gemini 4 Carbon and Gemini 4 Argon double on December 1, 2026, to $4 input, $20 output and $0.20 cached, exactly Claude Opus 5.5’s list price.

Three things the table doesn’t show:

  • Tokens aren’t the same size. Each vendor splits text differently. Anthropic says Claude 4.7 and later models use a tokenizer that produces about 30% more tokens for the same text than older Claude models. Compare costs on your own prompts, not just the rate card.
  • Older models are being retired. Google’s page says Gemini 2.5 Pro requests route to Gemini 3.8 Flash from December 1, 2026, and Gemini 2.5 Flash routes to Gemini 3.5 Flash-Lite. Claude Sonnet 5 still lists at $2/$10, but Sonnet 5.5 is the same price with cheaper cache reads.
  • Context windows are now equal at the top. Every current Claude model (Fable 5.2, Opus 5.5, Sonnet 5.5, Haiku 5.5) has a 1M-token window, and Google lists 1M tokens for the Gemini 4 models, per Anthropic’s models overview and Google’s model docs.

Is Gemini cheaper than Claude?

Yes for mid-tier work, barely at the budget end, and not at the top from December 2026. The answer depends on which tier you need.

  • Budget (classification, extraction, routing): Gemini 2.5 Flash-Lite and Claude Haiku 5.5 charge the same $0.10 per million input tokens. Gemini is 20% cheaper on output ($0.40 vs $0.50), and Haiku 5.5 jumps to $0.50/$2.50 once a prompt passes 100K tokens.
  • Mid (summaries, chat, everyday coding): Gemini 3.8 Flash costs about a third of Claude Sonnet 5.5 per call until December 31, 2026. Gemini 4 Hydrogen costs a quarter less than Sonnet 5.5 at any time.
  • Top (hard reasoning, agents): Gemini 4 Carbon is half the price of Claude Opus 5.5 until November 30, 2026. From December 1 the list prices match.

Is the Claude API expensive?

Not anymore at the low end: Claude Haiku 5.5 costs $0.10 per million input tokens, the same as Google’s cheapest Gemini model. Claude gets expensive at the top, where Claude Fable 5.2 costs $8 input and $40 output per million tokens, and Opus 5.5 costs $4/$20.

The cheapest Claude API model in November 2026 is Haiku 5.5. The catch is its prompt-length rule: per Anthropic’s pricing page, a request whose prompt is over 100,000 tokens (counting cache reads and writes) pays $0.50/$2.50 for that whole request. Keep prompts under 100K and it is one of the cheapest frontier-lab models you can call.

If your Claude costs come from Claude Code rather than raw API calls, the subscription math is different: see the Claude Code pricing breakdown and whether Claude Max is worth it.

Which is cheaper for long prompts over 200K tokens?

Claude is cheaper than Gemini 3.1 Pro Preview for long prompts, because Claude bills its 1M-token window at a flat rate and Gemini 3.1 Pro Preview doubles its input price above 200K tokens. Gemini 4 models don’t list a long-prompt surcharge either.

Cost of one request with a 300K-token prompt and a 2K-token answer, as of November 2026:

ModelInput costOutput costTotal per request
Claude Haiku 5.5 (over-100K rate)$0.150$0.005$0.16
Claude Sonnet 5.5$0.600$0.020$0.62
Gemini 4 Carbon (to Nov 30)$0.600$0.020$0.62
Gemini 3.1 Pro Preview (over-200K rate)$1.200$0.036$1.24
Gemini 4 Carbon (from Dec 1)$1.200$0.040$1.24
Claude Opus 5.5$1.200$0.040$1.24

For huge codebases or long documents, the per-request bill is dominated by input. Prompt caching changes that picture more than the model choice does (see below).

How do batch and caching discounts compare?

Both vendors take 50% off for batch jobs, and both discount repeated input through caching, but Claude’s cache reads on its newest models are cheaper relative to input.

DiscountGeminiClaude
Batch API50% off input and output (Gemini 4 Carbon batch: $1/$5 now, $2/$10 from Dec 1)50% off input and output on every model
Cache read priceGemini 4: implicit caching only, 5% of input, no storage fee listed. Older Gemini: about 10% of input plus hourly storage ($4.50 per million tokens per hour on 3.1 Pro Preview, $0.50 on 3.8 Flash)5% of input on Opus 5.5 and Sonnet 5.5, 2.5% on Fable 5.2, 10% on other models
Cache write priceNo write fee listed1.25× input for a 5-minute cache, 2× for 1 hour
Do they stack?Google lists cache prices on its batch rates tooYes, Anthropic says batch and caching combine

Older versions of this post said Claude had no batch option. That was wrong: Anthropic’s Batch API gives the same 50% discount as Google’s. For the full playbook, see how to reduce AI API costs.

Which has the better free tier?

Gemini, clearly. Google AI Studio has an ongoing free tier; Anthropic only gives new API users some free credits to test with.

Gemini (Google AI Studio)Claude (Anthropic API)
Ongoing free tierYes: Flash, Flash-Lite and Gemini 4 HydrogenNo
Paid onlyGemini 4 Carbon, Gemini 4 Argon, Gemini 3.1 Pro PreviewEverything after the starter credit
Trial creditNot neededFree credits for new users
CatchGoogle’s page says free-tier prompts are used to improve its products; lower rate limitsYou pay from the first real request

For prototypes, hackathons and personal projects, Gemini’s free tier can take API costs to zero. Once a project needs higher rate limits or must keep customer data out of training, you’re comparing paid tiers anyway.

Which is cheaper for coding: Gemini or Claude?

Per token, Gemini 4 Hydrogen is about 25% cheaper than Claude Sonnet 5.5, and Gemini 3.1 Pro Preview is about 11% more expensive per typical call. Per finished task, it depends on how often each model gets your code right first time.

We don’t run our own benchmark, and model rankings move every few months, so check a current leaderboard such as SWE-bench and, more usefully, run your last 20 real tasks through both. Two points hold regardless of rankings: coding prompts are input-heavy (whole files, long context), so input price and caching decide most of the bill; and a cheaper model that needs a retry costs more than a pricier one that doesn’t. If you use agents rather than raw calls, Claude Code vs Cursor agent and the AI coding assistant cost comparison cover the subscription side.

What does 1,000 API calls cost on Gemini vs Claude?

Between $0.40 and $36 depending on the model. The table assumes 2,000 input and 500 output tokens per call at standard list prices, with no caching or batch discount, as of November 2026.

Task typeModelCost per 1,000 callsvs. all on Sonnet 5.5
Classification, extractionGemini 2.5 Flash-Lite$0.4096% less
Classification, extractionClaude Haiku 5.5$0.4595% less
Summaries, simple chatGemini 3.8 Flash (promo price)$3.3863% less
Everyday coding helpGemini 4 Hydrogen$6.7525% less
Everyday coding helpClaude Sonnet 5.5$9.00Baseline
Same task on Gemini ProGemini 3.1 Pro Preview$10.0011% more
Hard reasoning, agentic workGemini 4 Carbon (from Dec 1)$18.002×
Hard reasoning, agentic workClaude Opus 5.5$18.002×
Longest-horizon agent workClaude Fable 5.2$36.004×

The cheapest setup uses both and routes by difficulty. Sending 60% of calls to Gemini 2.5 Flash-Lite, 25% to Gemini 3.8 Flash and 15% to Claude Sonnet 5.5 works out at about $2.43 per 1,000 calls, 73% less than sending everything to Sonnet 5.5. An all-Claude version (60% Haiku 5.5, 40% Sonnet 5.5) costs about $3.87, 57% less. The trade-off is routing logic to maintain and the occasional quality miss on edge cases.

How do you choose between Gemini and Claude for a new project?

Pick by your main constraint, then move individual endpoints when the bill or the quality tells you to.

Is cost your main constraint? Start on Gemini Flash-Lite or Claude Haiku 5.5 (they’re nearly the same price), and move endpoints up only when quality problems show up.

Is code quality your main constraint? Default to Claude Sonnet 5.5 or Gemini 4 Hydrogen, test both on your own repo, and push high-volume, low-stakes calls to a Flash-Lite or Haiku model.

Are your prompts huge? Above 200K tokens, avoid Gemini 3.1 Pro Preview’s long-context rate; Claude Sonnet 5.5 and Gemini 4 models bill flat. Keep Claude Haiku 5.5 prompts under 100K.

Are you prototyping? Use Gemini’s free tier, then compare paid tiers once the product direction is settled.

Signing an annual budget? Use Gemini 3.8 Flash’s January 2027 price and Gemini 4 Carbon’s December 2026 price, not today’s promo rates.

Building a developer tool? Let users bring their own key and pick a model, so you don’t have to choose for them.

How do you track API costs across Gemini and Claude?

Use each provider’s console: the Claude Console for Anthropic, and Google AI Studio or Cloud Billing for Gemini. Check both weekly while you’re tuning routing, and set spend limits in each.

For a local view on a Mac, FavTray is a macOS menu bar app of developer and productivity tools, free with daily limits on some tools, $4.99 once for Lifetime. We make FavTray, so weigh our take accordingly. Its AI Usage Tracker is free on every plan with no daily limit: it works out Claude Code and Codex spend (today, 7-day and 30-day totals) from the log files already on your Mac, and shows Claude and Codex session and weekly limits in the menu bar. No FavTray server stores your data. It does not read your Google Cloud billing, so for Gemini spend the console is still the source of truth. See how Claude usage limits work and how to track Claude API costs, or compare plans on the pricing page.

For OpenAI and DeepSeek on the same basis, see the full LLM API pricing comparison and Claude vs OpenAI pricing.

The Gemini vs Claude choice now comes down to tier and timing. At the bottom, Gemini Flash-Lite and Claude Haiku 5.5 cost nearly the same. In the middle, Gemini is cheaper per token. At the top, Gemini 4 Carbon and Claude Opus 5.5 share a list price from December 1, 2026. Most teams that build seriously with LLM APIs end up using both.

Try FavTray Free

One free Mac menu bar app: notch island, ports, keep-awake, clipboard, eye rest, and Claude and Codex limits.

Download Free

Frequently Asked Questions

Is the Gemini API cheaper than the Claude API?

At the budget end they are now almost tied: Gemini 2.5 Flash-Lite costs $0.10 input and $0.40 output per million tokens, and Claude Haiku 5.5 costs $0.10 and $0.50 for prompts up to 100K tokens. In the middle Gemini is cheaper: Gemini 3.8 Flash is $0.75/$3.75 against Claude Sonnet 5.5 at $2/$10. Prices from both vendors' pricing pages as of November 2026.

Is Gemini cheaper than Claude for coding?

Per token, often yes, but not by as much as it looks. Gemini 4 Hydrogen costs $1.50/$7.50 per million tokens against Claude Sonnet 5.5 at $2/$10, about 25% less. Gemini 3.1 Pro Preview costs more than Sonnet 5.5 on output. A model that needs a second attempt costs more than one that gets it right first time, so test both on your own repo.

Is Claude more expensive than Gemini for long prompts?

Not on the mid and top tiers. Claude Sonnet 5.5, Opus 5.5 and Fable 5.2 bill the whole 1M-token window at their standard rate. Gemini 3.1 Pro Preview doubles input to $4 per million above 200K tokens. A 300K-token prompt with a 2K-token answer costs about $0.62 on Sonnet 5.5 and about $1.24 on Gemini 3.1 Pro Preview, as of November 2026.

Which API has a free tier, Gemini or Claude?

Gemini. Google AI Studio has a free tier on the Flash and Flash-Lite models and Gemini 4 Hydrogen, with rate limits, and Google may use free-tier prompts to improve its products. Gemini 4 Carbon, Gemini 4 Argon and Gemini 3.1 Pro Preview are paid only. Anthropic gives new API users some free credits to test with, then it is pay as you go.

How does Gemini 4 Carbon compare to Claude Opus 5.5 on price?

Until November 30, 2026, Gemini 4 Carbon costs $2 input and $10 output per million tokens, half of Claude Opus 5.5's $4/$20. Google's pricing page says Carbon's price doubles to $4/$20 on December 1, 2026, which makes the two identical at list price. Neither charges extra for long prompts. Compare them on your own tasks, not on the rate card.

Do Gemini and Claude both have a batch API discount?

Yes. Anthropic's Batch API takes 50% off input and output tokens for asynchronous jobs, and Google's Gemini Batch API does the same. Both also discount cached input: Claude cache reads cost 5% of the input price on Opus 5.5 and Sonnet 5.5, and Gemini 4 models cache implicitly at 5% of input with no storage fee listed. Batch and caching discounts stack on Claude.