Claude API vs Gemini API: which LLM API should you build on?

updated · #1 vs #2 in LLM APIs & models · prices checked

Anthropic Claude API9.0#1 of 10 in llm apissame since nov 21form: held its place every day for 5 days
Google Gemini API9.0#2 of 10 in llm apissame since nov 21form: held its place every day for 5 days

which one should you use?

building a coding agent or anything that leans on tool calls? the Anthropic Claude API. want a free tier to build on, cheap Flash models and images, video and voice from the same key? the Google Gemini API. they're level on our scores, with Claude ahead on our tiebreak; Gemini is the value pick.

#1 vs #2 of 10 LLM APIs, both 9.0/10. same score, Anthropic Claude API ahead on our tiebreak.

#1 of 10 in LLM APIs

Anthropic Claude API

numptr says9.0/10

top dog for coding and agents. Haiku 5.5 is $0.10 / $0.50 per M tokens.

best for
coding agents, tool use
why 9.0
strong range from $0.10 to Opus. tiny free credits.

full Anthropic Claude API review

#2 of 10 in LLM APIs

Google Gemini API

numptr says9.0/10

Google's frontier models for pocket money, and a free tier with a proper model on it. the Carbon and Argon intro price ends with November, mind.

best for
long-context and agentic tasks on a budget
why 9.0
Gemini 4 Neon scores 61 on Artificial Analysis's intelligence index, third of all the models, at $3 / $15 per M tokens, and Gemini 4 Hydrogen (54) is on the free tier. Carbon and Argon double to $4 / $20 on dec 1.

full Google Gemini API review

who wins for which job

coding agents and tool use

Anthropic Claude API

best for: coding agents, tool use.

long context on a budget

Google Gemini API

best for: long-context and agentic tasks on a budget.

a free tier to build on

Google Gemini API

Google Gemini API free tier: free tier on Flash models, Gemini 4 Hydrogen and Gemini Decision 1 (Argon, Carbon, Neon and Genie 4 not on the free tier). Anthropic Claude API: small amount of free credits for new API users.

overall, on our scores

Anthropic Claude API, on tiebreak

level on 9.0/10; Anthropic Claude API #1, Google Gemini API #2 on our tiebreak.

the differences, side by side

rank

Anthropic Claude API#1 of 10 in LLM APIs

Google Gemini API#2 of 10 in LLM APIs

numptr score

Anthropic Claude API9.0/10

Google Gemini API9.0/10

best for

Anthropic Claude APIcoding agents, tool use

Google Gemini APIlong-context and agentic tasks on a budget

free tier

Anthropic Claude APIsmall amount of free credits for new API users

Google Gemini APIfree tier on Flash models, Gemini 4 Hydrogen and Gemini Decision 1 (Argon, Carbon, Neon and Genie 4 not on the free tier)

paid plans

Anthropic Claude APISonnet 5.5 $2/$10 per M tokens; Opus 5.5 $4/$20; Haiku 5.5 $0.10/$0.50 (prompts ≤100K, $0.50/$2.50 above); Fable 5.2 $8/$40 (fast mode $16/$80); Mythos 5.2 $8/$40 (limited availability, fast mode $16/$80); Fable 5.1 $10/$50; Mythos 5.1 $10/$50

Google Gemini APIGemini 4 Argon $2/$10 per M tokens through nov 30, 2026, then $4/$20; Gemini 4 Carbon $2/$10 through nov 30, 2026, then $4/$20; Gemini 3.8 Flash $0.75/$3.75 through dec 31, 2026, then $1.50/$7.50 from jan 1, 2027; Gemini Decision 1 $0.10 per M input tokens, output not billed (0 output tokens), on the free tier; Gemini Omni 1.2 Flash $1.50 input, $9 text / $12 video out per M tokens (about $0.07/s at 720p), not on the free tier; Gemini 4 Neon $3/$15 (cached $0.15), not on the free tier; Gemini 4 Hydrogen $1.50/$7.50 (cached $0.075), also on the free tier; Genie 4 $1.50 text or image in, $9 text / $17.50 video out per M tokens (about $0.10/s), paid tier only

price checked

Anthropic Claude API2026-11-27 at platform.claude.com/docs/en/about-claude/pricing

Google Gemini API2026-11-27 at aistudio.google.com/docs/pricing

# straight from our rankings data. prices from each vendor's own page.

pick neither if

