Independent unofficial site. Not affiliated with Google, Google DeepMind, or Alphabet. Gemini is a trademark of Google.
The Hydrogen Brief An independent, unofficial guide EN · 中文

Gemini 4 context window: how many tokens, and what counts

Short answer: every Gemini 4 model in the Gemini API (Carbon, Neon, Argon, Hydrogen) has a 1M-token context window, exactly 1,048,576 tokens, and it is shared by input, thinking and output. Default max output is 64K; with long decode a model can write up to 1M tokens, minus whatever your input used. In Google Antigravity, Neon is capped at 512K.

Source: Google AI Studio / Gemini API docs, Retrieved 20 November 2026 · Source: Google AI Studio / Gemini API docs, Retrieved 20 November 2026 · Source: Google Antigravity Docs, Checked 20 November 2026

Gemini API Models page and Long context page; Antigravity “Choose a model” docs (all checked 20 Nov 2026).
ModelAPI model codeContext windowMax output
Gemini 4 Carbongemini-4-carbon1M (1,048,576)64K default / up to 1M with long decode
Gemini 4 Neongemini-4-neon1M (1,048,576)64K default / up to 1M with long decode
Gemini 4 Argongemini-4-argon1M (1,048,576)64K default / up to 1M with long decode
Gemini 4 Hydrogengemini-4-hydrogen1M (1,048,576)64K default / up to 1M with long decode
Gemini 4 Neon in Antigravity—Up to 512K—

What changed from Gemini 3

Google's long-context page: in Gemini 4 “the 1M-token context window is shared across input, thinking, and output tokens… Earlier Gemini 3 and 2.5 models use separate 1M input and 64K output budgets.” If input tokens plus max_output_tokens exceed 1,048,576, the API automatically caps output to what is left.

Source: Google AI Studio / Gemini API docs, Retrieved 20 November 2026

What 1M tokens holds (Google's examples)

Source: Google AI Studio / Gemini API docs, Retrieved 20 November 2026

Practical notes

Source: Google AI Studio / Gemini API docs, Retrieved 20 November 2026 · Source: Google AI Studio / Gemini API docs, Retrieved 20 November 2026

Quick answers

What is the Gemini 4 Argon context window?

1M tokens (1,048,576), the same as Carbon, Neon and Hydrogen, per Google's Models page.

Is the Gemini 4 context window 2M?

No. Google lists 1M for all four Gemini 4 models as of 20 Nov 2026.

What about the Gemini app?

This page covers the API and Antigravity. Google's app plans describe limits separately; we haven't found a Gemini 4-specific app context figure on Google's plan pages.

Related Gemini 4 in Antigravity Rate limits Krypton: status Which Gemini 4 model am I getting? Carbon/Argon price from 1 Dec Errors & limits Pricing