Claude API vs Gemini API by official numbers: small-model prices, web search, spend limits and deprecation

日本語版

A comparison / October 2026

Torecadash moved from the Claude API to the Gemini API (the story is in the migration article). Here I line up the official numbers I did not write down then. I use only what the official pages say. I did not compare accuracy or speed, because there are no official numbers for them.

All numbers were seen on official pages on October 8, 2026. Prices and limits change. Check each item’s source again before you use it. What the official pages did not say is written as “could not confirm,” not as “does not exist.”

Quick table: look up what you want to know

The answers first. Details and sources are in the sections below.

What you want to knowWhat the official pages say
Which is cheapest?In the current official tables, Claude Haiku 5.5 (input $0.10, output $0.50) and Gemini 2.5 Flash-Lite ($0.10, $0.40) are in a similar range. Gemini 3.1 Flash-Lite is $0.25 and $1.50.
I want a setting to cap the number of searchesClaude has max_uses. For Gemini, I did not find a setting for the number of searches on the official pages.
I want to use search for freeGemini’s paid tier includes up to 5,000 requests a month free. But on the free tier, search is not available for 3.1 Flash-Lite. Claude is $10 per 1,000 searches.
I want a spend cap that stops meBoth have a monthly spend limit and stop until the 1st of next month when reached (Claude from Start at $500, Gemini from Tier 1 at $250).
I want a promise about deprecation noticeClaude states “at least 60 days before retirement.” For Gemini I could not confirm a promise of days; the date in the table is the “earliest shutdown date.”
I want official numbers for JapaneseClaude’s multilingual page has them (93.5% of English for Haiku 4.5). For Gemini I could not confirm.

The numbers in the table were confirmed on official pages on October 8, 2026. This is not a conclusion about which to choose; it is an organization of “what is officially written.”

Prices of small models

US dollars per million tokens. The model I used before the migration was Claude Haiku 4.5.

ModelInputOutput
Claude Haiku 4.5$1$5
Claude Haiku 5.5$0.10 (prompts up to 100,000 tokens) / $0.50 (beyond that)$0.50 (up to 100,000) / $2.50 (beyond that)
Gemini 3.1 Flash-Lite (where I moved)$0.25 (text, image, video) / $0.50 (audio)$1.50
Gemini 3.5 Flash-Lite$0.30$2.50
Gemini 2.5 Flash-Lite$0.10$0.40

How web search works and what it costs

ClaudeGemini
Price$10 / 1,000 searches (plus normal token cost for the results)Paid tier: up to 5,000 requests a month free, then $14 / 1,000 requests. On the free tier, search is not available for 3.1 Flash-Lite.
How it is countedPer search. Not charged on error.For Gemini 3 models, per search query the model runs (multiple queries mean multiple charges).
A setting to cap the countYes (max_uses). Beyond it, the search result is a max_uses_exceeded error.I did not find a setting to cap the count on the search page (I cannot say it does not exist).
Domain restrictionsAllowed and blocked domains can be specified.Could not confirm.

The problem I wrote about in the migration article, “web search has no cap on the number of calls,” reads the same within what the official pages say. Nothing equivalent to Claude’s max_uses was written on Gemini’s search page. It is still possible that I just did not find it.

Limits and how they stop

This is close to my reason for migrating.

ClaudeGemini
Monthly spend limitStart $500 / Build $1,000 / Scale $200,000From Tier 1 $250 / Tier 2 $2,000 / Tier 3 $20,000
When the limit is reachedHTTP 429 (enforced_spend_limit_reached). Stopped until 00:00 UTC on the 1st of next month.All projects in the billing account stop until the 1st of next month.
A limit you set lower yourselfCan be set (HTTP 400 when reached).Can be set per project in AI Studio (an experimental feature; billing is reflected with a delay of about 10 minutes, so you can overshoot).
Free tierA small free credit for new accounts. I did not find a continuing free allowance.Yes. 3.1 Flash-Lite tokens are free. But caching and search grounding are not available on the free tier.
Per-minute limits for small modelsStart: Haiku 4.5 / 5.5 both 1,000 requests per minute, 2 million input and 400,000 output tokens per minute.No specific numbers in the documentation (you check in AI Studio).

The migration article gives the reason as “I hit Anthropic’s usage limit and got an unplanned charge.” However, Claude’s official pages say it stops when the limit is reached, and I could not explain from the official pages how an unplanned charge arises. The account in that article comes from my own records, not backed by official documents.

How deprecation is announced

ClaudeGemini
Notice promiseFor released models, notice at least 60 days before retirement (by email and documentation).It says “the exact shutdown date will be announced in advance,” but I could not confirm a promise of days. The date in the table is the “earliest shutdown date.”
How it is written“Not sooner than X” (it will not retire earlier than X).A table of release date, shutdown date and recommended replacement.
ExamplesHaiku 3.5: about 2 months from announcement (2025-12-19) to retirement (2026-02-19). Haiku 4.5: not retired sooner than 2026-10-15.3.1 Flash-Lite: released 2026-05-07, shutdown 2027-05-07 (12 months after release). 2.0 Flash: shutdown 2026-06-01.

The shutdown date of gemini-3.1-flash-lite, which I chose, is also May 7, 2027 in the official table. It matches the migration article. On the other hand, the migration article’s “2.5 Flash-Lite is scheduled to be shut down on October 16” disagrees with the current official table (“no shutdown date announced”). I added a correction to that article.

Structured output, tool calling and Japanese

What I learned

You cannot choose from a price table alone.

What I could not confirm

Sources (all checked on October 8, 2026)

I read some of the official pages through summaries (the numbers have not been checked against the originals character by character). Always check the original text of the sources before deciding.

This is the English version of the original Japanese article.

More in English