Routine coding
Gemini 4 Hydrogen
New Launched on IteraCompute
gemini/gemini-4-hydrogen- Tool calling
SupportedTool calling · Supported
- Reasoning
SupportedReasoning · Supported
- Vision
SupportedVision · Supported
- Streaming
SupportedStreaming · Supported
- JSON mode
SupportedJSON mode · Supported
USD / 1M tokens
- Input
- $1.50
- Cache read
- $0.075
- Cache write
- —
- Output
- $7.50
- Context
- 1M
- Max output
- 64K
- Precision
- Official precision
- Price checked
Model availability and prices
Overview
Google Cloud lists Gemini 4 Hydrogen for fast coding assistance, multimodal input and high-volume text generation.
- Version
- gemini-4-hydrogen
- Input / output
- text, image / text
- Endpoint
- /v1/chat/completions, /v1/responses, /v1/messages
API protocols and integration
- Base URL · OpenAI SDK
https://api.iteracompute.com/v1- Authentication
Authorization: Bearer ITERACOMPUTE_API_KEY
Choose request fields, response parsing and stream completion by endpoint. This table describes wire formats; see this model's capabilities and verification scope.
| Customer endpoint | Model status | Input / output budget | Result | SSE completion |
|---|---|---|---|---|
OpenAI Chat CompletionsPOST /v1/chat/completions | Declared for this model | messagesmax_completion_tokens | choices[0].message.content | [DONE] |
OpenAI ResponsesPOST /v1/responses | Declared for this model | inputmax_output_tokens | output[] (SDK: output_text) | response.completed |
Anthropic MessagesPOST /v1/messages | Declared for this model | messages; system (top-level)max_tokens (required) | content[] | message_stop |
For the Messages SDK use https://api.iteracompute.com as base URL; max_tokens is required. Do not reuse another protocol's fields.
LLMs.txt · Copy for an AI coding assistant
Includes this model's ID, wire formats and parameter constraints. Check this page's verification scope and current prices before use.
# IteraCompute · gemini/gemini-4-hydrogen
Model ID: gemini/gemini-4-hydrogen
Base URL (OpenAI SDK): https://api.iteracompute.com/v1
Authentication: Authorization: Bearer ITERACOMPUTE_API_KEY
Content-Type: application/json
Use only the customer endpoints below. Request and response formats differ by protocol. An endpoint declaration does not certify every capability.
## Chat Completions
POST https://api.iteracompute.com/v1/chat/completions
Input: messages
Output budget: max_completion_tokens
Read result: choices[0].message.content
SSE completion: [DONE]
Docs: https://iteracompute.com/docs.html#api-reference
## Responses
POST https://api.iteracompute.com/v1/responses
Input: input
Output budget: max_output_tokens
Read result: output[] (SDK: output_text)
SSE completion: response.completed
Docs: https://iteracompute.com/docs.html#responses-api
## Messages
POST https://api.iteracompute.com/v1/messages
Input: messages; system (top-level)
Output budget: max_tokens (required)
Read result: content[]
SSE completion: message_stop
Docs: https://iteracompute.com/docs.html#anthropic-messages
## Parameters
Configuration and parameter acceptance do not establish semantic capability. Do not invent undisclosed defaults.
Parameter revision: 3ab5aa490926753c947ef80491c78d442b18b42a37d474ea5536b34462368040
Context tokens: 1048576
Maximum output tokens: 65536
Capability tools: configured enabled (see verification scope)
Capability vision: configured enabled (see verification scope)
Capability json_mode: configured enabled (see verification scope)
Capability reasoning: configured enabled (see verification scope)
Capability streaming: configured enabled (see verification scope)
- tools: array; accepted; min=unknown; max=unknown; default=Undisclosed. Tool definitions; the application executes tool calls and returns results.
- stream: boolean; accepted; min=unknown; max=unknown; default=Undisclosed. Enable SSE streaming; completion markers depend on the protocol.
- max_tokens: integer; accepted; min=16; max=65536; default=Undisclosed. Required budget for Messages. In Chat Completions this is a legacy alias with the same range as max_completion_tokens. If both fields are sent, their values must match.
- response_format: object; accepted; min=unknown; max=unknown; default=Undisclosed. Text: Chat output format. Images: b64_json only; not text JSON mode.
- max_output_tokens: integer; accepted; min=16; max=65536; default=Undisclosed. Responses output budget. Chat acceptance must be checked separately.
- max_completion_tokens: integer; accepted; min=64; max=65536; default=Undisclosed. Preferred Chat Completions field. The budget includes reasoning and visible output. A low budget may leave no visible text.
## Chat Completions example · JSON body
```json
{
"model": "gemini/gemini-4-hydrogen",
"messages": [
{
"role": "user",
"content": "Reply OK"
}
],
"max_completion_tokens": 256
}
```
## Responses example · JSON body
```json
{
"model": "gemini/gemini-4-hydrogen",
"input": "Reply OK",
"max_output_tokens": 256
}
```
## Messages example · JSON body
```json
{
"model": "gemini/gemini-4-hydrogen",
"max_tokens": 256,
"messages": [
{
"role": "user",
"content": "Reply OK"
}
]
}
```
## References
Model catalog: https://iteracompute.com/models/
Current prices and billing: https://iteracompute.com/pricing/
Documentation index: https://iteracompute.com/llms.txt
Unknown prices are not zero. Account and subscription limits also apply.
Never include a real API key in an LLM prompt or client-side code.
API parameters
- For Chat Completions use max_completion_tokens with a minimum of 64. The legacy max_tokens spelling uses the same budget and range. Send one field, or use equal values if sending both. Responses uses max_output_tokens and Messages uses max_tokens. Both accepted 16 in testing. At very low budgets reasoning can consume the allowance before any visible text.
- Chat Completions passed the tool-call and tool-result round trip.
These parameters and ranges describe the current route. Account and context limits also apply. Parameter acceptance does not establish model capability.
- Tool calling
- Supported
- Reasoning
- Supported
- Vision
- Supported
- Streaming
- Supported
- JSON mode
- Supported
Parameters and values
Click a parameter to copy its name; scroll the table horizontally to see all columns. Usage notes identify protocol differences; identical names do not guarantee cross-endpoint support.
| Parameter | Type | Acceptance | Range | Usage / protocol |
|---|---|---|---|---|
| array | Accepted | — | Tool definitions; the application executes tool calls and returns results. | |
| boolean | Accepted | — | Enable SSE streaming; completion markers depend on the protocol. | |
| integer | Accepted | Messages [16, 65536] · Chat [64, 65536] | Required budget for Messages. In Chat Completions this is a legacy alias with the same range as max_completion_tokens. If both fields are sent, their values must match. | |
| object | Accepted | — | Text: Chat output format. Images: b64_json only; not text JSON mode. | |
| integer | Accepted | [16, 65536] | Responses output budget. Chat acceptance must be checked separately. | |
| integer | Accepted | [64, 65536] | Preferred Chat Completions field. The budget includes reasoning and visible output. A low budget may leave no visible text. |
Current configuration example
POST /v1/chat/completions
{
"model": "gemini/gemini-4-hydrogen",
"messages": [
{
"role": "user",
"content": "Reply OK"
}
],
"max_completion_tokens": 256
}Parameter revision:3ab5aa490926
API
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.iteracompute.com/v1",
api_key=os.environ["ITERACOMPUTE_API_KEY"],
)
response = client.chat.completions.create(
model="gemini/gemini-4-hydrogen",
messages=[
{
"role": "user",
"content": "Reply OK"
}
],
max_completion_tokens=256,
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.iteracompute.com/v1",
apiKey: process.env.ITERACOMPUTE_API_KEY,
});
const response = await client.chat.completions.create({
"model": "gemini/gemini-4-hydrogen",
"messages": [
{
"role": "user",
"content": "Reply OK"
}
],
"max_completion_tokens": 256
});
console.log(response.choices[0].message.content);curl https://api.iteracompute.com/v1/chat/completions \
-H "Authorization: Bearer ITERACOMPUTE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini/gemini-4-hydrogen",
"messages": [
{
"role": "user",
"content": "Reply OK"
}
],
"max_completion_tokens": 256
}'import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.iteracompute.com/v1",
api_key=os.environ["ITERACOMPUTE_API_KEY"],
)
response = client.responses.create(
model="gemini/gemini-4-hydrogen",
input="Reply OK",
max_output_tokens=256,
)
print(response.output_text)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.iteracompute.com/v1",
apiKey: process.env.ITERACOMPUTE_API_KEY,
});
const response = await client.responses.create({
"model": "gemini/gemini-4-hydrogen",
"input": "Reply OK",
"max_output_tokens": 256
});
console.log(response.output_text);curl https://api.iteracompute.com/v1/responses \
-H "Authorization: Bearer ITERACOMPUTE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini/gemini-4-hydrogen",
"input": "Reply OK",
"max_output_tokens": 256
}'import os
from anthropic import Anthropic
client = Anthropic(
base_url="https://api.iteracompute.com",
api_key=os.environ["ITERACOMPUTE_API_KEY"],
)
response = client.messages.create(
model="gemini/gemini-4-hydrogen",
max_tokens=256,
messages=[
{
"role": "user",
"content": "Reply OK"
}
],
)
print("".join(block.text for block in response.content if block.type == "text"))import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
baseURL: "https://api.iteracompute.com",
apiKey: process.env.ITERACOMPUTE_API_KEY,
});
const response = await client.messages.create({
"model": "gemini/gemini-4-hydrogen",
"max_tokens": 256,
"messages": [
{
"role": "user",
"content": "Reply OK"
}
]
});
console.log(response.content.filter(block => block.type === "text").map(block => block.text).join(""));curl https://api.iteracompute.com/v1/messages \
-H "x-api-key: ITERACOMPUTE_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini/gemini-4-hydrogen",
"max_tokens": 256,
"messages": [
{
"role": "user",
"content": "Reply OK"
}
]
}'Pricing
USD per million tokens. — means unknown. Account and subscription limits still apply.
- Version / Model ID
gemini/gemini-4-hydrogengemini-4-hydrogen- Context
- 1M
- Precision
- Official precision
- Price checked
- Verification scope and sources
View verification scope and sources
2026-11-20 · Short requests verified text, usage and stream completion on Chat Completions, Responses and Messages. Red and blue image probes, short reasoning and JSON probes also returned observable results. Maximum token lengths are vendor specifications.
Complete token prices
USD per million tokens. Unknown prices are shown as —. Token ranges include cache reads and writes; ranges use (start, end].
| Billing item | Our price | Official reference |
|---|---|---|
| Input | $1.5 | $1.5 |
| Cache read | $0.075 | $0.075 |
| Output | $7.5 | $7.5 |
35d1af7cab38Vendor-documented context window · 1,048,576 tokens · Maximum output · 65,536 tokens ·
Cost calculator
USD · EstimateAdvanced token usage
Input includes cache reads and writes; these portions must not overlap. Output already includes reasoning; enter reasoning as a subset, never add it twice. Count agent steps and retries as requests.
Estimated monthly cost
—USDGemini 4 Hydrogen
Cache hits and capacity are not guaranteed.
Cost breakdown
- Uncached input
- —
- Cache read
- —
- Cache writes (5m + 1h)
- —
- Output (including reasoning)
- —
Usage limits
- Google Cloud specifies a shared 1,048,576-token context. This route is configured for up to 65,536 output tokens. Long decode and continuation are outside this route's tested scope.
- For Chat Completions use max_completion_tokens with a minimum of 64. The legacy max_tokens spelling uses the same budget and range. Send one field, or use equal values if sending both. Responses uses max_output_tokens and Messages uses max_tokens. Both accepted 16 in testing. At very low budgets reasoning can consume the allowance before any visible text.
- Google Cloud lists a future effective cache-write price. Current retail cache-write pricing is unconfirmed.
Use cases
Multimodal analysis
High-volume text tasks
Integration tools and guides
FAQ
How do I call Gemini 4 Hydrogen?
Use Model ID gemini/gemini-4-hydrogen and the native fields in this page's API examples. Declared endpoints: /v1/chat/completions, /v1/responses, /v1/messages.
How is usage priced?
Use the current prices and billing units. Missing prices remain unknown, not free. The calculator uses native Gateway quotes; an estimate is not a bill.
Which parameters and limits apply?
Check the current parameter table and usage limits. Budget fields differ by protocol. Configured limits do not establish full-window quality or guarantee a maximum-length output.
New arrivals
Explore the models selected for New Arrivals, with API pricing, supported capabilities and integration guides.
GPT-6.2 Astra
openai/gpt-6.2-astra
OpenAI lists GPT-6.2 Astra for complex engineering and long-horizon reasoning.
Launched on IteraCompute
- Input
- $8.00
- Output
- $40.00
USD / 1M tokens
GPT-6.2 Sol
openai/gpt-6.2-sol
OpenAI lists GPT-6.2 Sol for everyday coding and agent workflows.
Launched on IteraCompute
- Input
- $2.00
- Output
- $10.00
USD / 1M tokens
Qwen4-Max
qwen/qwen4-max
Qwen4-Max through Alibaba Cloud Model Studio, with text, reasoning, tools and image input.
Launched on IteraCompute
- Input
- $1.50
- Output
- $4.50
USD / 1M tokens