Refract › Models › Gemini 4 Hydrogen
Gemini 4 Hydrogen API
Use Gemini 4 Hydrogen by Google through Refract's OpenAI-compatible API for $0.68 per 1M input and $3.41 per 1M output tokens. Pay per token, no subscription.
| Model ID | gemini-4-hydrogen |
|---|---|
| Provider | |
| Input, per 1M tokens | $0.68 |
| Output, per 1M tokens | $3.41 |
| Context window | 1,048,576 tokens |
About this model
Gemini 4 Hydrogen is Google's Gemini Hydrogen model on Refract, and 1 of the 6 Google models here costs more and 4 cost less. It reads up to 1M tokens of context and writes up to 66K tokens per reply. Repeated prompt prefixes are read from cache at $0.034 per 1M tokens, 95% less than fresh input, which is what makes long agent sessions cheap.
How it compares
- Gemini 4 Argon: Gemini 4 Argon costs 12% less; cached input $0.034 vs $0.030.
- Gemini 4 Carbon: Gemini 4 Carbon costs 33% more; cached input $0.034 vs $0.045.
- Gemini 4 Neon: Gemini 4 Neon costs 56% less; cached input $0.034 vs $0.080.
What a request costs
A typical chat message (2,000 tokens in, 400 out) costs about $0.0027. A coding-agent step (60,000 tokens in, 54,000 of them from cache, 800 out) costs about $0.0087.
Chat with Gemini 4 Hydrogen · Get an API key
Use it from code
curl https://refracthub.com/v1/chat/completions \
-H "Authorization: Bearer $REFRACT_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "gemini-4-hydrogen", "messages": [{"role": "user", "content": "Hello"}]}'from openai import OpenAI
client = OpenAI(base_url="https://refracthub.com/v1", api_key="YOUR_REFRACT_KEY")
reply = client.chat.completions.create(model="gemini-4-hydrogen", messages=[{"role": "user", "content": "Hello"}])
print(reply.choices[0].message.content)
Questions
How much does Gemini 4 Hydrogen cost on Refract?
$0.68 per 1M input tokens and $3.41 per 1M output tokens. You pay only for the tokens you use, with no subscription.
Gemini 4 Hydrogen or Gemini 4 Argon: which should I use?
Gemini 4 Argon is cheaper. Both work with the same key and the same API, so you can try one and switch by changing the model name from "gemini-4-hydrogen" to "gemini-4-argon".
Does it work with the OpenAI SDK?
Yes. Point the OpenAI SDK, or any OpenAI-compatible app, at https://refracthub.com/v1 with your Refract key and use the model name "gemini-4-hydrogen". The Anthropic Messages format works too.
Can I use Gemini 4 Hydrogen without writing code?
Yes. Chat with it on the web at https://refracthub.com/chat, or use the Refract desktop app for Windows.
Other Google models
- Gemini 4 Argon: $0.60 / $3.00 per 1M tokens
- Gemini 4 Carbon: $0.91 / $4.55 per 1M tokens
- Gemini 4 Neon: $0.90 / $0.90 per 1M tokens
- Gemma 4 26B A4B: $0.11 / $0.33 per 1M tokens
- Gemma 4 31B: $0.13 / $0.40 per 1M tokens