Google trains one sparse, natively multimodal model line on its own TPUs and distils it downwards: into the Flash and Flash-Lite tiers of the closed Gemini API, and into the open Gemma models built to fit one machine. Since Gemini 2.5 the caller also sets how hard each request thinks, so what a task costs depends more on how many tokens it spends than on the price list.
You need: Mixture of experts (total against active parameters), Attention variants (sliding-window layers), Long context (KV-cache sizing) and Distillation and small language models. This page says what Google chose and what it shows; those pages teach the mechanisms.
thinking_level: minimal, low, medium or high (xhigh on Hydrogen and Neon), set per request; it replaced the 2.5 models' token budget.Gemini (closed, purple) is sold through the Gemini API, Vertex AI, Google's products and, since September 2026, Apple's Siri; Gemma (open, green) is weights you download, under Apache 2.0 since Gemma 4. The left column's question is what a request costs; the right column's is what fits in a given amount of memory. Each box is a section below.
| Line | What it is | How you get it |
|---|---|---|
| Gemini 4 Carbon | Google's strongest model, for cyber defence and long-horizon work | Announced 28 October 2026 for vetted cyber defenders through the Fairwind Program; paid API and Gemini for business from 10 November |
| Gemini 4 Neon | The middle tier, "adapted from Gemini 4 Carbon" by its model card, between Hydrogen and Carbon in price | Paid API, AI Studio, Gemini for business, Antigravity and the Gemini app (AI Pro and Ultra) from 18 November 2026 |
| Gemini 4 Argon | The first Gemini 4 model above Pro, for long-horizon software engineering, legal and finance work and cyber defence | Announced 30 September 2026 for vetted cyber defenders first; paid API from 13 October |
| Gemini 4 Hydrogen | The Flash line's successor, Google's "daily driver for agentic workflows" | API, Google Cloud, the Gemini app and Search from 12 November 2026 |
| Pro (3.1 Pro) | The Pro tier: complex problems and agentic work | API, still a preview since 19 February 2026 |
| Flash, Flash-Lite | Distilled tiers; since 2026 the release cadence has been on Flash (four generations between May and September 2026) | API, stable |
| Gemini Decision 1 | A scoring model, not a generator: it answers up to 1,000 closed-set questions about one text, image, audio, video or PDF input in a single pass | Decisions API, from 11 November 2026 |
| Live | The real-time voice line: audio in, audio out, with tool calls during the conversation | Live API |
| Deep Think | A reasoning mode that runs several lines of thought in parallel and combines them | A mode in the Gemini app, not a model you call in the API |
| Cyber variants | 3.5 Flash Cyber and 3.8 Flash Cyber, tuned to find and fix software vulnerabilities | Not sold openly: Fairwind only |
| Gemma | Open weights: E2B and E4B for phones, a dense 12B Unified and 31B, and the 26B A4B mixture of experts | Download; Apache 2.0 since Gemma 4 |
| T5Gemma, EmbeddingGemma | The encoder-decoder and embedding branch of Gemma | Download |
The order explains the design: each step below added one of the properties in the hero figure.
xhigh thinking level above high (Google), and Gemini 4 Neon (18 November), adapted from Carbon, filled the gap between Hydrogen and Carbon and took Argon's place in the Gemini app (Google).Gemini (closed) above the line, Gemma (open) below. Click or tap a dot to open its dated card under "Every release, dated" below.
Gemini 1.5's other memorable result. Given a grammar manual for Kalamang, a language with fewer than 200 speakers, the model learned to translate English to Kalamang at about the level of a person who learned from the same material (Gemini 1.5 report).
2.5 and agents. The agentic push dates from here: Project Mariner for browser control, and Jules, an asynchronous coding agent (Other coding harnesses).
Deep Think against formal provers. The year before the IMO gold, AlphaProof and AlphaGeometry 2 reached silver (28 points) only after experts translated the problems into the formal language Lean, and took two to three days (Google DeepMind). Gemini 3 Deep Think followed in December 2025 as a mode in the Gemini app.
3.6 Flash and 3.5 Flash-Lite (21 July 2026). 3.6 Flash used 17% fewer output tokens than 3.5 Flash, and 3.5 Flash-Lite generated 350 output tokens per second in Artificial Analysis' measurement (Google). The same release deprecated the temperature, top_p and top_k sampling parameters across the API (release notes).
3.8 Flash (2 September 2026). On the Artificial Analysis Intelligence Index v4.3 (methodology v4.3.2, read 1 October 2026), 3.8 Flash at high thinking scores 40.9 against 39.1 for 3.7 Flash, below GPT-5.6 Sol (47.0) and Grok 4.6 (44.3) (Artificial Analysis). Launch-day index figures, such as The Register's 59 against 56 and "about 40 percent more per task" (The Register), were on a version of the index before v4.2 and do not compare with these. Google reports 54.9% on HLE-Verified and gains over 3.7 Flash on DeepSWE v1.1 long-horizon software engineering, Vals Finance Agent V2 and Harvey's legal agent benchmark, and claims it beats most larger frontier models on long-horizon software engineering (Google). On Real-SWE, a benchmark of private enterprise code, it resolves 31.2% of tasks, third behind Claude Fable 5.1 (38.8%) and GPT-6 Astra (33.8%), with overlapping 95% confidence intervals ([25%, 38%], [32%, 45%], [27%, 40%]) (DEV Community).
3.8 Flash Cyber. The same model tuned for vulnerability detection and remediation, distributed only through Fairwind: 47.2% pass@1 on CWE-Bench against 47.8% for the leading frontier model, and Chrome's security team got 2.6 times more correct vulnerability patches (Google).
3.8 Live and Live Extended Thinking (15 September 2026): a tier, not a flagship. Production voice-agent models doing near real-time speech with visual grounding, detecting and switching between 97 languages mid-conversation. Extended Thinking is the one with an idea in it: it reasons and speaks at the same time, filling with verbal cues ("Let me check that") while tool and API calls run in the background instead of going silent. Every other way of spending a test-time budget makes the caller wait; this one covers the latency with speech, a product answer to a systems constraint and the first shipped one. Extended Thinking scored 82.6 on Artificial Analysis' speech-to-speech quality index at launch, first on it, with 68.6% on τ-Voice, 35.1% on Sierra's τ-Voice-banking and 97.7% on Big Bench Audio; all audio output carries a SynthID watermark. Both are in the Gemini API and AI Studio, in private preview in Gemini Enterprise, and behind Search Live, Gmail and Keep. Google publishes no millisecond latency figure (Google). The audio side of voice models is on Topic: generative-and-multimodal.
Gemini 4 Argon (30 September and 13 October 2026). Google reports 77.9% on DeepSWE v1.1, first place on AutomationBench at 51.3%, 91.7% on LVBench video understanding, a tie for first on CWE-bench v1 at 68%, and the lead on the Vals Index. Google names monitoring of the model's internal activations among its safeguards (Google). Argon reached its defenders first without cyber guardrails for them, and became generally available on 13 October 2026 on the paid Gemini API, AI Studio, Antigravity and Gemini Enterprise, and in the Gemini app for AI Pro and Ultra subscribers; it is not on the free tier (VentureBeat). Independent readings put it in the frontier band but not alone at the top. Vals AI ranked it first on the Vals Index at general availability, at 68.90%, ahead of Claude Sonnet 5.5 (67.04%) and Opus 5.5 (66.97%) (VentureBeat). On the Artificial Analysis Intelligence Index v4.3 (methodology v4.3.2) it scores 53 at high (52.6 to one decimal, at $1.99 per task at the introductory price), tied with GPT-6 Astra and Claude Fable 5.1 and behind Opus 5.5 (58), Sonnet 5.5 and Meta's Muse Wonder Full (56) (Artificial Analysis, read 19 October 2026); Epoch AI's early estimate on its Capabilities Index is 165, against 167 for Opus 5.5 and 166 for Astra (Epoch AI). It trails on terminal work: Terminal-Bench 4.0 57.4% against Opus 5.5's 66.4% in Google's own table, and 57.58% on Vals AI's fixed mini-swe-agent harness (Vals AI). On ARC-AGI-3 (semi-private set, verified by ARC Prize) it shows how far the harness moves a score: 97.5% through the Provider Adapter, 49.8% through the standard harness at low effort, the best standard-harness score outside OpenAI (ARC Prize).
Argon in the API (gemini-4-argon). Input, thinking and output share one 1,048,576-token context. A response defaults to 65,536 output tokens; longer ones, up to the 1M limit minus the input, run as background execution in 64K hops. Thinking levels are low, medium (the default) and high; explicit caching is not supported, and temperature, top_p and top_k are ignored (API docs).
Gemini 4 Carbon (28 October 2026). Google calls it its strongest model, with cyber and long-horizon work as the selling points, and released it the way Argon started: a subset of vetted cyber defenders first, other partners added through the Fairwind Program. On 10 November it opened to paying developers in the Gemini API, AI Studio and Gemini for business, and began rolling out to Google AI Ultra subscribers in the Gemini app, AI Mode in Search and Antigravity; Google still recommends Argon as the default for most coding and office work (Google). The price is Argon's, $2 / $10 per million tokens introductory through November 2026, list $4 / $20, cached input 95% off; no architecture is disclosed (Google). Google's own cyber scores, evaluated without guardrails: 88.2% on SEC-bench Pro (finding vulnerabilities), 71.0% on CWE-bench (patching) and 54.8% on ExploitGym (exploitation) (Google). Independently, it opened at 59 on the Artificial Analysis Intelligence Index v5, a new scale introduced on 27 October 2026 that does not compare with v4.3 numbers, first ahead of Claude Opus 5.5 (58), with a 1M-token context; the same measurement shows its hallucination rate on AA-Omniscience rising from Argon's 4% to 11% (Artificial Analysis). Vals AI put it second on the Vals Index at 70.45%, behind Claude Sonnet 5.5 (70.85%) (Vals AI, read 30 October 2026). Read 23 November 2026: 60 at high on Intelligence Index v5.0.1, fourth behind Claude Fable 5.2 (65), GPT-6.2 Astra (62) and Gemini 4 Neon (61) (Artificial Analysis); fourth on the Vals Index at the same 70.45% (board updated 19 November, Vals AI); ARC-AGI-3 65.1% with the standard harness and 99.1% through the provider adapter (entry dated 10 November, ARC Prize). Google's own claims at general availability: first on CursorBench 4.0, Perplexity's WANDR and Zapier's AutomationBench at less than half the cost per task of the next best external model (vendor-reported, Google).
Gemini 4 Hydrogen (12 November 2026). Google's "daily driver for agentic workflows" and the recommended upgrade from 3.8 Flash, in the Gemini API, AI Studio, Android Studio, Gemini for business, the Gemini app (free users through automatic selection) and Search; gemini-4-hydrogen is generally available on Google Cloud. It costs $1.50 / $7.50 per million tokens, flat across the context ($0.075 cached), which is 3.8 Flash's scheduled list price and twice its introductory one (VentureBeat); Batch and Flex are half price. About 1M tokens are shared by input and output; thinking defaults to high (3.8 Flash defaulted to medium), adds xhigh, and rejects thinking_budget and minimal; caching is automatic from 4,096 tokens (Google). Vendor-reported: Terminal-Bench 4.1 57% against 18.2% for 3.8 Flash. Independently, read 16 November 2026: Artificial Analysis Intelligence Index v5.0.1 54 at xhigh and 51 at high (Argon: 50), 41 at medium and 27 at low, at $3.16, $1.87 and $0.80 per index task for the top three (Artificial Analysis); Vals Index 68.49%, sixth (seventh on the board of 19 November, below Neon) (Vals AI).
Gemini 4 Neon (18 November 2026). The middle of the Gemini 4 line, between Hydrogen and Carbon. Its model card says it is "adapted from Gemini 4 Carbon" and defers architecture to Carbon's card; knowledge cutoff March 2026, a 1M-token context shared by input and output, text, image, audio and video in (model card). It costs $3 / $15 per million tokens, cached input $0.15, twice Hydrogen; four thinking levels, low, medium, high (the default) and xhigh; Google reports 32% lower cost per task than Carbon at high (Google). In the Gemini app it replaced Argon, and the picker became Auto, Hydrogen, Neon and Carbon (9to5Google); Tasks in Gemini can run on it, and Fairwind defenders get a Neon for Cyber. Vendor-reported: Terminal-Bench 4.1 65.2%. Independently, read 23 November 2026: the public Terminal-Bench 4.1 board has 61.2% ±2.8 (xhigh, Antigravity CLI), eighth, below Google's own figure, with the harness or settings possibly different (Terminal-Bench); Artificial Analysis Intelligence Index v5.0.1 61 at xhigh, third, at $6.44 per index task, and 60 at high, with a very verbose 283M output tokens on the index at xhigh (Artificial Analysis); Vals Index 70.87%, second behind Claude Fable 5.2 (71.31%) (board updated 19 November, Vals AI). No ARC-AGI-3 entry was listed.
Gemini Decision 1 and the Decisions API (11 November 2026). A model that scores instead of generating: it answers up to 1,000 closed-set questions against one shared multimodal input in one pass, in 150 to 250 ms, for routing, policy checks and rubric scoring, at $0.10 per million input tokens and no output charge (Google).
Gemini models think dynamically by default: the model decides per request how much reasoning a prompt needs. The caller steers it with one parameter, thinking_level, in the generation config: minimal, low, medium or high, plus xhigh on Gemini 4 Hydrogen, the Flash line's successor. Google's guidance is minimal or low for fact retrieval and classification, the default for comparisons and creative reasoning, and high for advanced coding, mathematics and multi-step planning (thinking guide). Four details are Google-specific and are where code breaks:
thinking_budget, a token count. The current guide describes only thinking_level, including for 2.5 Pro, 2.5 Flash and 2.5 Flash-Lite (the last ships with thinking off by default), and Hydrogen rejects a thinking_budget outright (Google). Code that still sends a budget was written against an API that has moved.thinking_summaries; by default only the final answer returns.previous_interaction_id) Google handles them.The two outer designs this sits between (a caller-set token budget, and a hidden router that decides for you) and the research behind them are on Test-time compute and reasoning, section 6; Anthropic's equivalent, adaptive thinking with an effort setting, is on Anthropic: Claude family.
Predict, then try: will minimal work on the newest Flash? Pick the level your code sends. Models that reject it are struck out; the ringed cell is each model's default. minimal fails on Hydrogen, 3.8 Flash, 3.7 Flash and 3.1 Pro, and only Hydrogen takes xhigh.
From the per-model table in the thinking guide; Hydrogen's levels from its launch post (Google). The guide lists the 2.5 Pro and 2.5 Flash defaults only as "on", with no level, and still lists gemini-3-pro-preview, which was shut down on 9 March 2026.
Native multimodality makes media a token cost like any other, so "will this fit, and what will it cost" is arithmetic. On the Gemini 3 models a video frame costs 70 tokens at the default, low and medium media resolution and 280 at high; frames are sampled at 1 per second; audio costs 25 tokens per second at every resolution; an image costs 1,120 tokens at the default (280 low, 560 medium, 2,240 ultra high, set per item); a PDF page 560 at the default (media resolution). Fig. 3 lays one hour of video out on the window, drawn as 32 × 32 tiles of 1,024 tokens (1,048,576 tokens on every 3.x model, models). How a vision encoder turns pixels into tokens in general is on Vision-language models; this section is about Google's rates.
So "an hour of video" is a third of the window at the default and does not fit at high. The static count is the ceiling: agentic loading can only spend less.
For a video with its soundtrack:
N input tokens; t seconds; f frames sampled per second (1 by default); r tokens per frame (70 at default or low resolution, 280 at high); a audio tokens per second (25, or 0 for a silent video); C input cost in dollars at pin dollars per million tokens.
The calculator beside works this for any mix of video, images and PDF pages, and prices it on any Gemini model.
Try: the defaults are the worked example, one hour on 3.8 Flash. Switch to high resolution and the hour overflows the window before you have typed a question; switch the rates to Gemini 2.5's to see the report's "1 hour versus 3 hours". Add images or PDF pages to fill the rest of the window.
Window 1,048,576 tokens for every 3.x model (models). Prices from pricing; 3.1 Pro's rate for the whole prompt doubles above 200K tokens. The 2.5 rates: 258 tokens per frame by default, 66 at low (Gemini 2.5 report), audio 32 tokens per second (the generic tokens page, which also still quotes 263 video tokens per second for older models).
Cost per task is tokens per task times price per token, and a release can move either factor:
Tin, Tout: input and output tokens the task consumes, summed over every turn and tool call, thinking tokens counted in Tout; pin, pout: prices per million tokens (cached input is billed at its own, lower, price).
Worked example: 3.7 Flash to 3.8 Flash. The per-token prices are identical ($0.75 and $3.75 introductory), so the whole change is in T.
The lesson travels: compare models on cost per task, not on the price list, and expect a newer "cheap" tier to spend more tokens than its predecessor. The caller holds two levers: a lower thinking_level cuts Tout, and context caching, a tenth of the input price, cuts what the repeated input costs. The widget below moves both on one index task.
Predict, then try: which lever moves 3.8 Flash's bill more, removing the cache or halving the output? Drag the cached share to 0: the task costs three times as much. Halve the output tokens (roughly what a lower thinking level does, by an amount Google does not publish): it falls by a fifth.
Run totals and prices from Artificial Analysis (3.8 Flash, 3.7 Flash, 3.1 Pro, Argon, leaderboard). Cache prices: a tenth of input on the Flash models and 3.1 Pro, 95% off on Argon. The batch option halves every Google price (pricing) and leaves Fable 5.1 at its standard price. The defaults reproduce AA's cost per task by construction (see below).
Writing in the cached share h of input tokens, billed at the cache price pc:
AA publishes each model's total tokens over the whole index run and the run's total cost, but neither the cached share nor how tasks are weighted. So h is back-solved from the run's total, and tokens per task are the run totals scaled by AA's cost per task over the run's total cost. The defaults therefore reproduce AA's cost per task by construction; what the view adds is where the money goes, and what each lever moves.
Across providers, index score against cost per task for every model with a published price (AA v4.3, read 1 October 2026) is on the Topic: llm-landscape root's Capability vs price tab. Google's 3.6 to 3.8 Flash prices double on 1 January 2027 and Argon's on 1 December 2026, so their cost per task doubles with no change to the models; each model is shown there at the effort AA benchmarks (3.8 Flash and Argon at high).
Every Gemma generation is distilled from Gemini research and spends its architectural effort on one question: what fits in the memory of one card or one phone. Gemma 1 (21 February 2024, 2B and 7B) started the line; Gemma 2 (27 June 2024; 2B, 9B, 27B) trained its 2B and 9B by knowledge distillation from a larger teacher rather than plain next-token prediction, and interleaved local and global attention layers one to one, which is why its small models competed with models two to three times their size (Wikipedia, Gemma 2 report). Gemma 3 (12 March 2025; 1B, 4B, 12B and 27B; 32K context on the 1B and 128K on the rest; image input through a 400M-parameter SigLIP encoder that turns an 896 by 896 image into 256 tokens) moved to the 5:1 layout below; Gemma 3n (full release 26 June 2025) added the phone tricks; Gemma 4 (2 April 2026) added a mixture of experts and Apache 2.0 (Gemma 3 report).
Gemma 4 came in four sizes, E2B, E4B, 26B A4B (a mixture of experts) and a dense 31B, joined on 3 June 2026 by a dense 12B Unified (Wikipedia). It is the first Gemma under Apache 2.0; earlier generations used Google's own Gemma terms, so this is the release that made Gemma unrestricted for commercial use. Google reports over 400 million Gemma downloads since the first generation; at launch the 31B ranked third among open models on the Arena text leaderboard and the 26B sixth (Google). From the model card and report (model card, Gemma 4 report):
| Model | Parameters | Layers | Window | Context | Input |
|---|---|---|---|---|---|
| E2B | 2.3B effective (5.1B with embeddings) | 35 | 512 | 128K | text, image, audio |
| E4B | 4.5B effective (8B with embeddings) | 42 | 512 | 128K | text, image, audio |
| 12B Unified | 11.95B | 48 | 1,024 | 256K | text, image, audio |
| 26B A4B | 25.2B total, 3.8B active | 30 | 1,024 | 256K | text, image |
| 31B | 30.7B | 60 | 1,024 | 256K | text, image |
<|think|> token switches on a reasoning channel in the output.A sliding-window ("local") layer only ever looks back W tokens, so its share of the KV cache stops growing at the window; a global layer keeps every token. Gemma's choice is the ratio: Gemma 2 alternated one to one with a 4,096-token window; Gemma 3 uses five local layers per global layer with a 1,024-token window, and Gemma 4 keeps 5:1 on every size except E2B (4:1), the final layer always global. The global layers use RoPE base 1,000,000 against 10,000 on the local ones, since only they see long distances (Gemma 3 report; RoPE bases on Positional encodings).
Gemma 3's report puts the cache's share of inference memory at about 60% for a global-only model against under 15% with sliding windows of 1,024, measured with a 32K-token prefill (Gemma 3 report). The cost is that most layers cannot see distant tokens directly and depend on the global layers to carry them. Sizing a cache for any model, Gemma presets included, is the Long context calculator's job; the same three contexts drawn in 3D, Gemma 3 27B's 62 layers each holding what one request keeps at 1,024, 8,192 and 131,072 tokens, are Fig. 8 of the LLM Architecture Gallery page, section 6.
For one sequence of T tokens:
Past T = W only the global term grows, so long-context memory is set almost entirely by the global layers.
Predict, then try: at 128K tokens, how much of Gemma 3 27B's cache do the 52 local layers hold? Each cell is one layer of the chosen model; global layers are dark. The default reproduces about 10.4 GiB of cache against 62 GiB if every layer were global. Move the context below 1,024 tokens: the two layouts cost the same. Switch to Gemma 4 31B to see wider global heads paid for by reusing keys as values.
Gemma 3 27B: 62 layers (52 local, 10 global), 16 KV heads of dimension 128, so 8 KiB per layer per token in bf16, the gallery's 496 KiB per token if no window were credited (gallery; LLM Architecture Gallery page). The middle option is illustrative: Gemma 3 27B's dimensions under Gemma 2's one-to-one layout with a 4,096 window. Gemma 4 31B from its config: 50 local layers with 16 KV heads of 256, 10 global layers with 4 KV heads of 512 and keys reused as values. GiB is 230 bytes.
Keys reused as values (on all but E2B and E4B) stores one vector per global head instead of two. p-RoPE applies rotary position to only a fraction p = 0.25 of each global head's dimensions (config: partial_rotary_factor 0.25, base 1,000,000 against 10,000 on local layers). The report says these, "combined with KV cache sharing and the reuse of keys as values in global layers ... reduce the global KV cache footprint by up to 37.5%" (Gemma 4 report), and does not show the arithmetic.
Our reconstruction (not Google's): if the rotated part of each key must be stored separately from the unrotated value, a global head stores the value (d) plus the rotated fraction of the key (p d) instead of key and value (2d), a saving of (1 − p) / 2. Move p: at 0.25 it lands on the report's figure; at 1 (ordinary RoPE) sharing saves nothing; at 0 it saves half.
The report's own memory table, and the gallery's 840 KiB per token for the 31B, count one stored vector per global head, a 50% cut; recomputed from the config that reproduces the table's 1.10 GB cache at 32K (see Gemma on one machine). So the two figures in the report imply slightly different accounting.
Gemma 3n introduced two ideas that make a large checkpoint behave like a small one on a phone (Gemma 3n docs, developer guide), and Gemma 4's E2B and E4B keep the naming. The first, Per-Layer Embeddings (PLE), is a choice about where parameters live, which Fig. 4 draws as two memory plates; heights are parameters to scale (E2B, E4B: model card).
Two more ideas make the small checkpoints smaller still:
num_kv_shared_layers in the configs). The shared layers keep no cache of their own, which is why E2B's 35 layers hold 15 caches; the stack is drawn layer by layer in Fig. 14 of the LLM Architecture Gallery page, section 10.Gemma 4 offers one quality band two ways, the 26B A4B mixture of experts (each token routed to 8 of 128 experts plus 1 shared) and the 31B dense model, and the choice is memory against compute: compute per token scales with the active parameters, F ≈ 2Nactive, while memory must hold every parameter. In Fig. 5 a tower's height is its weights in memory, from the Gemma 4 report's memory table (text only, KV cache in int8 at a 32K context, Gemma 4 report), and the glass plane is one card's memory.
So with memory to spare, the MoE generates far faster at a similar footprint: a bet that the memory-versus-compute trade favours sparsity even on one workstation. Gemma on one machine sets memory, context, precision, batch and chip; the routing mechanism and the general trade are on Mixture of experts.
T5Gemma (April 2025) and T5Gemma 2 (December 2025) are a research line rather than a product tier, and the only open encoder-decoder LLMs a frontier lab currently ships. The method is adaptation: copy a pretrained decoder-only Gemma checkpoint into an encoder-decoder shell (the encoder's self-attention switched from causal to bidirectional, the decoder gaining cross-attention over the encoder output) and continue pretraining, which is cheaper than pretraining from scratch and, above roughly 100M parameters, better. Two results carry beyond Gemma: asymmetric sizing (a 9B encoder with a 2B decoder runs at Gemma 2 2B's latency and scores clearly above it, the right shape for long-input, short-output work and impossible in a decoder-only model) and long context (T5Gemma 2 4B-4B scores 81.7 on RULER 32K against Gemma 3 4B's 66.8, despite pretraining at only 16K). The method, ablations and every number are on Encoder-Decoder Gemma and T5Gemma 2.
The first EmbeddingGemma is built on T5Gemma 2 checkpoints. EmbeddingGemma 2 (6 October 2026, 740M parameters, Apache 2.0) is described instead as built on the Gemma 4 architecture, and it embeds text, image, audio, video and code into one space: a 270M text path, with optional 170M vision and 300M audio encoders, 768 dimensions with Matryoshka truncation to 512, 256 or 128, and 8K tokens of context, four times the first version's. Google reports MTEB Code rising from 68.76 to 78.68 (Google).
Google's model cards name only its own hardware and software. Gemini 3 Pro was trained on TPUs with JAX (Python traced into XLA programs, sharding written as annotations on arrays) and ML Pathways (the orchestration layer that lets one program drive many TPU pods asynchronously) (model card). Gemini 2.5 trained with synchronous data parallelism across multiple 8,960-chip TPU v5p pods in several datacenters, and its slice-granularity elasticity kept about 97% of throughput through local failures by continuing on fewer slices (Gemini 2.5 report). Gemma 4 trained on TPU v6e (4,096 chips for E2B up to 10,240 for the 31B), the 12B on 12,288 TPU v4 chips (Gemma 4 report).
It buys freedom from GPU supply, pricing and allocation politics, and a pod interconnect built for exactly this collective pattern. It costs transferability: essentially none of the stack carries to an outside practitioner the way PyTorch, FSDP and NCCL do, and the work is correspondingly hard to reproduce. Since 2026 the dependency also runs outward: Ironwood, the seventh TPU generation, is the first Google sells for other companies' workloads, and Anthropic's deal for up to a million TPUs runs on it (TPUs: systolic arrays and pod-scale machines); Alphabet's Q2 2026 results say Google Cloud "generates product revenues primarily from the sale of TPU systems" (Alphabet Q2 2026). The software is on Topic: jax-and-tpu.
Eight of the 64 racks (64 chips each) of one 4,096-chip TPU v4 machine. Gemma 4 12B's 12,288 TPU v4 chips are three such machines, 192 racks (12,288 / 64). Photo: Norman P. Jouppi et al. (Google), "TPU v4", ISCA 2023, Figure 3, CC BY 4.0, arXiv:2304.01433. Chips and pods as hardware are on TPUs and other accelerators.
Trained in from the start rather than added as an adapter, since 1.0: text, images, audio and video become tokens in one sequence, trained jointly, rather than a separately trained vision encoder projected into a finished text model; images come out through integrated generation (the Nano Banana image models), all through one context window. Gemma 4's 12B Unified carries the idea to the open family. Where this sits among shallow, modular and unified designs is on Multimodal LLM Architectures.
The student matches the teacher's whole next-token distribution, not just the correct token (the method is on Distillation and small language models). Storing a full distribution over a vocabulary of about 262,000 tokens for every training token is too expensive, so Google keeps part of it: Gemini 2.5 approximates the teacher "using a k-sparse distribution over the vocabulary" (only the most likely tokens) (Gemini 2.5 report), and Gemma 3 samples 256 logits per token weighted by the teacher's probabilities, pretraining from 2T tokens for the 1B to 14T for the 27B (Gemma 3 report). Flash and below have been distilled this way since Gemini 1.5, and Gemma is the open end of the same pipeline, which is why the open models track the closed ones so closely in behaviour.
Try: how much teacher output one student run would have to store. The default is Gemma 3 27B's 14T tokens with 256 entries kept per token.
Vocabulary 262,144 entries. Bytes per entry are illustrative: 4 bytes per probability for the full distribution, 4 for the probability plus 4 for the token id when only k entries are kept. Google does not publish how it stores them.
Search (AI Overviews and AI Mode), Workspace, Android and Vertex all ship Gemini by default, and since September 2026 so does a rival's flagship surface: Apple's rebuilt Siri. Google supplies the assistant model on the phones it competes with: distribution bought rather than owned, and evidence that the training stack rather than the app is the durable asset.
The Gemini app had 950 million monthly active users, and Gemini models process 22 billion API tokens a minute, in Alphabet's Q2 2026 results (Alphabet Q2 2026). Earlier reporting gave 750 million at the end of 2025; that figure is not in the Q2 release and its source is not confirmed here. Apple's rebuilt Siri entered public beta on 14 September 2026 running on models "custom-built in collaboration with Google and its Gemini models", split between the device and Apple's Private Cloud Compute, with the EU excluded at launch and China awaiting regulatory approval (AI Weekly, citing Apple).
Standard paid-tier dollars per million tokens (pricing); thinking levels and defaults from the thinking guide. Batch costs half the standard rate on every model here, and Priority 1.8 times on most (3.8 Flash: $1.35 / $6.75 against $0.75 / $3.75). Output prices include thinking tokens.
| Model | Role | Status | Input / output | Thinking levels (default) |
|---|---|---|---|---|
| Gemini 4 Carbon | Google's strongest model: cyber defence, long-horizon work | Generally available to paying API and Gemini for business customers (since 10 November); Gemini app for AI Ultra; Fairwind for cyber defenders | $2 / $10 introductory through November, list $4 / $20; cached input 95% off; 1M context (Google, Artificial Analysis) | Not stated |
| Gemini 4 Neon | Between Hydrogen and Carbon, adapted from Carbon; Argon's replacement in the Gemini app | Generally available on the paid tier (since 18 November); Gemini app for AI Pro and Ultra; Neon for Cyber through Fairwind | $3 / $15; cached $0.15; 1M context (Google, model card) | low, medium, high, xhigh (high) |
| Gemini 4 Argon | Frontier: long-horizon coding, legal, finance, cyber defence | Generally available (paid tier only) | $2 / $10 introductory through November, list $4 / $20; cached $0.10, list $0.20 (API docs) | low, medium, high (medium) |
| Gemini 4 Hydrogen | The volume model for agentic work; Flash's successor | Generally available (since 12 November) | $1.50 / $7.50 at any context length; cached $0.075; Batch and Flex half (Google) | low, medium, high, xhigh (high) |
| Gemini 3.8 Flash | The previous volume model; more test-time compute per task by default | Stable | $0.75 / $3.75 introductory through 2026, list $1.50 / $7.50 | low, medium, high (medium) |
| Gemini 3.8 Flash Cyber | Vulnerability detection and remediation | Fairwind only | Not sold openly | Not stated |
| Gemini 3.7 Flash, 3.6 Flash | Previous Flash generations | Stable | Same as 3.8 Flash (3.6 launched at $1.50 / $7.50, Google) | 3.7: low, medium, high (medium); 3.6 adds minimal (medium) |
| Gemini 3.5 Flash | Legacy Flash for routine high-throughput work | Stable | $1.50 / $9.00 | minimal, low, medium, high (medium) |
| Gemini 3.1 Pro | The Pro tier: complex problems and agentic work | Preview | $2 / $12 up to 200K-token prompts, $4 / $18 above | low, medium, high (high) |
| Gemini 3.5 Flash-Lite | Fastest 3.5-class model | Stable | $0.30 / $2.50 | minimal, low, medium, high (minimal) |
| Gemini 3.1 Flash-Lite | Cheapest model open to new projects | Stable | $0.25 / $1.50 (audio input $0.50) | Not stated |
| Gemini 3.8 Live, Live Extended Thinking | Voice agents; Extended Thinking reasons and speaks at once | Stable | Text $0.75 / $4.50; audio $3.00 / $12.00 | Not stated |
| Gemini Decision 1 | Scores closed-set questions about one input, no text generation | Decisions API | $0.10 input, no output charge (Google) | Not applicable |
| Deep Think | Parallel test-time compute for the hardest problems | Gemini app mode, not an API model | Not stated | Not applicable |
| Gemma 4 (E2B, E4B, 12B, 26B A4B, 31B) | Open weights, Apache 2.0 | Downloadable; 26B and 31B also in the API | Free weights | <|think|> token switches it on |
The 3.x Flash, Flash-Lite and 3.1 Pro models take text, images, video, audio and PDF in a 1,048,576-token window and return up to 65,536 tokens. Cached input is a tenth of the input price on the Flash models ($0.075 on 3.8 Flash). The 2.5 models are still served but, since 18 September 2026, only to projects that already used them; new projects are pointed to 3.5 Flash-Lite or 3.8 Flash (release notes). The Flash list price rose more than threefold from 2.5 Flash ($0.30 / $2.50) to 3.5 Flash ($1.50 / $9.00) and has been discounted since only by the introductory rate: "cheap tier" is a position on the price list, not a price (pricing). Older models still on the pricing page: 2.5 Pro $1.25 / $10, 2.5 Flash-Lite $0.10 / $0.40, 3 Flash Preview $0.50 / $3.00.
Every API model has a code such as gemini-3.8-flash. Stable codes are pinned; preview codes can change and are deprecated with at least two weeks' notice (models page): gemini-3-pro-preview was shut down on 9 March 2026 and now points to gemini-3.1-pro-preview (release notes). The latest aliases (gemini-flash-latest, gemini-pro-latest) follow the newest release and may break with two weeks' notice.
| Need | Use |
|---|---|
| Most production traffic, agents and coding on a budget | Gemini 4 Hydrogen, Google's recommended upgrade from 3.8 Flash, at its default high level; lower levels for extraction and classification. 3.8 Flash at medium stays cheaper per token while its introductory price lasts. Measure cost per task, not per token, and cache repeated context. |
| Highest volume, latency-bound (routing, tagging, short extraction) | 3.1 Flash-Lite, the cheapest, or 3.5 Flash-Lite where you want the minimal level and faster output. |
| The hardest reasoning through the open API | Gemini 4 Neon at xhigh (61 on Intelligence Index v5.0.1 at $6.44 per index task) or Carbon (60 at high, $7.76); Argon, which Google recommended at Carbon's launch as the default for most coding and office work, scores 50 at high, below Hydrogen's 51 at the same level; read 23 November 2026 (Artificial Analysis). Neon is the most verbose of the three on the index, so compare cost per task, not per token. On the older v4.3 scale 3.1 Pro's 29.7 sat below 3.8 Flash at high (40.9): the Pro tier by name is still a preview (3.1 Pro). |
| Long video, long audio or a stack of PDFs | Any 3.x model's 1M window; work out the token count first and keep media resolution at the default unless fine detail matters. |
| Voice agents | 3.8 Live, or Live Extended Thinking when the agent must reason and call tools mid-conversation. |
| Vulnerability work | Gemini 4 Carbon or 3.8 Flash Cyber, both through the Fairwind Program. |
| Open weights on your own hardware | Gemma 4 26B A4B for speed when memory allows, 31B dense for the strongest single model, 12B Unified for a 16 GB laptop, E2B or E4B on a phone. |
| Long input, short output, open weights | A T5Gemma 2 encoder-decoder. |
thinking_budget belongs to an API that has moved.A calculator for the Reading tab's sparse against dense choice. What a Gemma model needs in memory is weights plus KV cache; what it needs per generated token is arithmetic (set by active parameters) and memory reads (active weights plus the cache). This tab computes all three from the report's memory table and each model's configuration, then follows decode speed past batch 1: batching, where the MoE's advantage shrinks, and speculative decoding with the built-in drafter.
Try: the defaults reproduce the report's 24 GB story: at 4 bits both the 26B MoE and the 31B dense fit, the MoE with room to spare. Drop the budget to 16 GB: only the 12B fits. Raise the context to 256K and watch the 31B's cache grow past 10 GB in bf16 while the MoE's stays near 3. Turn keys-as-values off to see what it saves.
Weights from the Gemma 4 report's memory table (text only; bf16 and Q4_0; the MoE's active weights 7.6 GB and 2.8 GB) (Gemma 4 report). Cache from each configuration (31B, 26B A4B, 12B): 31B 50 local layers × 16 KV heads × 256 and 10 global × 4 × 512; 26B A4B 25 local × 8 × 256 and 5 global × 2 × 512; 12B 40 local × 8 × 256 and 8 global × 1 × 512; windows 1,024. Gemma 3 27B as on the Reading tab (cache only; its weights are not in this table). The decode ceiling is bandwidth divided by bytes read per token, an upper bound at batch 1 that ignores compute and overheads (the batch roofline below adds both batching and compute). The edge models are left out: their cross-layer cache sharing does not reproduce the report's 0.05 and 0.14 GB from the configs. GB is 109 bytes, GiB 230.
The decode ceiling above is for one sequence. A server decodes a batch of B sequences per step: the weights are read once for the whole batch, the arithmetic grows with B, and each sequence still reads its own cache. The Scaling Book's general step time (Scaling Book, inference; the roofline itself is taught on Performance math):
Pshared and Pexpert are back-solved from the report's two MoE figures, 52.0 GB resident and 7.6 GB active in bf16 (16.2 and 2.8 GB at Q4_0) (Gemma 4 report): 120 Pexpert = 52.0 − 7.6, so Pexpert = 0.37 GB and Pshared = 7.6 − 8 × 0.37 = 4.64 GB. P(1) = 7.6 GB and P(∞) = 52.0 GB therefore hold by construction.
Try: the defaults are TPU v5e, bf16 and a batch of 32. Under uniform routing those 32 tokens already touch 87% of the experts, so the MoE reads 46 GB of weights per step, not 7.6, and its lead over the 31B shrinks from about 8 times at batch 1 to under 2. Slide the batch up: the 31B turns compute-bound near 250, the MoE only near 1,640, and at that point its 8 times smaller arithmetic is what counts again. Switch to Ironwood to see the crossover move.
Chip peaks: TPU v5e 1.97 × 1014 FLOP/s bf16 and 8.2 × 1011 bytes/s (Scaling Book, TPUs); v6e 918 TFLOP/s and 1,638 GB/s (Cloud TPU v6e); Ironwood 2,307 TFLOP/s bf16 and 7,380 GB/s (Cloud TPU7x). The Scaling Book states Bcrit = 240 for bf16 on v5e, and for an MoE scales it by E/k (its example: 240 × 16 / 2 = 1,920) (Scaling Book, inference); with Gemma's 128 / 8 that rule would give 3,840, but Gemma's shared layers make the resident-to-active ratio 52.0 / 7.6 rather than 16, so the crossover here is lower. Routing: 8 of 128 experts plus 1 shared, 3.8B and 30.7B active (Gemma 4 report, model card). One chip, peak rates, no overheads, and memory capacity ignored: on n chips F and W both scale by n, so Bcrit is unchanged. The report's 64.0 GB for the 31B is 2.08 bytes per active parameter, which is why its crossover is 250 rather than exactly 240.
Every Gemma 4 model ships a small drafter, a 4-layer Transformer that cross-attends to the main model's KV cache (76M parameters on E2B, 77M on E4B, 400M on the 12B, 430M on 26B A4B, 500M on the 31B; Gemma 4 report). The drafter proposes γ tokens; the target model checks all of them in one forward pass, keeps the longest prefix it agrees with, and adds one token of its own. The output distribution is exactly the target's (Leviathan et al., Hugging Face). The mechanism, its exactness proof and the batch-size crossover are taught on Speculative decoding; this section applies them to Gemma's drafter. With an acceptance rate α per drafted token and a drafter that costs c of a target pass (Leviathan et al., Equation 1 and Theorem 3.8):
The speed-up assumes the target can check γ + 1 positions for the price of one, which holds while decoding is memory-bound: at small batches, the left of the roofline above. The paper's Corollary 3.9: some γ gives a speed-up whenever α > c.
Try: the defaults are the first row of the paper's Table 4 (T5-XXL drafted by T5-small, translation, greedy), and the formula gives 3.16 against the paper's 3.2. Pick other rows: all twelve land within 0.1 (the full table is in the closed block below). Then pick the Gemma 4 preset: Google gives no acceptance rate, and "up to ~3x" needs α of about 0.77 at γ = 4 (fitted, and only if the assumed γ and c are right). Raise γ and watch the speed-up peak and then fall as the drafts that get thrown away cost more than they save.
Each drafted token is accepted with probability α until the first rejection; the target then adds one token (a correction after a rejection, a bonus if all γ were accepted). Seeded, so the same settings always draw the same strip.
Table 4 rows (task, drafter, temperature, γ, α, c and the expected and measured factors) from Leviathan et al. (2023), appendix A.3: target T5-XXL (11B), drafters T5-small (77M), T5-base (250M) and T5-large (800M), batch 1 on one TPU-v4; c was estimated from profiler traces. Google's retrospective gives T5-small as 60M parameters; the paper's 77M is used here. The same retrospective says speculative decoding serves AI Overviews in Search. Gemma 4: "Reported end-to-end speedups go up to ~3x depending on hardware, batch size, and workload" (Hugging Face). Google publishes neither α nor γ for Gemma, so the preset's γ = 4 and c = 0.5B / 30.7B (the drafter's parameters over the 31B's active, illustrative) are assumptions, and α is fitted to 3.0.
Everything this page builds on, and the best places to go deeper. Links open in a new tab, with reading times. The external resources total about 10h 15m.
The parent: every lab on one map, where Google's bets (parallel test-time compute, TPU training, native multimodality) sit against the others. (25 min, plus 5 · +6h 27m resources)
Serial, parallel and adaptive ways of spending test-time compute, the selectors that make Deep Think-style parallel sampling work, and the history of thinking budgets and levels. (29 min, plus 7)
How a router picks experts and why total and active parameters differ: the mechanism behind Gemini since 1.5 and Gemma 4 26B A4B. (35 min, plus 21 · +3h 25m resources)
Draft and verify, why the output is exact, MTP drafters shipped inside checkpoints, and the batch-size crossover: the mechanism behind Gemma 4's drafter.
KV-cache sizing for any model, with Gemma 3 27B among the calculator's presets, and the evidence on local and global layers.
Logit distillation, Gemma 2 and 3's sampled teacher logits, and what makes a good small model.
RoPE bases, partial rotary embeddings and Gemma 4's proportional RoPE on its global layers.
Sliding-window and global layers in general, with the Gemma 3 27B cache computed layer by layer, and every other attention variant. (28 min read · +2h resources)
The T5Gemma adaptation recipe, its ablations and results. (23 min read · +2h 35m resources)
Shallow, modular and unified multimodality: the spectrum on which Gemini sits at the unified end. (37 min read · +3h 10m resources)
Gemini CLI, Antigravity and Jules, Google's agent harnesses. (30 min read)
JAX, XLA and sharding: the software Gemini trains with. (32 min read · +9h 15m resources)
The TPU generations, pods and Ironwood. (39 min, plus 7 · +3h 15m resources)
One of the two closed families Gemini competes with: pricing and adaptive thinking side by side. (21 min, plus 15 · +2h 37m resources)
The other: GPT pricing and reasoning controls. (29 min, plus 23 · +3h 30m resources)
The audio side of voice models such as 3.8 Live. (25 min, plus 2 · +9h 10m resources)
The authoritative dated model list, including quiet capability changes, deprecations and shutdowns that never get a blog post. (docs, ~15 min for the entries in scope)
The per-model table of thinking levels and defaults, billing, and thought signatures. (docs, ~10 min)
The long-context MoE design notes, still the most architectural detail Google has published for a Gemini model. (~1h 30m)
The open family's current architecture: keys as values, p-RoPE, the encoder-free 12B and the memory table. (~1h)
A well-maintained lineage overview, the fastest way to reconstruct what shipped when. (~20 min)
The 5:1 sliding-window ratio, its ablations and the distillation recipe: what Google believes about attention layouts. (~1h)
The last Gemini report with training detail: TPU v5p pods, k-sparse distillation, video tokens per frame. (~1h)
Open-family lineage. (~10 min)
The tokens per image, frame, audio second and PDF page at each resolution, the numbers behind the window calculator. (docs, ~5 min)
Standard, batch, priority and cache prices for every model, with the introductory rates. (docs, ~10 min)
Sizes, layers, windows, modalities and the benchmark table for every Gemma 4 size. (docs, ~15 min)
Fact sheets for Gemma 3 and 4 beside 100 other open models, with KV-cache bytes per token. (reference, ~45 min first pass)
The JAX team's chapter on decode as a roofline: the step-time formula, the critical batch of 240 on TPU v5e and the E/k rule for MoE, behind the batch roofline on Gemma on one machine. (~1h 15m)
The chip table (FLOP/s and HBM bandwidth per generation) and why F / W sets where a matmul turns compute-bound. (~45 min)
The draft-and-verify algorithm, the proof that the output distribution is unchanged, and Table 4, which the speculative decoding view recomputes. (~45 min)
The authors' 2024 retrospective, with the accepted and rejected token animation and its use in AI Overviews. (~10 min)
The launch walkthrough: the MTP assistants for every size and the "up to ~3x" speed-up claim. (~20 min)
Per-chip peak compute and HBM bandwidth, the inputs to the roofline's chip presets. (docs, ~10 min)
The Intelligence Index, cost per task and tokens per run behind the "works harder" section and its one-task widget. (~10 min)