{"id":463,"date":"2026-11-13T08:34:45","date_gmt":"2026-11-13T00:34:45","guid":{"rendered":"https:\/\/qoraapi.com\/blog\/gemini-4-hydrogen-api\/"},"modified":"2026-11-19T08:31:30","modified_gmt":"2026-11-19T00:31:30","slug":"gemini-4-hydrogen-api","status":"publish","type":"post","link":"https:\/\/qoraapi.com\/blog\/gemini-4-hydrogen-api\/","title":{"rendered":"Gemini 4 Hydrogen API: Pricing, Model ID &#038; vs 3.8 Flash (2026)"},"content":{"rendered":"<p><strong>Short answer:<\/strong> Gemini 4 Hydrogen is Google&#8217;s fast Gemini 4 model for everyday coding and agentic work, released on November 12, 2026. Its API model ID is <code>gemini-4-hydrogen<\/code>, and as of November 13, 2026 it costs <strong>$1.50 per 1M input tokens and $7.50 per 1M output tokens<\/strong> on Google&#8217;s paid tier (cached input $0.075), with a rate-limited free tier. It has a 1,048,576-token context window and four thinking levels: <code>low<\/code>, <code>medium<\/code>, <code>high<\/code> (default) and the new <code>xhigh<\/code>.<\/p>\n<p>This guide covers what Hydrogen actually costs once thinking tokens are counted, how it compares with Gemini 3.8 Flash, Gemini 4 Argon and Gemini 4 Carbon, what breaks when you migrate, and how to call it with the OpenAI SDK you already use. All official figures come from Google&#8217;s <a href=\"https:\/\/ai.google.dev\/gemini-api\/docs\/pricing\" rel=\"noopener\" target=\"_blank\">Gemini API pricing page<\/a> and the <a href=\"https:\/\/aistudio.google.com\/docs\/whats-new-gemini-4-hydrogen\" rel=\"noopener\" target=\"_blank\">What&#8217;s new in Gemini 4 Hydrogen<\/a> guide, both checked November 13, 2026.<\/p>\n<h2>What is Gemini 4 Hydrogen?<\/h2>\n<p>Gemini 4 Hydrogen is the third model in Google&#8217;s Gemini 4 family, after Gemini 4 Argon (October 13, 2026) and Gemini 4 Carbon (generally available November 10, 2026). Google <a href=\"https:\/\/blog.google\/innovation-and-ai\/technology\/developers-tools\/build-with-gemini-4-hydrogen\/\" rel=\"noopener\" target=\"_blank\">announced it on November 12, 2026<\/a> as the model that &#8220;brings cutting-edge intelligence to everyone&#8221;: it is on the free and paid tiers of the Gemini API, in Google AI Studio, in the Gemini app for AI Pro and Ultra subscribers, and it is now the default model in Google Search AI Mode.<\/p>\n<p>Google drops the &#8220;Flash&#8221; name here, but Hydrogen is the successor to Gemini 3.8 Flash. Google&#8217;s docs call it the &#8220;recommended upgrade from Gemini 3.8 Flash and earlier Gemini 3 and 2.5 models&#8221;. What Google says is new:<\/p>\n<ul>\n<li><strong>Fewer fabricated claims:<\/strong> more than 5x fewer than Gemini 3.8 Flash, because it flags missing context instead of guessing.<\/li>\n<li><strong>Better agent behaviour:<\/strong> it batches read and search tool calls in parallel and recovers better when a tool call fails.<\/li>\n<li><strong>Stronger than Argon on one index:<\/strong> 51 on the Artificial Analysis Intelligence Index at its default <code>high<\/code> level, versus 50 for Argon, and 54 at <code>xhigh<\/code>.<\/li>\n<li><strong>A fourth thinking level, <code>xhigh<\/code>,<\/strong> for hard multi-step problems.<\/li>\n<li><strong>Unified 1M context and long decode:<\/strong> input, thinking and output share 1,048,576 tokens, and output can run past 64K with background execution.<\/li>\n<\/ul>\n<h2>Gemini 4 Hydrogen API pricing<\/h2>\n<p>Hydrogen has one flat price across the whole 1M context window; there is no long-prompt surcharge.<\/p>\n<table>\n<thead>\n<tr>\n<th>Tier<\/th>\n<th>Input \/ 1M tokens<\/th>\n<th>Cached input \/ 1M<\/th>\n<th>Output \/ 1M (incl. thinking)<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Paid tier (standard)<\/td>\n<td>$1.50<\/td>\n<td>$0.075<\/td>\n<td>$7.50<\/td>\n<\/tr>\n<tr>\n<td>Free tier<\/td>\n<td>Free, rate-limited<\/td>\n<td>Free<\/td>\n<td>Free<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Three details change the real bill:<\/p>\n<ul>\n<li><strong>Thinking tokens are output tokens.<\/strong> Hydrogen defaults to <code>high<\/code> thinking, so a short answer can still bill thousands of output tokens. Google says it counts every token the model processes, including internal grounding instructions and function declarations.<\/li>\n<li><strong>Caching is implicit only.<\/strong> Prompts of at least 4,096 tokens get a 95% discount on cache hits automatically; explicit <code>cachedContents<\/code> is not supported.<\/li>\n<li><strong>The free tier trains on your data.<\/strong> Google&#8217;s pricing page marks free-tier content as used to improve its products; paid-tier content is not. Keep production and customer data on paid access.<\/li>\n<\/ul>\n<p>Search grounding is billed separately: 5,000 free search requests a month shared across Gemini 3 and newer models, then $14 per 1,000.<\/p>\n<h2>Gemini 4 Hydrogen vs Gemini 3.8 Flash<\/h2>\n<p>This is the comparison most people are searching for, and the answer depends on the date.<\/p>\n<table>\n<thead>\n<tr>\n<th><\/th>\n<th>Gemini 4 Hydrogen<\/th>\n<th>Gemini 3.8 Flash<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Model ID<\/td>\n<td><code>gemini-4-hydrogen<\/code><\/td>\n<td><code>gemini-3.8-flash<\/code><\/td>\n<\/tr>\n<tr>\n<td>Official price until Dec 31, 2026<\/td>\n<td>$1.50 \/ $7.50<\/td>\n<td>$0.75 \/ $3.75<\/td>\n<\/tr>\n<tr>\n<td>Official price from Jan 1, 2027<\/td>\n<td>$1.50 \/ $7.50<\/td>\n<td>$1.50 \/ $7.50<\/td>\n<\/tr>\n<tr>\n<td>Context<\/td>\n<td>1,048,576 tokens shared by input, thinking and output<\/td>\n<td>1M input plus a separate 64K output budget<\/td>\n<\/tr>\n<tr>\n<td>Default thinking<\/td>\n<td><code>high<\/code> (adds <code>xhigh<\/code>, rejects <code>minimal<\/code>)<\/td>\n<td><code>medium<\/code><\/td>\n<\/tr>\n<tr>\n<td>Qora API price<\/td>\n<td>See <a href=\"https:\/\/qoraapi.com\/pricing\">live price<\/a><\/td>\n<td>$0.15 \/ $0.90<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Until the end of 2026, Gemini 3.8 Flash is half the price of Hydrogen at Google. On January 1, 2027 Google doubles 3.8 Flash to $1.50 \/ $7.50, the same as Hydrogen, so from then on there is little reason to stay on 3.8 Flash at Google&#8217;s price. On Qora API, 3.8 Flash is still $0.15 \/ $0.90 per 1M tokens (checked November 13, 2026), which keeps it the budget choice for high-volume work that does not need Hydrogen&#8217;s extra reasoning.<\/p>\n<h2>Gemini 4 Hydrogen vs Argon vs Carbon<\/h2>\n<table>\n<thead>\n<tr>\n<th><\/th>\n<th>Hydrogen<\/th>\n<th>Argon<\/th>\n<th>Carbon<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Google&#8217;s positioning<\/td>\n<td>Fast everyday coding, tool-using agents, documents, parallel subagents<\/td>\n<td>Most advanced long-horizon tasks with fewer tokens than Carbon<\/td>\n<td>Hardest debugging, architecture, science and security audits<\/td>\n<\/tr>\n<tr>\n<td>Thinking levels<\/td>\n<td>low \/ medium \/ high (default) \/ xhigh<\/td>\n<td>low \/ medium (default) \/ high<\/td>\n<td>low \/ medium (default) \/ high<\/td>\n<\/tr>\n<tr>\n<td>Official price<\/td>\n<td>$1.50 \/ $7.50<\/td>\n<td>$2 \/ $10 until Nov 30; $4 \/ $20 from Dec 1<\/td>\n<td>$2 \/ $10 until Nov 30; $4 \/ $20 from Dec 1<\/td>\n<\/tr>\n<tr>\n<td>Free tier<\/td>\n<td>Yes<\/td>\n<td>No<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td>Qora API price (checked Nov 13, 2026)<\/td>\n<td>See <a href=\"https:\/\/qoraapi.com\/pricing\">live price<\/a><\/td>\n<td>$0.60 \/ $3.00<\/td>\n<td>$1.00 \/ $5.00<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>At Google&#8217;s list prices, Hydrogen is the cheapest Gemini 4 model, and the gap grows on December 1 when Argon and Carbon double. On Qora API the order flips: <a href=\"https:\/\/qoraapi.com\/models\/gemini-4-argon-api\">Gemini 4 Argon<\/a> at $0.60 \/ $3.00 per 1M tokens costs less than Hydrogen&#8217;s official $1.50 \/ $7.50, for a model that scores within one point of it on the Artificial Analysis index. If you are price-sensitive and do not need the free tier or <code>xhigh<\/code>, that is worth testing.<\/p>\n<p>Google&#8217;s suggested pattern for large jobs is to combine them: let Carbon plan and verify, and send code edits, test runs and parallel subtasks to Hydrogen.<\/p>\n<h2>How much does Gemini 4 Hydrogen cost per month?<\/h2>\n<p>A worked example: a coding agent that sends 30M input tokens and receives 6M output tokens a month (thinking included), with no cache hits.<\/p>\n<table>\n<thead>\n<tr>\n<th>Model and price<\/th>\n<th>Monthly cost<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Gemini 4 Hydrogen, Google paid tier ($1.50 \/ $7.50)<\/td>\n<td>$90.00<\/td>\n<\/tr>\n<tr>\n<td>Gemini 3.8 Flash, Google, until Dec 31 ($0.75 \/ $3.75)<\/td>\n<td>$45.00<\/td>\n<\/tr>\n<tr>\n<td>Gemini 3.8 Flash, Google, from Jan 1, 2027 ($1.50 \/ $7.50)<\/td>\n<td>$90.00<\/td>\n<\/tr>\n<tr>\n<td>Gemini 4 Argon, Google, from Dec 1 ($4 \/ $20)<\/td>\n<td>$240.00<\/td>\n<\/tr>\n<tr>\n<td>Gemini 4 Argon on Qora API ($0.60 \/ $3.00)<\/td>\n<td>$36.00<\/td>\n<\/tr>\n<tr>\n<td>Gemini 3.8 Flash on Qora API ($0.15 \/ $0.90)<\/td>\n<td>$9.90<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The easiest lever on Hydrogen itself is the thinking level. Google&#8217;s own guidance: start at <code>high<\/code>, reserve <code>xhigh<\/code> for problems where <code>high<\/code> falls short, and use <code>medium<\/code> or <code>low<\/code> for chat, UI prototyping and high-throughput processing. Run your evals at each level and keep the lowest one that passes.<\/p>\n<h2>How do I call the Gemini 4 Hydrogen API with the OpenAI SDK?<\/h2>\n<p>Through an OpenAI-compatible gateway you keep your existing OpenAI code and change three values: base URL, API key and model name. With Qora API the base URL is <code>https:\/\/qoraapi.com\/v1<\/code>; check <a href=\"https:\/\/qoraapi.com\/pricing\">qoraapi.com\/pricing<\/a> for <code>gemini-4-hydrogen<\/code> before switching production traffic.<\/p>\n<h3>Python<\/h3>\n<pre><code>from openai import OpenAI\n\nclient = OpenAI(\n    base_url=\"https:\/\/qoraapi.com\/v1\",\n    api_key=\"YOUR_QORA_KEY\",\n    timeout=600,  # high\/xhigh thinking can take minutes on hard prompts\n)\n\nresp = client.chat.completions.create(\n    model=\"gemini-4-hydrogen\",\n    messages=[\n        {\"role\": \"system\", \"content\": \"You are a senior Python reviewer.\"},\n        {\"role\": \"user\", \"content\": \"Find the bug in this retry loop and fix it: ...\"},\n    ],\n)\nprint(resp.choices[0].message.content)\nprint(resp.usage)  # completion tokens include thinking tokens<\/code><\/pre>\n<h3>Node.js<\/h3>\n<pre><code>import OpenAI from \"openai\";\n\nconst client = new OpenAI({\n  baseURL: \"https:\/\/qoraapi.com\/v1\",\n  apiKey: process.env.QORA_API_KEY,\n});\n\nconst r = await client.chat.completions.create({\n  model: \"gemini-4-hydrogen\",\n  messages: [{ role: \"user\", content: \"Turn this CSV into a typed TypeScript interface: ...\" }],\n});\nconsole.log(r.choices[0].message.content);<\/code><\/pre>\n<h3>cURL<\/h3>\n<pre><code>curl https:\/\/qoraapi.com\/v1\/chat\/completions \\\n  -H \"Authorization: Bearer YOUR_QORA_KEY\" \\\n  -H \"Content-Type: application\/json\" \\\n  -d '{\"model\": \"gemini-4-hydrogen\", \"messages\": [{\"role\": \"user\", \"content\": \"Hello!\"}]}'<\/code><\/pre>\n<p>The same key and base URL work in Cline, Kilo Code, Cursor, Open WebUI and SillyTavern: pick the &#8220;OpenAI Compatible&#8221; or &#8220;Custom (OpenAI-compatible)&#8221; provider, paste the base URL and key, and type <code>gemini-4-hydrogen<\/code> as the model ID. Step-by-step screenshots for those tools are in our <a href=\"https:\/\/qoraapi.com\/blog\/connect-cursor-cline-continue-custom-api-endpoint\/\">Cursor, Cline and Continue guide<\/a> and the <a href=\"https:\/\/qoraapi.com\/blog\/open-webui-librechat-claude-gpt-gemini\/\">Open WebUI and LibreChat guide<\/a>.<\/p>\n<h2>What breaks when you migrate from Gemini 3.8 Flash?<\/h2>\n<p>Hydrogen uses the Gemini 4 API design, so a straight model-string swap mostly works, but Google lists these changes:<\/p>\n<ol>\n<li><strong>Model ID:<\/strong> <code>gemini-3.8-flash<\/code> becomes <code>gemini-4-hydrogen<\/code>.<\/li>\n<li><strong>Output caps:<\/strong> thinking and the answer share <code>max_output_tokens<\/code>. Old hardcoded caps such as 8,192 will truncate answers; raise them to 65,536 or remove them.<\/li>\n<li><strong>Thinking level:<\/strong> the default moves from <code>medium<\/code> to <code>high<\/code>, so latency and output tokens rise unless you set it. <code>minimal<\/code> now returns an error.<\/li>\n<li><strong>Sampling parameters:<\/strong> <code>temperature<\/code>, <code>top_p<\/code> and <code>top_k<\/code> are ignored. Steer the model with instructions and the thinking level instead.<\/li>\n<li><strong>Explicit caching:<\/strong> remove <code>cached_content<\/code>; only implicit caching is supported.<\/li>\n<li><strong>Tool calls:<\/strong> declare tools natively with function calling or use structured outputs. Asking for raw-text JSON tool calls with no declared tools can return <code>MALFORMED_FUNCTION_CALL<\/code>.<\/li>\n<li><strong>Multi-turn state:<\/strong> return earlier model turns and thought signatures unchanged in <code>generateContent<\/code> histories.<\/li>\n<\/ol>\n<h2>Is Gemini 4 Hydrogen good for coding agents?<\/h2>\n<p>That is the job Google built it for. Hydrogen is now the default model behind Google&#8217;s Antigravity agent, and Google pairs it with Carbon in Antigravity&#8217;s new Orchestrator mode. Practical advice from the docs: keep <code>high<\/code> for repository-level coding and debugging, use <code>medium<\/code> for interactive UI work where speed matters, and give long tasks a generous output budget so thinking does not crowd out the answer. For the very hardest architecture or security reviews, Google still points to <a href=\"https:\/\/qoraapi.com\/models\/gemini-4-carbon-api\">Gemini 4 Carbon<\/a>.<\/p>\n<h2>FAQ<\/h2>\n<h3>What is the Gemini 4 Hydrogen model ID?<\/h3>\n<p>The model ID is <code>gemini-4-hydrogen<\/code>. It is a stable model with no preview suffix, and the same string works on Google&#8217;s API and on OpenAI-compatible gateways such as Qora API.<\/p>\n<h3>How much does the Gemini 4 Hydrogen API cost?<\/h3>\n<p>As of November 13, 2026, Google charges $1.50 per 1M input tokens and $7.50 per 1M output tokens on the paid tier, with cached input at $0.075 per 1M. Thinking tokens are billed as output. The free tier costs nothing but is rate-limited.<\/p>\n<h3>Is Gemini 4 Hydrogen free?<\/h3>\n<p>Yes, there is a free tier in the Gemini API and Google AI Studio, with rate limits. Google may use free-tier content to improve its products, so use the paid tier for production or private data.<\/p>\n<h3>Is Gemini 4 Hydrogen better than Gemini 3.8 Flash?<\/h3>\n<p>Google calls it the recommended upgrade: it makes more than 5x fewer fabricated claims, handles tool calls better and adds the <code>xhigh<\/code> thinking level. It costs twice as much as 3.8 Flash at Google until December 31, 2026, and the same from January 1, 2027.<\/p>\n<h3>Gemini 4 Hydrogen vs Argon: which should I use?<\/h3>\n<p>Hydrogen is faster and cheaper at Google&#8217;s list price and scores 51 vs Argon&#8217;s 50 on the Artificial Analysis Intelligence Index at default settings. Argon is tuned for long-horizon work with fewer tokens. On Qora API, Argon costs $0.60 \/ $3.00 per 1M tokens, less than Hydrogen&#8217;s official price.<\/p>\n<h3>What is the Gemini 4 Hydrogen context window?<\/h3>\n<p>1,048,576 tokens, shared by input, thinking and output. A single synchronous response is capped at 65,536 tokens; background execution or client-side continuation lets output run up to the full window.<\/p>\n<h3>Does Gemini 4 Hydrogen support temperature?<\/h3>\n<p>No. Google&#8217;s migration guide says custom <code>temperature<\/code>, <code>top_p<\/code> and <code>top_k<\/code> values are ignored on Hydrogen. Use the thinking level and your instructions to control output.<\/p>\n<h3>Can I use Gemini 4 Hydrogen without a Google Cloud account?<\/h3>\n<p>Yes. Through an OpenAI-compatible gateway such as Qora API you call it with one API key and the base URL <code>https:\/\/qoraapi.com\/v1<\/code>, paying in USD with no Google billing setup. Check <a href=\"https:\/\/qoraapi.com\/pricing\">qoraapi.com\/pricing<\/a> for the live price.<\/p>\n<h2>Get started<\/h2>\n<p>For a one-page summary of Hydrogen&#8217;s specs and prices, see the <a href=\"https:\/\/qoraapi.com\/models\/gemini-4-hydrogen-api\">Gemini 4 Hydrogen API price page<\/a>. To compare every Gemini model on one key, read our <a href=\"https:\/\/qoraapi.com\/blog\/cheap-gemini-api\/\">cheap Gemini API guide<\/a> or browse <a href=\"https:\/\/qoraapi.com\/models\">all model prices<\/a>. Qora API gives you Gemini, Claude, GPT, Grok and DeepSeek through one OpenAI-compatible key at up to 70% off official prices. <a href=\"https:\/\/qoraapi.com\/register\">Create an account<\/a> to get your key; new users can ask for $5 of trial credit via <a href=\"https:\/\/x.com\/QoraAPI\">@QoraAPI on X<\/a> or support@qoraapi.com.<\/p>\n<p>Update (Nov 19, 2026): Google also announced <a href=\"https:\/\/qoraapi.com\/blog\/gemini-4-neon-api\/\">Gemini 4 Neon<\/a> ($3 \/ $15 per 1M tokens), a step up from Hydrogen.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Short answer: Gemini 4 Hydrogen is Google&#8217;s fast Gemini 4 model for everyday coding and agentic work, released on November 12, 2026. Its API model ID is gemini-4-hydrogen, and as of November 13, 2026 it costs $1.50 per 1M input tokens and $7.50 per 1M output tokens on Google&#8217;s paid tier (cached input $0.075), with [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-463","post","type-post","status-publish","format-standard","hentry","category-ai-api"],"_links":{"self":[{"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/posts\/463","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/comments?post=463"}],"version-history":[{"count":1,"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/posts\/463\/revisions"}],"predecessor-version":[{"id":486,"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/posts\/463\/revisions\/486"}],"wp:attachment":[{"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/media?parent=463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/categories?post=463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/tags?post=463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}