Gemini 4 Hydrogen on Vercel AI Gateway

Gemini 4 · Google DeepMind

Serverless

Last refreshed 2026-11-13. Next refresh: weekly.

Why use Gemini 4 Hydrogen on Vercel AI Gateway?

Vercel AI Gateway offers Gemini 4 Hydrogen with pay-as-you-go pricing at $1.50/1M input tokens. Vercel AI Gateway is a unified AI proxy providing a single OpenAI-compatible API endpoint to 275+ models from 25+ providers including Anthropic, OpenAI, Google, Meta, Mistral, DeepSeek, xAI, Alibaba, Amazon, ByteDance, Cohere, MiniMax, MoonshotAI, KwaiPilot, Black Forest Labs, Recraft, Voyage AI, NVIDIA, and more.

Compare Gemini 4 Hydrogen across 4 providers to find the best fit for your use case
Input / 1M
$1.50
Output / 1M
$7.50
Cache
read $0.075
Batch
Not sourced

Setup recipe

Python + curl
Install
pip install openai
Auth
export AI_GATEWAY_API_KEY=...
Call
import os
from openai import OpenAI
client = OpenAI(
    api_key=os.environ["AI_GATEWAY_API_KEY"],
Model ID
google/gemini-4-hydrogen

Request example

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AI_GATEWAY_API_KEY"],
    base_url="https://ai-gateway.vercel.sh/v1"
)
response = client.chat.completions.create(
    model="google/gemini-4-hydrogen",
    messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)

Gotchas

  • Use provider model ID "google/gemini-4-hydrogen", not the LLMReference slug "gemini-4-hydrogen".
  • creator/model-name e.g. kwaipilot/kat-coder-pro-v2
  • The examples expect AI_GATEWAY_API_KEY; rename it only if your application config maps the new variable.

Compare Gemini 4 Hydrogen Across Providers

ProviderInput (per 1M)Output (per 1M)
Google AI Studio$1.50$7.50
GCP Vertex AI$1.50$7.50
OpenRouter$1.50$7.50
Vercel AI Gateway$1.50$7.50

Pricing

TypePrice (per 1M)
Input tokens$1.50
Output tokens$7.50

Capabilities

VisionMultimodalReasoningJSON / Tool useStructured OutputsCode ExecutionPrompt CachingBatch APIAudioVideo

About Gemini 4 Hydrogen

Gemini 4 Hydrogen is Google DeepMind's fast, lower-cost Gemini 4 model, released generally available on November 12, 2026 in the Gemini API, Google AI Studio and Vertex AI (Gemini Enterprise Agent Platform). Google positions it for everyday coding, agentic workflows and multimodal work, alongside Gemini 4 Carbon for the hardest problems; its model card says it is adapted from Gemini 4 Carbon. It takes text, image, video, audio and PDF input and returns text, with a unified 1,048,576-token context window and long decode up to 1,048,576 output tokens (65,536 by default).

Get Started

Model Specs

Released2026-11-12
Context1M
Knowledge cutoff2026-03

Related Models on Vercel AI Gateway