DEV Community

TokenLean
TokenLean

Posted on Originally published at tokenlean.wordpress.com

Gemini 4 Carbon doubles in price on Dec 1: what your agent bill does, and a 20-line fix

Disclosure: this post contains an affiliate link; I may earn a commission at no cost to you.

TL;DR: Gemini 4 Carbon costs $2 in / $10 out per 1M tokens until Nov 30, then $4 / $20. Claude Fable 5.2 launched Nov 9 at $8 / $40 (20% below 5.1). Gemini 4 Hydrogen (Nov 12) is $1.50 / $7.50 flat. If you hard-coded one model, your December bill can double. Route by task instead.

Prices (per 1M tokens, from the vendors' announcements)

Model Input Output Note
Gemini 4 Carbon (now) $2 $10 intro, ends Nov 30
Gemini 4 Carbon (Dec 1) $4 $20 announced
Gemini 4 Hydrogen $1.50 $7.50 flat across 1M window
Claude Fable 5.2 $8 $40 cache hits $0.20
Muse Ember $0.10 $0.50 cheap tier

Worked example

Assumption: an agent run uses 30K input and 5K output tokens, 2,000 runs a month.
Carbon today: 0.03 x 2 + 0.005 x 10 = $0.11 per run, $220/month. On Dec 1: $0.22 per run, $440/month. Hydrogen: $0.0825 per run, $165/month. Fable 5.2: $0.44 per run, $880/month.

Copy-paste: a tiny router

import os
TIERS = {
  "cheap":  "muse-ember",        # classification, extraction
  "default":"gemini-4-hydrogen", # everyday coding/agent steps
  "hard":   "gemini-4-carbon",   # only when a cheaper tier failed
}
def pick(task):
    if task["kind"] in ("classify","extract","summarize"): return TIERS["cheap"]
    if task.get("retries",0) >= 1 or task.get("risk")=="high": return TIERS["hard"]
    return TIERS["default"]
Enter fullscreen mode Exit fullscreen mode

Send every call through one OpenAI-compatible gateway (LiteLLM works) so switching is a config edit, not a rewrite. Log tokens per tier weekly and check the share going to "hard".

Where to run it

A small always-on box keeps the gateway and logs cheap and independent of your laptop. I run mine on a Hostinger VPS: Hostinger VPS.

Decision table

Situation Pick
Bulk extraction Muse Ember
Daily agent steps Hydrogen
Failed twice / high stakes Carbon or Fable 5.2

Sources

Anthropic Fable/Mythos 5.2 announcement (Nov 9); Google Gemini 4 Carbon post (Nov 10); LiteLLM Gemini 4 Hydrogen post (Nov 12).

Full disclosure: some links on TokenLean are affiliate links. If you buy through them I may earn a commission at no extra cost to you. I only recommend tools I'd use; prices change, so verify on the vendor pages.

Top comments (0)