The Gemini 4 API now has four models, not three: gemini-4-carbon (deepest reasoning), gemini-4-argon (frontier reasoning at lower token spend), gemini-4-neon (the newest, launched November 18, 2026 at $3/$15 per million tokens) and gemini-4-hydrogen (the fast default with a free tier). If you are on Carbon or Argon, the important date is December 1, 2026, when their introductory price of $2/$10 per million input/output tokens doubles to $4/$20. This guide covers which model to pick, the exact model IDs, a working google-genai example, the Gemini 2.5 shutdowns that land on the same day, and how to estimate your bill before and after the price change.

Everything below is taken from Google's own models page, pricing page and launch posts as of November 26, 2026. Those pages now redirect to aistudio.google.com/docs/..., and Google has been changing them weekly, so check them again before you commit a budget.

The Gemini 4 API lineup at a glance

Most coverage of "Gemini 4" talks about Argon, Carbon and Neon. Google's own docs list a fourth model, Hydrogen, launched on November 12, 2026, and the "latest model" page recommends it as the general-purpose default for new projects. So any comparison that leaves Hydrogen out is answering the wrong question for most applications.

Model Model ID Google's positioning Thinking levels (default) Standard price per 1M tokens (input / output) Free tier
Gemini 4 Carbon gemini-4-carbon Strongest reasoning: hard coding, long-horizon agents, science, cyber defense low, medium (default), high $2 / $10 through Nov 30, 2026; $4 / $20 from Dec 1 No
Gemini 4 Argon gemini-4-argon Frontier reasoning, faster and fewer tokens per turn than Carbon low, medium (default), high $2 / $10 through Nov 30, 2026; $4 / $20 from Dec 1 No
Gemini 4 Neon gemini-4-neon Frontier-level intelligence with fast end-to-end task completion low, medium, high (default), xhigh $3 / $15 No
Gemini 4 Hydrogen gemini-4-hydrogen Fast, cost-efficient everyday coding and agentic workflows low, medium, high (default), xhigh $1.50 / $7.50 Yes

Shared specs across all four, per the models page: a 1M-token context window, 64K output tokens by default with up to 1M output via "long decode", and text, image, audio, video and PDF input. The latest-model page also lists Google Search grounding, code execution, function calling, computer use and structured outputs for the current Gemini 4 models.

Release timeline

The dates matter because blog posts written in October describe a different product than the one you can call today.

  • September 30, 2026: Gemini 4 Argon announced, initially for vetted cyber defenders in Google's Fairwind Program.
  • October 13, 2026: Argon available to developers on the paid tier of the Gemini API in Google AI Studio and Android Studio.
  • November 10, 2026: Gemini 4 Carbon available to all paying API developers and enterprises.
  • November 12, 2026: Gemini 4 Hydrogen launched as the fast everyday model.
  • November 18, 2026: Gemini 4 Neon launched (post last updated November 23).
  • December 1, 2026: Carbon and Argon move from introductory to standard pricing; gemini-2.5-pro and gemini-2.5-flash requests start routing to newer models.

Which Gemini 4 model should you use?

Google's own framing is the best starting point. The Carbon launch post calls Argon "the ideal choice for the majority of software engineering and knowledge work" and positions Carbon above it for the most demanding tasks, noting that Carbon spends more tokens reasoning. The Neon post says Carbon "tackles your hardest, long-horizon projects", Hydrogen "handles fast everyday execution", and Neon sits between them.

Translated into engineering decisions:

Use Hydrogen for most production traffic

Hydrogen is the cheapest Gemini 4 model, the only one with a free tier, and the one Google's docs recommend for new projects. Chat, extraction, summarization, classification, RAG answer generation and most tool-calling agents belong here first. Google reports that Hydrogen at its default high thinking level scores slightly above Argon on the Artificial Analysis Intelligence Index (51 vs 50). That is a vendor-reported number on one index, so treat it as a reason to test Hydrogen, not as proof it will match Argon on your task.

Use Neon for long, tool-heavy agent runs

Neon is the only model besides Hydrogen with an xhigh thinking level, and Google pitches it for long agent sessions with lots of tool calls: fewer redundant file reads, better context compaction, and the ability to act as an orchestrator over parallel Hydrogen subagents in Google Antigravity. Google claims 32% lower cost per task than Carbon at the high setting. At $3/$15 it is more expensive per token than Carbon's introductory price but cheaper than Carbon's December price, so the comparison flips on December 1.

Use Carbon when the task is genuinely hard

Large refactors, subtle debugging across a big codebase, security analysis and research-grade reasoning are what Carbon is for. It thinks longer and bills more output tokens per task. If Argon or Neon already passes your evaluation set, Carbon is usually paying for headroom you do not use.

Use Argon if you validated on it in October

