Gemini 4 Carbon context

Gemini 4 Carbon context window.
One million tokens in.

$4.00 in / $20.00 out per 1M · 1.05M context

Google's Gemini API reports an input limit of 1,048,576 tokens and an output limit of 32,768 tokens for gemini-4-carbon. That is enough for a large codebase or a stack of contracts in one request.

modelgoogle/gemini-4-carbonGet a key
Limits

What fits. In one request.

Limits as reported by the Gemini API model metadata for gemini-4-carbon.

TokensRoughly
Input1,048,576About 750,000 English words, or a large codebase
Output32,768About 24,000 words per response
Cost

Filling the window. Input side only.

At Utopixel's price today and at Google's list price from December 1. Cached input is 95% off.

Prompt sizeTodayFrom Dec 1Cached, from Dec 1
100,000 tokens$0.40$0.40$0.02
250,000 tokens$1.00$1.00$0.05
500,000 tokens$2.00$2.00$0.10
1,000,000 tokens$4.00$4.00$0.20
Speed

Long prompts take time.

Measured by Artificial Analysis at high reasoning on its standard test, read on November 11, 2026: Artificial Analysis: Gemini 4 Carbon.

MetricGemini 4 Carbon
Time to first answer token66.85 s
Output speed80 tokens per second
Q1How big is the Gemini 4 Carbon context window?
1,048,576 input tokens and 32,768 output tokens, as reported by the Gemini API model metadata for gemini-4-carbon.
Q2What does a full 1M token prompt cost?
About $2 of input at Google's introductory price, $4 from December 1, 2026, plus output. Repeated prompts that hit the cache cost 95% less on the cached part.
Q3Is a long prompt slower?
Yes. Artificial Analysis measured about 66.85 seconds to the first answer token for Carbon at high reasoning on its standard test, and 80 tokens per second of output. Long prompts and heavy reasoning add more.

Start building in minutes.

One API key for the models of OpenAI, Google, DeepSeek, Moonshot AI, Qwen, xAI, Z.ai, Meta, Amazon, AionLabs, Anthropic, Baidu, ByteDance Seed, Cohere, Elorian, Fireworks AI, IBM, inclusionAI, Inference.net, KT, Liquid AI, Meituan, Meta, MiniMax, Mistral AI, Moondream, Motif Technologies, Nex AGI, NVIDIA, Particle AI, Perceptron, Prism ML, Reflection AI, Reka, Relace, Ricursive AI, Sakana AI, StepFun, Tencent, Thinking Machines, Unbiased, Upstage, Writer and Xiaomi. Start free, no card needed.