embabel-agent
embabel-agent copied to clipboard
Update Google GenAI models: add Gemini 4 Carbon, set Gemini 4 prices and deprecate Gemini 2.5 Pro/Flash
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-argonhas 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-proandgemini-2.5-flash. They shut down on 2026-12-01. After that date, Google reroutes their requests togemini-3.8-flashandgemini-3.5-flash-lite, billed at those models' prices. Their constants give no warning.
Expected
gemini-4-carbonis declared ingoogle-genai-models.ymland inGoogleGenAiModels.- 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_PROandGEMINI_2_5_FLASHare marked@Deprecated, with a replacement. They are not removed, so existing code keeps compiling.gemini-2.5-flash-liteis not deprecated by Google and stays as it is.
will push the PR tomorow