Argon was the first Gemini 4 model in the API, so a lot of early integration work targets it. Argon and Carbon share the same price, but Google says Argon uses fewer tokens per turn, which makes it cheaper per task. With Hydrogen and Neon now available, it is worth re-running your evals: many Argon workloads will be cheaper on Hydrogen, and many agentic ones will be better on Neon.

Keep Gemini 3.x Flash models for bulk work

Gemini 4 did not replace the Flash line. gemini-3.5-flash-lite is listed at $0.30/$2.50, and gemini-3.8-flash and gemini-3.6-flash are both stable. For high-volume, latency-sensitive tasks (tagging, routing, short extraction) a Flash model is often the right answer, and an LLM judge can tell you whether the quality gap matters. Our guide to building an LLM-as-a-judge evaluator in Python shows how to run that comparison.

Workload First model to try Escalate to
Chatbot, RAG answers, extraction gemini-4-hydrogen gemini-4-neon
High-volume classification or tagging gemini-3.5-flash-lite gemini-4-hydrogen
Coding agent, multi-step tool use gemini-4-neon gemini-4-carbon
Hard debugging, security review, research gemini-4-carbon (Carbon at high)
Existing Argon integration gemini-4-argon re-evaluate on Hydrogen and Neon

Gemini 4 API quickstart with the google-genai SDK

Google's current docs lead with the Interactions API (client.interactions.create) rather than generate_content. The snippet below follows the documented pattern. Install or upgrade the SDK first:

pip install -U google-genai
export GEMINI_API_KEY="your-key"
from google import genai

client = genai.Client()  # reads GEMINI_API_KEY from the environment

interaction = client.interactions.create(
    model="gemini-4-hydrogen",
    system_instruction="You are a terse senior SRE. Answer in at most five bullets.",
    input="Our p99 latency doubled after enabling HTTP/2 on the load balancer. What should we check?",
    generation_config={"thinking_level": "medium"},
)

print(interaction.output_text)

usage = interaction.usage
print(usage.total_input_tokens, usage.total_output_tokens, usage.total_thought_tokens)

A few things to know about this call:

  • thinking_level goes inside generation_config. Valid values are low, medium and high on Carbon and Argon; Neon and Hydrogen add xhigh. The thinking guide says minimal is not supported on any Gemini 4 model.
  • output_text and the usage fields (total_input_tokens, total_output_tokens, total_thought_tokens, total_cached_tokens) exist on the Interaction object in google-genai 3.6.1, which we checked by inspecting the installed package. We did not make a live paid call while writing this, so run it against your own key before you rely on it.
  • Swapping models is a one-string change. Keep the model ID in configuration, not code, so you can move traffic between Hydrogen, Neon and Carbon without a deploy.

If you still use generate_content, the SDK's types.ThinkingConfig has a thinking_level field, and the ThinkingLevel enum includes XHIGH:

from google import genai
from google.genai import types

client = genai.Client()
response = client.models.generate_content(
    model="gemini-4-neon",
    contents="Summarize the trade-offs of optimistic vs pessimistic locking in Postgres.",
    config=types.GenerateContentConfig(
        thinking_config=types.ThinkingConfig(thinking_level=types.ThinkingLevel.HIGH),
    ),
)
print(response.text)

Google's text-generation page now documents only the Interactions API, so new code should probably target it. If you have a large generate_content codebase, test it against Gemini 4 rather than assuming either path is deprecated.

Migrating from Gemini 2.5 and Gemini 3 to Gemini 4

Two separate things happen on December 1, 2026, and they are easy to confuse.

Gemini 2.5 Pro and 2.5 Flash are rerouted on December 1

According to the deprecations page:

Old model ID Status What happens from December 1, 2026
gemini-2.5-pro Deprecated, not selectable in AI Studio Requests route to gemini-3.8-flash, billed at 3.8 Flash rates
gemini-2.5-flash Deprecated, not selectable in AI Studio Requests route to gemini-3.5-flash-lite, billed at 3.5 Flash-Lite rates
gemini-2.5-flash-lite Not deprecated Served "until further notice"
gemini-3-pro-preview Shut down (March 9, 2026) Replacement listed: gemini-3.1-pro-preview
gemini-3-flash-preview Legacy preview, no shutdown date Replacement listed: gemini-3.6-flash

Note the direction of the 2.5 Pro reroute: it goes to a Flash model, not to a Gemini 4 model. Your calls will keep returning 200s, but the model behind them changes. If gemini-2.5-pro sits behind a feature where quality matters, pick the replacement yourself (probably Hydrogen or Neon) and run your evals before December 1, rather than letting the automatic routing choose for you. Google also notes that shutdown dates on that page are the earliest possible dates.

Parameter changes that break or silently change Gemini 4 requests