quick answer: claude api vs gemini api is the top two on our LLM APIs & models board, and it's level: the Anthropic Claude API and the Google Gemini API both score 9.0/10, with Claude #1 and Gemini #2 on our tiebreak. Claude is the one to beat for coding agents and tool use, and its prices don't move next month. Gemini is the value pick: Gemini 4 Neon at $3 / $15, a free tier with Gemini 4 Hydrogen and the Flash models on it, and images, video and voice on the same key. right now Sonnet 5.5 and Gemini 4 Argon are both $2 in / $10 out per million tokens, but Argon goes to $4 / $20 on december 1. as of nov 22, 2026.

the short version

Claude API Gemini API
our rank #1, 9.0/10 #2, 9.0/10
best at coding agents, tool use long-context and agentic work on a budget
free small amount of free credits for new API users free tier on Flash models, Gemini 4 Hydrogen and Gemini Decision 1 (Argon, Carbon, Neon and Genie 4 not on the free tier)
the everyday model Sonnet 5.5: $2 / $10 per M tokens Gemini 4 Argon: $2 / $10 through nov 30, then $4 / $20
the hard daily driver Opus 5.5: $4 / $20 Gemini 4 Carbon: $2 / $10 through nov 30, then $4 / $20
the top of the range Fable 5.2: $8 / $40 (fast mode $16 / $80); Mythos 5.2 same, limited availability Gemini 4 Carbon, same intro price as Argon
the fast frontier one none Gemini 4 Neon: $3 / $15, no end date on the page
the cheap ones Haiku 5.5: $0.10 / $0.50 (prompts up to 100K tokens) 3.5 Flash-Lite $0.30 / $2.50; 3.8 Flash $0.75 / $3.75 through dec 31, then $1.50 / $7.50; Gemini 4 Hydrogen $1.50 / $7.50
cache hits Sonnet 5.5 $0.10, Opus 5.5 $0.20 Argon $0.10 (implicit caching only), $0.20 from dec 1
batch 50% off 50% off on the paid tier
web search $10 per 1,000 searches 5,000 free a month, then $14 per 1,000
beyond text vision, tools, computer and browser use, managed agents images, video, live audio, speech, embeddings

ranks and scores come straight from our LLM APIs & models board, and nobody pays to move up it. prices per million tokens, input / output.

why Claude edges it

it's the one to beat for agents. if your thing edits files, calls tools and has to get step seven right after six others, Claude is where we'd put the key. it's also what runs Claude Code, #1 on our coding agents board.

