Gemini 4 Model Guide: Neon, Carbon, Hydrogen and the Argon Deprecation
Compare Gemini 4 Neon, Carbon and Hydrogen with prices, 1M context. Argon is deprecated and routes to Carbon from 2026-12-15.
Gemini 4 Structured JSON Client
examples/gemini4-structured-client.ts
import { GoogleGenAI } from '@google/genai';
const ai = new GoogleGenAI({ apiKey: process.env.GEMINI_API_KEY });
async function generateWithGemini4() {
// Ingest repository context into Gemini 4 Neon or Carbon
const response = await ai.models.generateContent({
model: 'gemini-4-neon',
contents: 'Profile and refactor high-concurrency distributed cache lock contention and fix race conditions...',
config: { responseMimeType: 'application/json' }
});
console.log('Final output:', response.text);
}
generateWithGemini4();
Deprecation notice (verified 2026-12-05): Google has deprecated
gemini-4-argon. From December 15, 2026, API requests to it route automatically togemini-4-carbonand bill at Carbon rates ($4.00 / $20.00). Update your model string togemini-4-carbon, or usegemini-4-neonfor faster responses and lower per-turn token spend.
The Gemini 4 Family at a Glance
All Gemini 4 text models share a unified 1M-token (1,048,576) context window and support long-decode output of up to 1M tokens; the default synchronous output ceiling is 65,536 tokens. Reasoning tokens are billed as output. The matrix below uses the Gemini Developer API standard tier (prices per 1M tokens, verified 2026-12-05 on the official pricing page).
| Dimension | Gemini 4 Carbon | Gemini 4 Neon | Gemini 4 Hydrogen | Gemini 3.8 Flash |
|---|---|---|---|---|
| Positioning (Google) | Most capable reasoning model: complex software engineering, deep math and science, factual accuracy, autonomous agents | Frontier-level intelligence with fast end-to-end task completion | Speed and efficiency for everyday coding and agentic workflows | Most intelligent Flash model for long-horizon engineering and agents |
| Context window | 1,048,576 | 1,048,576 | 1,048,576 | 1,048,576 |
| Input / Output | $4.00 / $20.00 | $3.00 / $15.00 | $1.50 / $7.50 | $0.75 / $3.75 through 2026-12-31, then $1.50 / $7.50 |
| Cached input | $0.20 | $0.15 | $0.075 | $0.075 through 2026-12-31, then $0.15 |
| Batch / Flex | $2.00 / $10.00 | $1.50 / $7.50 | $0.75 / $3.75 | $0.375 / $1.875 through 2026-12-31 |
| Free tier | No | No | Yes | Yes |
| Antigravity role | Long-horizon, hardest tasks | Default since 2026-11-18 | Executor in Orchestrator mode | Available in the model picker |
Carbon and Argon moved to $4.00 / $20.00 on 2026-12-01 (previously $2.00 / $10.00). Gemini 4 models support implicit caching only; there is no explicit cache storage fee, and the reusable prefix needs to reach 4,096 tokens for implicit caching to apply. This guide runs no benchmarks of its own, so it makes no leaderboard claims.
Choosing a Model
Production task
|
|-- Hardest reasoning, security-sensitive refactors, long-horizon agents --> Gemini 4 Carbon
|-- Everyday agentic coding and daily driver in Antigravity ---------------> Gemini 4 Neon
|-- High-volume, latency- and cost-sensitive coding or tagging ------------> Gemini 4 Hydrogen
|-- Cheapest Flash-class option (intro price ends 2026-12-31) -------------> Gemini 3.8 Flash
|-- Gemini 1.5 Pro / Flash and other old models ---------------------------> Migrate
- Neon vs Carbon: Neon costs 25% less per token than Carbon and Google positions it for faster completion with lower per-turn token spend; step up to Carbon when Neon’s results fall short on the hardest problems.
- Hydrogen: half the price of Neon, with a free tier and a Contributor Tier private preview (invite-only, discounted rates in exchange for data sharing).
- Gemini 3.8 Flash: the introductory $0.75 / $3.75 doubles on 2027-01-01, so re-run your cost estimates before the new year in the Model Lab calculator.
Calling a Gemini 4 Model
curl -X POST "https://generativelanguage.googleapis.com/v1beta/models/gemini-4-neon:generateContent" \
-H "x-goog-api-key: ${GEMINI_API_KEY}" \
-H "Content-Type: application/json" \
-d '{"contents": [{"parts": [{"text": "Generate a jq command to filter HTTP 502 status codes from access.log"}]}]}'
Swap gemini-4-neon for gemini-4-carbon or gemini-4-hydrogen to change tier. Check the official thinking documentation for each model’s supported reasoning-level settings before tuning them, because Gemini 3.8 Flash accepts low, medium and high and rejects minimal.
Related: Gemini 4 engineering guide · Model Lab calculator