Google Cloud's Gemini 4 getting-started guide and the Gemini API docs list several behavior changes that matter when you move old code:

  • Sampling parameters are ignored. Gemini 4 (and Gemini 3.6+) ignore custom temperature, top_p and top_k and return deprecation warning headers. If your code set temperature=0 for determinism, it no longer does anything. Use thinking_level and structured output schemas to control behavior.
  • thinking_budget is out. On Gemini 4 the Google Cloud guide says thinking_budget returns HTTP 400. Replace token budgets with thinking_level.
  • minimal is invalid. Code that used thinking_level="minimal" on Gemini 3 Flash models must switch to low.
  • Thought signatures must be preserved. In multi-turn function calling, send back the thought signatures from all previous turns. In a parallel function-call turn, include it only on the first functionCall part. Missing or duplicated signatures can return HTTP 400. If you use the SDK's chat or interaction helpers this is handled for you; hand-rolled history management is where it breaks.

A quick way to catch the first two problems is to grep before you switch the model string:

grep -rnE "temperature|top_p|top_k|thinking_budget|\"minimal\"|ThinkingLevel\.MINIMAL" src/ | grep -v test

Vertex AI and Gemini Enterprise Agent Platform

If you call Gemini through Google Cloud instead of the Gemini Developer API, the Cloud guide lists gemini-4-hydrogen, gemini-4-carbon and gemini-4-argon on the global endpoint and us/eu multi-regions (Argon also in europe-west2 and asia-southeast1), with allowlist-only "cyber-permissive" variants of Carbon and Argon. That page did not list Neon when we checked, so confirm Neon availability in your region before planning around it. Pricing on Google Cloud is published separately from the Gemini API page.

Gemini 4 pricing: the December 1 change and how to estimate cost

Here are the full standard rates from the pricing page, per 1M tokens. Output prices include thinking tokens.

Model Input Output Cached input Batch / Flex (input / output) Priority (input / output)
Carbon, through Nov 30 $2.00 $10.00 $0.10 $1.00 / $5.00 $3.60 / $18.00
Carbon, from Dec 1 $4.00 $20.00 $0.20 $2.00 / $10.00 $7.20 / $36.00
Argon, through Nov 30 $2.00 $10.00 $0.10 $1.00 / $5.00 $3.60 / $18.00
Argon, from Dec 1 $4.00 $20.00 $0.20 $2.00 / $10.00 $7.20 / $36.00
Neon $3.00 $15.00 $0.15 $1.50 / $7.50 $5.40 / $27.00
Hydrogen $1.50 $7.50 $0.075 $0.75 / $3.75 $2.70 / $13.50

Three points that change real bills:

  1. Thinking tokens are output tokens. A request that returns 300 visible tokens can bill several thousand output tokens at high. Measure total_thought_tokens on real traffic before you extrapolate.
  2. Cached input is 95% cheaper. Neon's launch post calls out the 95% cached-input discount, and the same ratio holds across all four models. The pricing page lists Carbon's cache rate as implicit caching only. Long, stable system prompts and tool definitions at the front of the request are where this pays off; our prompt caching guide for OpenAI, Anthropic and Gemini explains how to structure prompts so the cache actually hits.
  3. Batch and Flex are half price. Anything that does not need an answer in seconds (nightly enrichment, evaluation runs, backfills) should not run at standard rates.

A worked cost estimate

Take a workload of 300,000 requests per month, each with 20,000 input tokens and 2,000 output tokens (thinking included). This small script uses the prices above:

# USD per 1M tokens: (input, output, cached_input)
PRICES = {
    "gemini-4-carbon":   {"intro": (2.00, 10.00, 0.10), "dec1": (4.00, 20.00, 0.20)},
    "gemini-4-argon":    {"intro": (2.00, 10.00, 0.10), "dec1": (4.00, 20.00, 0.20)},
    "gemini-4-neon":     {"intro": (3.00, 15.00, 0.15), "dec1": (3.00, 15.00, 0.15)},
    "gemini-4-hydrogen": {"intro": (1.50, 7.50, 0.075), "dec1": (1.50, 7.50, 0.075)},
}

def monthly_cost(model, period, requests, in_tok, out_tok, cached_share=0.0, batch=False):
    p_in, p_out, p_cache = PRICES[model][period]
    fresh = requests * in_tok * (1 - cached_share)
    cached = requests * in_tok * cached_share
    cost = (fresh * p_in + cached * p_cache + requests * out_tok * p_out) / 1_000_000
    return cost * (0.5 if batch else 1.0)

for m in PRICES:
    nov = monthly_cost(m, "intro", 300_000, 20_000, 2_000)
    dec = monthly_cost(m, "dec1", 300_000, 20_000, 2_000)
    dec_cached = monthly_cost(m, "dec1", 300_000, 20_000, 2_000, cached_share=0.75)
    print(f"{m:18} Nov ${nov:>8,.0f}  Dec ${dec:>8,.0f}  Dec, 75% cached ${dec_cached:>8,.0f}")

