embabel-agent icon indicating copy to clipboard operation
embabel-agent copied to clipboard

Update Google GenAI models: add Gemini 4 Carbon, set Gemini 4 prices and deprecate Gemini 2.5 Pro/Flash

Open azanux opened this issue 3 weeks ago • 1 comments

Problem

The Google GenAI (Gemini) model list is out of date again.

  • Missing model. Google now offers gemini-4-carbon, which is not declared.
  • Missing price. gemini-4-argon has no price, because Google had not published one when it was added (#2157). Without a price, the cost of every call to it is reported as $0.
  • Retiring models are not flagged. On 2026-11-02, Google deprecated gemini-2.5-pro and gemini-2.5-flash. They shut down on 2026-12-01. After that date, Google reroutes their requests to gemini-3.8-flash and gemini-3.5-flash-lite, billed at those models' prices. Their constants give no warning.

Expected

  • gemini-4-carbon is declared in google-genai-models.yml and in GoogleGenAiModels.
  • Both Gemini 4 models have Google's published price: $2.00 / $10.00 per 1M input / output tokens until 2026-11-30, then $4.00 / $20.00 from 2026-12-01.
  • GEMINI_2_5_PRO and GEMINI_2_5_FLASH are marked @Deprecated, with a replacement. They are not removed, so existing code keeps compiling.
  • gemini-2.5-flash-lite is not deprecated by Google and stays as it is.

azanux avatar Nov 11 '26 16:11 azanux

will push the PR tomorow

azanux avatar Nov 11 '26 16:11 azanux