Gemini 4 Hydrogen API
Google's fast, efficient Gemini 4 model for everyday coding, agent workflows, and knowledge work
- Input per 1M
- $1.50
- Cached input per 1M
- $0.075
- Output per 1M
- $7.50
- Context window
- 1M
Call Gemini 4 Hydrogen in one request
Runware's endpoint takes the OpenAI Chat Completions format, so the OpenAI SDK works as it is. Change the base URL, key, and model ID.
google:gemini@4-hydrogenimport os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["RUNWARE_API_KEY"],
base_url="https://api.runware.ai/v1",
)
stream = client.chat.completions.create(
model="google:gemini@4-hydrogen",
messages=[
{"role": "user", "content": "What is the capital of France?"},
],
stream=True,
stream_options={"include_usage": True},
)
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)
if chunk.usage:
print("\n", chunk.usage)Usage and cost come back with the response. The stream ends with the request's token counts and its cost, so there is no second call to make.
About Gemini 4 Hydrogen
Gemini 4 Hydrogen is the fast, efficient model in Google's Gemini 4 family, built for everyday coding, agent workflows, and knowledge work. It accepts text, images, video, audio, and PDFs, with a 1M-token context window and configurable thinking effort. It is well suited to high-volume coding and agent tasks, worker and verifier agents in multi-model workflows, and turning long documents, spreadsheets, and recordings into reports and structured deliverables.
- Developer
- Released
- 12 Nov, 2026
- Input
- Text, Image, Video, Audio
- Context window
- 1M tokens
- Max output
- 66K tokens
- API
- OpenAI Chat Completions
Already on another provider?
Code that uses the OpenAI SDK moves over with three changes: the base URL, the API key and the model ID. Moving production traffic? We'll help you plan the switch.
More LLMs on Runware
Same key, same endpoint, same per-token billing. Switching models means changing one ID.
Start on demand. Scale on dedicated.
Call your first model in minutes, or tell us about your workload and we will size dedicated capacity for it.