Output:

gemini-4-carbon    Nov $  18,000  Dec $  36,000  Dec, 75% cached $  18,900
gemini-4-argon     Nov $  18,000  Dec $  36,000  Dec, 75% cached $  18,900
gemini-4-neon      Nov $  27,000  Dec $  27,000  Dec, 75% cached $  14,175
gemini-4-hydrogen  Nov $  13,500  Dec $  13,500  Dec, 75% cached $   7,088

The per-token math hides one important variable: the models do not use the same number of tokens for the same task. Carbon thinks longer than Argon, and Neon defaults to high. The only number that matters is cost per successful task on your workload, so log usage per request during your evaluation and multiply by these prices. Google's claim that Neon is 32% cheaper per task than Carbon is exactly this kind of measurement, done on Google's tasks.

What to do before December 1

  • List every place that calls gemini-4-carbon or gemini-4-argon and multiply last week's token usage by the December prices. That is your new floor.
  • Move non-interactive jobs to Batch or Flex.
  • Re-run your eval set on gemini-4-hydrogen and gemini-4-neon. If either matches Argon or Carbon quality, switching is the biggest cost lever you have.
  • Add a budget alert in Google Cloud billing for the project that owns your API key.
  • Replace any gemini-2.5-pro and gemini-2.5-flash IDs deliberately instead of accepting the automatic reroute.

If your team mostly meets Gemini through a terminal coding agent rather than raw API calls, our Claude Code vs Codex CLI vs Gemini CLI comparison compares the three tools side by side. When you debug raw REST responses or usage payloads, a JSON formatter makes the nested usage object much easier to read.

Gotchas we noticed in the docs

  • Free tier is Hydrogen only. Carbon, Argon and Neon are paid-tier only in the Gemini API. Free-tier traffic on Hydrogen and the Flash models "may be used to improve products", so do not send customer data through a free-tier key.
  • Contributor tier. The pricing page lists an invite-only "Contributor" private-preview tier for Argon and Hydrogen at Batch-like prices, with the condition that inputs and outputs may be used to improve Google's products. That is a data-handling decision, not just a pricing one.
  • Consumer access differs from API access. Developer forum threads show confusion about which Google AI Pro or Ultra plans include which Gemini 4 models in Antigravity and the Gemini app. Those subscriptions are separate from the Gemini API; your API key's billing tier is what counts for code.
  • The docs moved. ai.google.dev/gemini-api/docs/* now redirects to aistudio.google.com/docs/*. Update bookmarks and any internal runbooks that deep-link to model or pricing pages.

Frequently Asked Questions

What are the Gemini 4 model IDs for the API?

The four IDs are gemini-4-carbon, gemini-4-argon, gemini-4-neon and gemini-4-hydrogen. Google Cloud also lists allowlist-only gemini-4-carbon-cyber-permissive and gemini-4-argon-cyber-permissive variants for vetted security teams.

How much does the Gemini 4 API cost after December 1, 2026?

Carbon and Argon go from $2/$10 to $4/$20 per million input/output tokens. Neon stays at $3/$15 and Hydrogen at $1.50/$7.50, since neither had introductory pricing listed. Batch and Flex are half of standard, and Priority is 1.8x standard.

Is there a free tier for Gemini 4?

Only for Gemini 4 Hydrogen among the Gemini 4 models. Several Gemini 3.x Flash models, including gemini-3.8-flash and gemini-3.6-flash, also have free tiers. Carbon, Argon and Neon require the paid tier of the Gemini API.

What context window does Gemini 4 have?

All four Gemini 4 models have a 1M-token context window. Default maximum output is 64K tokens, and Google's models page lists output up to 1M tokens with long decode.

What happens to gemini-2.5-pro on December 1?

Google's deprecations page says gemini-2.5-pro requests will route automatically to gemini-3.8-flash and be billed at that model's rates, and gemini-2.5-flash will route to gemini-3.5-flash-lite. gemini-2.5-flash-lite is not deprecated.

Does temperature still work on Gemini 4?

No. Gemini 4 models ignore custom temperature, top_p and top_k values and return deprecation warning headers. Control output with thinking_level and structured output schemas.

Bottom Line

The Gemini 4 API is a four-model family, and for most teams the default should be gemini-4-hydrogen, with gemini-4-neon for long agentic runs and gemini-4-carbon kept for the hardest problems. Argon is still a solid model, but it no longer has a clear price or speed advantage now that Hydrogen and Neon exist, and from December 1 it costs the same as Carbon. Before that date, re-price your Carbon and Argon usage at $4/$20, move batch work to Batch or Flex, replace any Gemini 2.5 Pro and Flash IDs yourself, and remove temperature and thinking_budget from your requests. Then judge every model on cost per successful task, not price per token.