Repository navigation
Add Gemini 4 Carbon and Gemini 4 Hydrogen to the model registry - #195
Merged
Merged
Conversation
Google's strongest model, opened to paid Gemini API developers on 2026-11-10. Priced at the standard $4/$20 per MTok like Gemini 4 Argon, not the $2/$10 introductory rate that ends 2026-11-30. Registered with supports_temperature=False: Google's migration page says to remove temperature/top_p/top_k from requests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SQvDLzbNRmhcXcLvrNciZB
Google's named replacement for Gemini 3.8 Flash, released 2026-11-13. $1.50/$7.50 per MTok standard (aistudio.google.com/docs/pricing); registered with supports_temperature=False like Argon and Carbon. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SQvDLwjwn2id1pqTj58rVR
adambalogh
marked this pull request as ready for review
November 16, 2026 12:57
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The Gemini 4 Carbon and Hydrogen registry additions have no active review issues.
No open issues 🎉
What changed in this PR
Adds Gemini 4 Carbon and Hydrogen to the gateway’s Google model registry, enabling routing and billing before the paired chat-api catalog update.
Changes:
- Registers both models and their
gemini-4.0-*aliases at standard pricing, with temperature omitted. - Adds alias-resolution, pricing, and settled-cost tests.
- Updates supported-model documentation while retaining Argon and Gemini 3.8 Flash for existing callers.
| File | Description |
|---|---|
tests/test_pricing.py |
Adds resolution, configuration, and cost assertions for both models. |
tee_gateway/model_registry.py |
Registers models, aliases, prices, and temperature settings. |
README.md |
Adds both models to the Google provider table. |
CLAUDE.md |
Adds both models to the supported-provider reference. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Gemini 4 Carbon
gemini-4-carbon(opened to paid Gemini API developers 2026-11-10), with aliasesgemini-4-carbon/gemini-4.0-carbon. Google calls it its strongest model, built on Argon for the hardest long-horizon and multi-step reasoning. Inputs are text, image, video, audio and PDF; output is text; context is 1M tokens.supports_temperature=False. Google's What's new in Gemini 4 Carbon page says: "Removetemperature,top_p, andtop_kfrom your requests." The Google temperature-omission path from Fix Gemini 4 Argon failing every request on temperature=None #182 covers this.gemini-4-argonfrom the picker, since Carbon has the same price on the same tier. Argon stays registered here.Gemini 4 Hydrogen (added 2026-11-14)
gemini-4-hydrogen(released 2026-11-13), with aliasesgemini-4-hydrogen/gemini-4.0-hydrogen. Google names it the replacement for Gemini 3.8 Flash. Inputs are text, image, video, audio and PDF; output is text; context is 1M tokens./api/v1/modelslists the same rate.supports_temperature=False. Launch coverage of Google's migration notes (neurohive) saystemperature,top_pandtop_kare ignored, and minimal thinking is no longer supported. Omitting the field matches Argon and Carbon.gemini-3.8-flashand moves its row, grants and agent slot to Hydrogen. 3.8 Flash stays registered here.gemini-3.8-flashat $0.75 / $3.75 only through 2026-12-31, rising to $1.50 / $7.50 on 2027-01-01. The registry prices 3.8 Flash at $0.75 / $3.75, so it will under-bill from January unless it is repriced.Checks
make lintpasses, and so doesuv run --group test pytest tests/test_pricing.py(186 passed).uv.lockis unchanged.Paired chat-api PR: https://github.com/OpenGradient/chat-api/pull/501 (land this one first).
🤖 Generated with Claude Code
https://claude.ai/code/session_01SQvDLwjwn2id1pqTj58rVR