Text model · Google
Gemini 4 Hydrogen API
Gemini 4 Hydrogen is Google's fast, cost-efficient Gemini 4 model, announced on November 12, 2026. It reasons before answering, does not return the reasoning text, and is the cheapest of the four Gemini 4 models on TokenRa.
- Model ID
gemini-4-hydrogen- API formats
- Chat Completions
- Input
- Text
- Output
- Text
- Tier
- Fast, cost-efficient Gemini 4
- For AI agents
- llms.txt guide
Capabilities
Capabilities & endpoints
Chat generation over OpenAI Chat Completions. Called successfully on tokenra.io on 2026-12-02. Fast, cost-efficient Gemini 4.
POSThttps://tokenra.io/v1/chat/completionsTested
OpenAI SDK with
base_url="https://tokenra.io/v1". Auth: Authorization: Bearer.Not available for this model
- Anthropic Messages (
/v1/messages): the model is published on the HTTP gateway with theopenaiendpoint type only. - OpenAI Responses (
/v1/responses) is not exposed either.
Request
Request parameters
Fields for POST /v1/chat/completions. Everything listed was accepted by the model in testing.
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | The model ID to call, for example gemini-4-hydrogen. |
messages | array | Yes | Conversation messages in order. content can be a string or an array of parts. |
stream | boolean | No | Defaults to true. Omit the field and the reply is text/event-stream; send false to get one JSON body. |
stream_options | object | No | With {"include_usage": true} the last chunk carries usage. |
max_tokens | integer | No | Upper limit for generated tokens. Reasoning tokens count toward it where the model reasons. |
temperature | number | No | Sampling temperature. |
top_p | number | No | Nucleus sampling threshold. Tune this or temperature, not both. |
presence_penalty | number | No | Penalises tokens that already appeared. |
frequency_penalty | number | No | Penalises frequent tokens to reduce repetition. |
tools | array | No | Supported. A request with a tools array returns tool_calls with parsed JSON arguments and finish_reason: stop. |
user | string | No | Your own end-user identifier for auditing. Not part of the conversation. |
Pricing
Input $1.80 · output $9.00 · cached input $0.09 per 1M tokens. Hydrogen is the cheapest of the four Gemini 4 models on TokenRa. Hydrogen is the default general-purpose tier of the family; it burned 567 reasoning tokens on a one-line prompt in testing.
Response
Response format
{
"id": "chatcmpl-20261202084533000000000hydrogen",
"model": "gemini-4-hydrogen",
"object": "chat.completion",
"created": 1796172333,
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "An API gateway is the single entry point that receives client requests, routes them to the right backend service, and handles shared concerns such as authentication, rate limiting and logging."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 41,
"completion_tokens": 48,
"total_tokens": 89,
"prompt_tokens_details": {
"cached_tokens": 0,
"text_tokens": 41
},
"completion_tokens_details": {
"text_tokens": 0,
"reasoning_tokens": 567
}
}
}| Field | Type | Description |
|---|---|---|
id | string | Completion ID. Include it when you contact support. |
object | string | chat.completion, or chat.completion.chunk when streaming. |
created | integer | Unix timestamp in seconds. |
choices[0].message.content | string | The answer text. |
choices[0].finish_reason | string | stop on a normal reply; tool_calls when the model calls a function. |
usage.prompt_tokens | integer | Input tokens, billed at the input rate. |
usage.completion_tokens | integer | Output tokens, billed at five times the input rate. |
usage.completion_tokens_details.reasoning_tokens | integer | How many output tokens went to reasoning. Billed at the output rate. |
Errors
Errors & limits
Common errors
| HTTP | error.code | Meaning | What to do |
|---|---|---|---|
401 | — | Missing, wrong or deleted API key. The message is Invalid token. | Check the Authorization: Bearer header and the key in the console. |
400 | — | The body is not valid JSON. | Fix the JSON and send Content-Type: application/json. |
500 | invalid_request | A required field is missing, for example messages. | Add the field named in the message. Retrying will not help. |
403 | insufficient_user_quota | Your balance or plan quota is used up. | Top up in the console, then retry. |
503 | model_not_found | Unknown model ID, or no channel serves it for your group. | Check the ID in the model list or with GET /v1/models. |
429 | — | Too many requests. | Back off exponentially and retry. |
5xx | — | The upstream provider failed or timed out. | Retry a few times; keep the request id if it persists. |
Limits and notes
- The stream default differs from most models on the gateway: omitting
streamreturnstext/event-streamfor the Gemini 4 family, so send"stream": falsewhen your client expects one JSON body. - Function calling is available: a
toolsrequest returnstool_callswith emptycontent. - Reasoning tokens are counted in
usage.completion_tokens_details.reasoning_tokensbut the reasoning text itself is not returned. They count towardmax_tokensand are billed as output. - Pricing: input $1.80 and output $9.00 per 1M tokens; cached input $0.09.