Google: Gemini 4 Hydrogen
Chatgoogle/gemini-4-hydrogenGemini 4 Hydrogen is Google’s fast reasoning model for coding, agent workflows and multimodal analysis. It supports tool calling and structured output, with a shared 1,048,576-token input, reasoning and output window and up to 65,536 output tokens per foreground segment. Thinking levels are low, medium, high (default) and xhigh. It supports implicit context caching. This short-term GA release is subject to a minimum 45-day retirement notice.
Context Window
1M
Max Output Tokens
66K
Released
2026-11-12
Capabilities
VisionFunction CallingReasoningPrompt CachingWeb SearchAudio InputVideo InputPDF Input
Available Providers
Vertex
Supported Protocols
openaigemini
Providers
Vertex
provider.type: "google_vertex"Input Tokens
$1.5/M
Output Tokens
$7.5/M
Cache Read
$0.075/M
Audio Input
$1.5/M
Cached Image
$0.075/M
Cached Audio
$0.075/M
Cached Video
$0.075/M
Web Search
$0.014/R
Protocols
openai
/v1/chat/completionsgemini
Documentation
How to call Gemini 4 Hydrogen on OfoxAI: model IDs, request parameters and the errors you are most likely to hit.
- Gemini API guideModel IDs, choosing an endpoint, code examples and common errors.
- Thinking and reasoning settingsTurn thinking on or off, set the effort or token budget, and read the reasoning output.
- Web searchLet the model search the web and return sources with its answer.
- PDF, audio and structured outputSend PDF and audio as input and constrain the response to a schema.
Code Examples
from google import genaiclient = genai.Client(api_key="YOUR_OFOX_API_KEY",http_options={"api_version": "v1beta", "base_url": "https://api.ofox.io/gemini"},)response = client.models.generate_content(model="google/gemini-4-hydrogen",contents="Hello!",)print(response.text)
Related Models
Frequently Asked Questions
Google: Gemini 4 Hydrogen on Ofox.ai costs $1.5 per million input tokens and $7.5 per million output tokens. Pay-as-you-go, no monthly fees.
Google: Gemini 4 Hydrogen supports a context window of 1M tokens with max output of 66K tokens, allowing you to process large documents and maintain long conversations.
Simply set your base URL to https://api.ofox.io/v1 and use your Ofox API key. The API is OpenAI-compatible — just change the base URL and API key in your existing code.
Google: Gemini 4 Hydrogen supports the following capabilities: Vision, Function Calling, Reasoning, Prompt Caching, Web Search, Audio Input, Video Input, PDF Input. Access all features through the Ofox.ai unified API.