Gemini 4 Hydrogen from Google is now available on AI Gateway.
Gemini 4 Hydrogen succeeds Gemini 3.8 Flash, improving agentic coding, knowledge work, and tool use while staying in the same latency class. It handles longer engineering tasks and produces better-researched documents, spreadsheets, and presentations in fewer agent steps.
Hydrogen follows system instructions, formatting requirements, and task boundaries more closely, with more reliable tool orchestration across long conversations. Improvements in visual reasoning and technical problem-solving support multimodal workflows, while stronger grounding reduces unsupported claims in search-backed answers and invented tool or test results in coding reports.
Use google/gemini-4-hydrogen as the model name:
import { streamText } from 'ai';
const result = streamText({ model: 'google/gemini-4-hydrogen', prompt: 'Write a TypeScript retry helper with exponential backoff and jitter.',});
for await (const text of result.textStream) { process.stdout.write(text);}To use it in Claude Code, Codex, Cursor, and more, install the latest Vercel CLI and run setup:
npx vercel ai-gateway setupThen select google/gemini-4-hydrogen in the agent. See the coding agents guide for details.
Try Gemini 4 Hydrogen in the model playground.
AI Gateway provides a unified API for calling models, tracking usage and cost, and configuring retries, failover, and performance optimizations for higher-than-provider uptime. It includes built-in custom reporting, Zero Data Retention support, budgets for API keys, routing rules, and more.
AI Gateway reflects provider pricing with no markup and does not charge a platform fee on inference, including on Bring Your Own Key (BYOK) requests.
You can view all language models available on AI Gateway.