Skip to content

Add Gemini 4 Carbon and Gemini 4 Hydrogen to the model registry - #195

Merged
adambalogh merged 2 commits into
mainfrom
og/compassionate-thompson-ckg4zt
Nov 16, 2026
Merged

adambalogh merged 2 commits into
mainfrom
og/compassionate-thompson-ckg4zt

Conversation

@adambalogh

@adambalogh adambalogh commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Gemini 4 Carbon

  • Registers Google gemini-4-carbon (opened to paid Gemini API developers 2026-11-10), with aliases gemini-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.
  • Pricing: $4 / $20 per MTok, Google's standard rate, the same as Gemini 4 Argon. The $2 / $10 introductory rate runs until 2026-11-30 and is deliberately not used, matching how Argon was priced in Reprice Gemini 4 Argon at the standard $4/$20 rate #181. Source: Gemini API pricing.
  • Parameters: registered with supports_temperature=False. Google's What's new in Gemini 4 Carbon page says: "Remove temperature, top_p, and top_k from your requests." The Google temperature-omission path from Fix Gemini 4 Argon failing every request on temperature=None #182 covers this.
  • Supersedes: the paired chat-api PR hides gemini-4-argon from the picker, since Carbon has the same price on the same tier. Argon stays registered here.

Gemini 4 Hydrogen (added 2026-11-14)

  • Registers Google gemini-4-hydrogen (released 2026-11-13), with aliases gemini-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.
  • Pricing: $1.50 / $7.50 per MTok standard, with no introductory rate. Source: Gemini API pricing. OpenRouter's /api/v1/models lists the same rate.
  • Parameters: registered with supports_temperature=False. Launch coverage of Google's migration notes (neurohive) says temperature, top_p and top_k are ignored, and minimal thinking is no longer supported. Omitting the field matches Argon and Carbon.
  • Supersedes: the paired chat-api PR hides gemini-3.8-flash and moves its row, grants and agent slot to Hydrogen. 3.8 Flash stays registered here.
  • Heads-up, not changed here: Google's pricing page lists gemini-3.8-flash at $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

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

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 adambalogh changed the title Add Gemini 4 Carbon to the model registry Add Gemini 4 Carbon and Gemini 4 Hydrogen to the model registry Nov 14, 2026
@adambalogh
adambalogh marked this pull request as ready for review November 16, 2026 12:57
Copilot AI balanced review requested due to automatic review settings November 16, 2026 12:57
@adambalogh
adambalogh merged commit f51a4e9 into main Nov 16, 2026
9 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants