Google · Text

Gemini 4 Hydrogen API

Model IDgemini-4-hydrogen

Gemini 4 Hydrogen is a Google Gemini model. Call it with native Gemini generateContent requests under /v1beta, or through the OpenAI-compatible Chat Completions endpoint, with one APIRail key and 30% of the list price per token.

Gemini 4 Hydrogen API pricing

Billed itemAPIRailList price
Input tokens per 1M tokens$0.45$1.50
Cached input tokens per 1M tokens$0.0225$0.075
Cache write tokens per 1M tokens$0.45$1.50
Output tokens per 1M tokens$2.25$7.50

Specs

Provider
Google
Modality
Text
Context window
1,048,576 tokens
Max output
1,048,576 tokens
Endpoints
POST /v1beta/models/gemini-4-hydrogen:generateContentGemini generateContentPOST /v1/chat/completionsOpenAI Chat Completions

Quickstart

Replace ar-live-YOUR_KEY with a key from Dashboard → API keys.

curl "https://api.apirail.dev/v1beta/models/gemini-4-hydrogen:generateContent" \
  -H "x-goog-api-key: ar-live-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"contents": [{"parts": [{"text": "Say hello in one sentence."}]}]}'
Google · Text

Gemini 4 Neon

gemini-4-neon

Context
1M
Input / 1M
$3.00$0.90
Output / 1M
$15.00$4.50
Google · Text

Gemini 4 Argon

gemini-4-argon

Context
1M
Input / 1M
$2.00$0.60
Output / 1M
$10.00$3.00
Google · Text

Gemini 4 Carbon

gemini-4-carbon

Context
1M
Input / 1M
$2.00$0.60
Output / 1M
$10.00$3.00
Google · Text

Gemini 3.8 Flash

gemini-3.8-flash

Context
1M
Input / 1M
$0.75$0.225
Output / 1M
$3.75$1.125
Google · Text

Gemini 3.5 Flash Lite

gemini-3.5-flash-lite

Context
1M
Input / 1M
$0.30$0.09
Output / 1M
$2.50$0.75

FAQ

How do I get a Gemini 4 Hydrogen API key?

Sign in to APIRail with Google, create a key under Dashboard → API keys and top up at least $20. The same ar-live key works for Gemini 4 Hydrogen and every other model in the catalog.

How much does the Gemini 4 Hydrogen API cost?

$0.45 per 1M input tokens and $2.25 per 1M output tokens, 30% of the list price of $1.50 and $7.50. Cached input costs $0.0225 per 1M tokens.

Which endpoints can I use with Gemini 4 Hydrogen?

POST /v1beta/models/gemini-4-hydrogen:generateContent, POST /v1/chat/completions. Send the model ID gemini-4-hydrogen in the request.

Can I use Gemini 4 Hydrogen with the Gemini SDK?

Yes. Pass your APIRail key as the API key and set the base URL to https://api.apirail.dev; generateContent calls work unchanged. The key can also be sent as x-goog-api-key or ?key=.