🚀 One API for every frontier model on FastInfra

Browse models

Transparent per-token pricing → compare providers on FastInfra

View pricing

OpenAI-compatible chat completions → start in minutes

Read the docs

⚡ Server Auction → Enterprise bare metal from $78.15/mo (173 in stock)

Browse deals

Gemini 4 Hydrogen API pricing

Gemini 4 Hydrogen is a multimodal language model from Google with a 1M-token context window. On FastInfra it costs $1.50 per million input tokens and $7.50 per million output tokens, billed per token from prepaid credit with no subscription. It supports tool calling, structured JSON output, adjustable reasoning and image input. It was released in November 2026. Call it as "google/gemini-4-hydrogen" from any OpenAI SDK by changing the base URL and API key.

Input $1.50 / 1M Output $7.50 / 1M 1M context At list price, no platform markup

Prices synced December 1, 2026 · Model ID google/gemini-4-hydrogen

At a glance

Gemini 4 Hydrogen specs and pricing

Input price
$1.50
per 1M tokens
Output price
$7.50
per 1M tokens
Maker list price
$1.50 / $7.50
input / output per 1M · never above list
Context window
1M
1,048,576 tokens
Max output
943.7K
943,718 tokens per response
Released
Nov 2026
by Google
Input
audio, file, image, text, video
output: text
Pricing

Gemini 4 Hydrogen API pricing per token

You pay for prompt tokens at the input rate and generated tokens at the output rate. No subscription, seat fee or minimum — credit never expires.

Rate Input / 1M tokens Output / 1M tokens Input / 1K tokens
Standard (real-time) $1.50 $7.50 $0.0015
Batch (async) · google/gemini-4-hydrogen:batch $0.75 $3.75 $0.00075

What Gemini 4 Hydrogen costs in practice

Worked examples at the standard rate above. Real token counts depend on your prompts.

WorkloadTokensCost
1,000 chatbot replies 1,500 input + 400 output tokens each $5.25
Summarise a 100-page report ≈60,000 input + 1,500 output tokens $0.10
RAG answers over your docs, 10,000 queries 4,000 input + 300 output tokens each $82.50
Coding-agent session ≈250,000 input + 25,000 output tokens $0.56
1M input + 1M output tokens the per-million list rates combined $9.00
Calculator

Gemini 4 Hydrogen cost calculator

Enter your traffic to estimate daily and monthly spend at the live FastInfra rate.

Per request—
Per day—
Per month (30 days)—
Integration

How to call the Gemini 4 Hydrogen API

Works with the official OpenAI SDKs — change the base URL and API key only. One key covers every model on FastInfra.

Field Value
Model ID google/gemini-4-hydrogen
Capability Chat (vision)
Base URL https://api.fastinfra.ai/v1
Primary endpoint POST https://api.fastinfra.ai/v1/chat/completions
Auth Authorization: Bearer YOUR_API_KEY
OpenAI Chat SDK Yes — set base_url to the Base URL
Validate model id GET https://api.fastinfra.ai/v1/models/google/gemini-4-hydrogen
Docs Integration reference

Use multimodal message content (image_url). Same base URL as text chat.

Python

from openai import OpenAI

client = OpenAI(api_key="YOUR_API_KEY", base_url="https://api.fastinfra.ai/v1")

stream = client.chat.completions.create(
    model="google/gemini-4-hydrogen",
    messages=[{"role": "user", "content": "Explain vector databases in two sentences."}],
    stream=True,
)
for chunk in stream:
    print(chunk.choices[0].delta.content or "", end="")

Node.js

import OpenAI from "openai";

const client = new OpenAI({ apiKey: process.env.FASTINFRA_API_KEY, baseURL: "https://api.fastinfra.ai/v1" });

const response = await client.chat.completions.create({
  model: "google/gemini-4-hydrogen",
  messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);

curl

curl https://api.fastinfra.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemini-4-hydrogen",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Served over 1 independent route. Requests go to the lowest-cost healthy route and fail over automatically if one is unavailable. Live latency and uptime are on the status page.

Alternatives

Gemini 4 Hydrogen vs alternatives

Live FastInfra prices per 1M tokens. Every model uses the same API key, so switching is a one-line change.

ModelInputOutputContext
Gemini 4 Hydrogen (this page) $1.50 $7.50 1M
Claude Opus 5 $5.00 $25.00 1M Compare
Claude Sonnet 5 $2.00 $10.00 1M Compare
Claude Haiku 5.5 $0.10 $0.50 1M Compare
Claude Fable 5.1 $10.00 $50.00 1M Compare
GPT-5.5 $5.00 $30.00 1.05M Compare
Gemma 3 4B It $0.05 $0.10 128K Compare
Gemma 3 12B It $0.05 $0.15 128K Compare
FAQ

Gemini 4 Hydrogen API — frequently asked questions

How much does the Gemini 4 Hydrogen API cost?

On FastInfra, Gemini 4 Hydrogen (google/gemini-4-hydrogen) costs $1.5/1M input, $7.5/1M output tokens. Billing is per token used from prepaid credit, with no subscription or minimum spend.

What is the Gemini 4 Hydrogen context window?

Gemini 4 Hydrogen accepts up to 1,048,576 tokens of context (about 1M) and can generate up to 943,718 output tokens per response. Prompt and response tokens share that window.

Is there a cheaper batch price for Gemini 4 Hydrogen?

Yes. The batch variant google/gemini-4-hydrogen:batch costs $0.75/1M input and $3.75/1M output tokens for asynchronous jobs that do not need an immediate answer.

Is Gemini 4 Hydrogen compatible with the OpenAI SDK?

Yes. Point the OpenAI Python or Node SDK at https://api.fastinfra.ai/v1, use a FastInfra API key and set model to "google/gemini-4-hydrogen". Chat completions, streaming, tool calling and JSON structured output use the same request shape.

Does Gemini 4 Hydrogen support tool calling and vision?

Gemini 4 Hydrogen supports tool (function) calling, JSON structured output, configurable reasoning and image input.

What is a cheaper alternative to Gemini 4 Hydrogen?

Claude Haiku 5.5 costs $0.1/1M input and $0.5/1M output tokens on FastInfra. Both use the same API key, so switching is a one-line change to the model string.

Start using Gemini 4 Hydrogen today

Create an account, add credit from $5 and make your first Gemini 4 Hydrogen request in under five minutes. Compare every model on the pricing page.