the price you test on is the price you pay. Sonnet 5.5 is $2 / $10, Opus 5.5 (Anthropic's recommended daily driver for hard work) is $4 / $20, and Fable 5.2 is $8 / $40, with no end date on the page. Mythos 5.2 is the same price as Fable, limited availability. Gemini 4 Argon and Carbon are $2 / $10 only until nov 30, then $4 / $20 from december 1. so from december, Carbon and Argon cost what Opus 5.5 costs today. budget for that, not for this month.

long context at the normal rate. Anthropic bills the full 1M-token window at standard prices on Sonnet and Opus: a 900K-token request pays the same per token as a 9K one. stuff the repo in, pay the same rate.

caching you control. a cache hit on Sonnet 5.5 is $0.10 per million tokens (5% of input), and you pick what gets cached (5-minute writes at 1.25x input, 1-hour writes at 2x). on Argon, Google's page says implicit caching only: explicit caching isn't supported, so you get the discount when Google decides you've earned it.

the honest bit: Claude 4.7 and later use a newer tokenizer that Anthropic says makes about 30% more tokens for the same text, so the same $2 / $10 can cost more per prompt than it looks. the free credits for new users are small. and there's no image, video or voice generation on Anthropic's pricing page: this is a text, vision and tools shop.

where Gemini makes more sense

a real free tier. Gemini 4 Hydrogen and the Flash models are free to call on the free tier, which is plenty for building and testing a side project. the catch: on the free tier Google says your content is used to improve its products. on the paid tier it isn't. Carbon, Argon and Neon aren't on the free tier at all.

cheap Flash models with grown-up skills. 3.8 Flash is $0.75 / $3.75 until dec 31 (then $1.50 / $7.50), and Google pitches it at long-horizon coding and agents. 3.5 Flash-Lite is $0.30 / $2.50 for high-volume grunt work. Haiku 5.5 is cheaper on paper at $0.10 / $0.50, but only for prompts up to 100K tokens; over that it's $0.50 / $2.50.

everything else on one key. image generation (the Nano Banana models), video with audio (Gemini Omni), live audio, transcription, text to speech and embeddings all sit on the same pricing page. Claude would need a second provider for any of that.

search grounding with a free allowance. 5,000 grounded searches a month free across Gemini 3 and newer, then $14 per 1,000 (with a default cap of 1,500 a day). Claude's web search is $10 per 1,000 from the first one.

the honest bit: every token Argon and Carbon process is billed, thinking tokens included, so a model that thinks a lot costs a lot. the intro prices end soon (Argon and Carbon nov 30, Flash dec 31). and if you're still on Gemini 2.5 Pro or Flash, Google routes those to 3.8 Flash and 3.5 Flash-Lite from december 1, billed at the new rates. the full sums are in Gemini API pricing.

can i use both?

yes, and plenty of people do: Claude for the agent loop, Gemini Flash for cheap bulk reads, images or voice. if you'd rather have one key and one bill, OpenRouter (#4) lists Sonnet 5.5, Opus 5.5, Argon and Carbon at the same per-token prices, plus a fee when you buy credits. see Claude API vs OpenRouter for how that fee works out on Claude, and OpenAI API vs OpenRouter for GPT.

which should you pick?

the rest of the field

the table: the rest of the field
rank tool best for free tier paid from numptr score
#1 Anthropic Claude API coding agents, tool use small amount of free credits for new API users Sonnet 5.5 $2/$10 per M tokens 9.0/10
#2 Google Gemini API long-context and agentic tasks on a budget free tier on Flash models, Gemini 4 Hydrogen and Gemini Decision 1 (Argon, Carbon, Neon and Genie 4 not on the free tier) Gemini 4 Argon $2/$10 per M tokens through nov 30, 2026, then $4/$20 9.0/10
#3 OpenAI API general-purpose and multimodal apps unknown: no free API tier listed on the API pricing page GPT-6.1 Sol $2/$10 per M tokens 8.5/10
#4 OpenRouter prototyping across providers 25+ free models, 50 requests a day, rising to 1,000 a day once you've bought $10 of credits pay-as-you-go at model list prices, 5.5% fee on credit purchases 8.5/10
#5 Kimi API the strongest open-weights model, at mid-range token prices no free tier: a $1 minimum top-up unlocks K3.1 Pro (a $5 voucher once you've topped up $5 in total) Kimi K3.1 Pro $2/$10 per M tokens 8.0/10
#6 DeepSeek API cheap agent and coding workloads on a tight token budget unknown: no free tier stated (the pricing page mentions a granted balance) deepseek-flash $0.30/$1.20 per M tokens at peak, $0.15/$0.60 off-peak 8.0/10

faq

is the Claude API better than the Gemini API?

on our board they're level on 9.0/10, with the Claude API #1 and the Gemini API #2 on our tiebreak. Claude is the pick for coding agents and tool use; Gemini is the value pick, with Gemini 4 Hydrogen and the Flash models on its free tier.

is the Gemini API cheaper than the Claude API?

this month, the everyday models tie: Sonnet 5.5 and Gemini 4 Argon are both $2 / $10 per million tokens. from december 1 Argon is $4 / $20, double Sonnet 5.5. at the cheap end Haiku 5.5 ($0.10 / $0.50 up to 100K tokens) undercuts 3.5 Flash-Lite ($0.30 / $2.50), but Gemini has a free tier (Gemini 4 Hydrogen and the Flash models) and Claude doesn't.

Sonnet 5.5 vs Gemini 4 Argon: which should i use?

Sonnet 5.5 for agent loops and tool calls, at a price that stays put. Argon if you're already on Google's stack, but check your bill against $4 / $20, because that's what it costs from december 1.

does either have a free tier?

Gemini does: Gemini 4 Hydrogen and the Flash models are free on the free tier, and Google uses that content to improve its products. Anthropic gives new API users a small amount of free credits instead.

do both have a batch discount?

yes, 50% off on both (Gemini's batch API is on the paid tier). Claude's batch discount stacks with prompt caching.

sources

checked Anthropic and OpenRouter checked 2026-11-11, ~9:10 PM ET; Gemini API pricing checked again 2026-11-22, ~9:37 PM ET

numptrlast price check 243 prices 76 toolsbuild 35a7f2c6e · nov 28