From 54bf43e669bf4ff8c709f31069fc038b986d1e28 Mon Sep 17 00:00:00 2001 From: fish <1770968958@qq.com> Date: Tue, 17 Nov 2026 00:26:04 +0900 Subject: [PATCH] fix(pricing): align Gemini 4 Hydrogen and Helix cache rates to 95% off --- pricing-catalog.json | 46 ++++++++++----------- sidecars/panel/test/audit-fixes.test.mjs | 8 ++-- sidecars/panel/test/model-identity.test.mjs | 6 +-- 3 files changed, 30 insertions(+), 30 deletions(-) diff --git a/pricing-catalog.json b/pricing-catalog.json index 4bd92ae..f1d8808 100644 --- a/pricing-catalog.json +++ b/pricing-catalog.json @@ -1,7 +1,7 @@ { "schemaVersion": 1, - "catalogVersion": "2026.11.15.1", - "updatedAt": "2026-11-15T15:00:00+09:00", + "catalogVersion": "2026.11.17.1", + "updatedAt": "2026-11-17T00:15:00+09:00", "latestPluginVersion": "1.5.0", "releaseUrl": "https://github.com/yuhuan-dev/antigravity-usage-monitor/releases/latest", "downloadUrl": "https://github.com/yuhuan-dev/antigravity-usage-monitor/releases/latest/download/usage-monitor.zip", @@ -21,27 +21,27 @@ "gemini-4-argon-f": { "input": 2.00, "cache": 0.10, "output": 10.0, "short": "argon-4", "family": "Gemini" }, "gemini-4-argon-disabled": { "input": 2.00, "cache": 0.10, "output": 10.0, "short": "argon-4", "family": "Gemini" }, "gemini-4-argon": { "input": 2.00, "cache": 0.10, "output": 10.0, "short": "argon-4", "family": "Gemini" }, - "gemini-4-hydrogen-xhigh": { "input": 1.50, "cache": 0.15, "output": 7.50, "short": "hydrogen-4-xhigh", "family": "Gemini" }, - "gemini-4-hydrogen-high": { "input": 1.50, "cache": 0.15, "output": 7.50, "short": "hydrogen-4-high", "family": "Gemini" }, - "gemini-4-hydrogen-medium": { "input": 1.50, "cache": 0.15, "output": 7.50, "short": "hydrogen-4", "family": "Gemini" }, - "gemini-4-hydrogen-low": { "input": 1.50, "cache": 0.15, "output": 7.50, "short": "hydrogen-4-low", "family": "Gemini" }, - "gemini-4-hydrogen-tiered": { "input": 1.50, "cache": 0.15, "output": 7.50, "short": "hydrogen-4", "family": "Gemini" }, - "gemini-4-hydrogen": { "input": 1.50, "cache": 0.15, "output": 7.50, "short": "hydrogen-4", "family": "Gemini" }, - "gemini-flash-worker-agy": { "input": 1.50, "cache": 0.15, "output": 7.50, "short": "hydrogen-4", "family": "Gemini" }, - "gemini-hydrogen-xhigh": { "input": 1.50, "cache": 0.15, "output": 7.50, "short": "hydrogen-xhigh", "family": "Gemini" }, - "gemini-hydrogen-high": { "input": 1.50, "cache": 0.15, "output": 7.50, "short": "hydrogen-high", "family": "Gemini" }, - "gemini-hydrogen-medium": { "input": 1.50, "cache": 0.15, "output": 7.50, "short": "hydrogen", "family": "Gemini" }, - "gemini-hydrogen-low": { "input": 1.50, "cache": 0.15, "output": 7.50, "short": "hydrogen-low", "family": "Gemini" }, - "gemini-hydrogen-tiered": { "input": 1.50, "cache": 0.15, "output": 7.50, "short": "hydrogen", "family": "Gemini" }, - "gemini-hydrogen": { "input": 1.50, "cache": 0.15, "output": 7.50, "short": "hydrogen", "family": "Gemini" }, - "gemini-4-helix-high": { "input": 0.30, "cache": 0.03, "output": 2.50, "short": "helix-4-high", "family": "Gemini" }, - "gemini-4-helix-medium": { "input": 0.30, "cache": 0.03, "output": 2.50, "short": "helix-4", "family": "Gemini" }, - "gemini-4-helix-low": { "input": 0.30, "cache": 0.03, "output": 2.50, "short": "helix-4-low", "family": "Gemini" }, - "gemini-4-helix": { "input": 0.30, "cache": 0.03, "output": 2.50, "short": "helix-4", "family": "Gemini" }, - "gemini-helix-high": { "input": 0.30, "cache": 0.03, "output": 2.50, "short": "helix-high", "family": "Gemini" }, - "gemini-helix-medium": { "input": 0.30, "cache": 0.03, "output": 2.50, "short": "helix", "family": "Gemini" }, - "gemini-helix-low": { "input": 0.30, "cache": 0.03, "output": 2.50, "short": "helix-low", "family": "Gemini" }, - "gemini-helix": { "input": 0.30, "cache": 0.03, "output": 2.50, "short": "helix", "family": "Gemini" }, + "gemini-4-hydrogen-xhigh": { "input": 1.50, "cache": 0.075, "output": 7.50, "short": "hydrogen-4-xhigh", "family": "Gemini" }, + "gemini-4-hydrogen-high": { "input": 1.50, "cache": 0.075, "output": 7.50, "short": "hydrogen-4-high", "family": "Gemini" }, + "gemini-4-hydrogen-medium": { "input": 1.50, "cache": 0.075, "output": 7.50, "short": "hydrogen-4", "family": "Gemini" }, + "gemini-4-hydrogen-low": { "input": 1.50, "cache": 0.075, "output": 7.50, "short": "hydrogen-4-low", "family": "Gemini" }, + "gemini-4-hydrogen-tiered": { "input": 1.50, "cache": 0.075, "output": 7.50, "short": "hydrogen-4", "family": "Gemini" }, + "gemini-4-hydrogen": { "input": 1.50, "cache": 0.075, "output": 7.50, "short": "hydrogen-4", "family": "Gemini" }, + "gemini-flash-worker-agy": { "input": 1.50, "cache": 0.075, "output": 7.50, "short": "hydrogen-4", "family": "Gemini" }, + "gemini-hydrogen-xhigh": { "input": 1.50, "cache": 0.075, "output": 7.50, "short": "hydrogen-xhigh", "family": "Gemini" }, + "gemini-hydrogen-high": { "input": 1.50, "cache": 0.075, "output": 7.50, "short": "hydrogen-high", "family": "Gemini" }, + "gemini-hydrogen-medium": { "input": 1.50, "cache": 0.075, "output": 7.50, "short": "hydrogen", "family": "Gemini" }, + "gemini-hydrogen-low": { "input": 1.50, "cache": 0.075, "output": 7.50, "short": "hydrogen-low", "family": "Gemini" }, + "gemini-hydrogen-tiered": { "input": 1.50, "cache": 0.075, "output": 7.50, "short": "hydrogen", "family": "Gemini" }, + "gemini-hydrogen": { "input": 1.50, "cache": 0.075, "output": 7.50, "short": "hydrogen", "family": "Gemini" }, + "gemini-4-helix-high": { "input": 0.30, "cache": 0.015, "output": 2.50, "short": "helix-4-high", "family": "Gemini" }, + "gemini-4-helix-medium": { "input": 0.30, "cache": 0.015, "output": 2.50, "short": "helix-4", "family": "Gemini" }, + "gemini-4-helix-low": { "input": 0.30, "cache": 0.015, "output": 2.50, "short": "helix-4-low", "family": "Gemini" }, + "gemini-4-helix": { "input": 0.30, "cache": 0.015, "output": 2.50, "short": "helix-4", "family": "Gemini" }, + "gemini-helix-high": { "input": 0.30, "cache": 0.015, "output": 2.50, "short": "helix-high", "family": "Gemini" }, + "gemini-helix-medium": { "input": 0.30, "cache": 0.015, "output": 2.50, "short": "helix", "family": "Gemini" }, + "gemini-helix-low": { "input": 0.30, "cache": 0.015, "output": 2.50, "short": "helix-low", "family": "Gemini" }, + "gemini-helix": { "input": 0.30, "cache": 0.015, "output": 2.50, "short": "helix", "family": "Gemini" }, "gemini-3.8-flash-high": { "input": 0.75, "cache": 0.075, "output": 3.75, "short": "flash-3.8-high", "family": "Gemini" }, "gemini-3.8-flash-medium": { "input": 0.75, "cache": 0.075, "output": 3.75, "short": "flash-3.8", "family": "Gemini" }, "gemini-3.8-flash-low": { "input": 0.30, "cache": 0.03, "output": 2.50, "short": "flash-3.8-low", "family": "Gemini" }, diff --git a/sidecars/panel/test/audit-fixes.test.mjs b/sidecars/panel/test/audit-fixes.test.mjs index a3c970b..2d6e179 100644 --- a/sidecars/panel/test/audit-fixes.test.mjs +++ b/sidecars/panel/test/audit-fixes.test.mjs @@ -70,7 +70,7 @@ test('BUG-01 & INCON-01: Google-proxied Claude/GPT/o-series never misclassify as const m20 = h.resolveModelInfo('MODEL_PLACEHOLDER_M20', new Map(), 'API_PROVIDER_GOOGLE_GEMINI'); assert.equal(m20.modelId, 'gemini-3.5-flash'); - // Gemini Hydrogen ($1.50/$0.15/$7.50 unified pricing) & Helix (3.5 Flash Lite pricing), shared Gemini pool + // Gemini Hydrogen ($1.50/$0.075/$7.50) & Helix ($0.30/$0.015/$2.50), shared Gemini pool const dynHydrogenMap = new Map([ ['MODEL_PLACEHOLDER_M480', { modelId: '', label: 'Gemini 4 Hydrogen (High)' }], ['MODEL_PLACEHOLDER_M481', { modelId: '', label: 'Gemini 4 Hydrogen (Low)' }], @@ -81,13 +81,13 @@ test('BUG-01 & INCON-01: Google-proxied Claude/GPT/o-series never misclassify as assert.equal(hydroHigh.shortName, 'hydrogen-4-high'); assert.deepEqual( { i: hydroHigh.pricing?.input, c: hydroHigh.pricing?.cache, o: hydroHigh.pricing?.output }, - { i: 1.5, c: 0.15, o: 7.5 } + { i: 1.5, c: 0.075, o: 7.5 } ); const hydroLow = h.resolveModelInfo('MODEL_PLACEHOLDER_M481', dynHydrogenMap); assert.equal(hydroLow.shortName, 'hydrogen-4-low'); assert.deepEqual( { i: hydroLow.pricing?.input, c: hydroLow.pricing?.cache, o: hydroLow.pricing?.output }, - { i: 1.5, c: 0.15, o: 7.5 } + { i: 1.5, c: 0.075, o: 7.5 } ); const hydroCodename = h.resolveModelInfo('gemini-hydrogen'); assert.equal(hydroCodename.family, 'Gemini'); @@ -100,7 +100,7 @@ test('BUG-01 & INCON-01: Google-proxied Claude/GPT/o-series never misclassify as assert.equal(helixInfo.shortName, 'helix-4'); assert.deepEqual( { i: helixInfo.pricing?.input, c: helixInfo.pricing?.cache, o: helixInfo.pricing?.output }, - { i: 0.3, c: 0.03, o: 2.5 } + { i: 0.3, c: 0.015, o: 2.5 } ); const helixCodename = h.resolveModelInfo('gemini-helix'); assert.equal(helixCodename.family, 'Gemini'); diff --git a/sidecars/panel/test/model-identity.test.mjs b/sidecars/panel/test/model-identity.test.mjs index 23f770d..4a60317 100644 --- a/sidecars/panel/test/model-identity.test.mjs +++ b/sidecars/panel/test/model-identity.test.mjs @@ -339,12 +339,12 @@ test('real-world M669 worker steps (responseModel gemini-flash-worker-agy, displ assert.equal(s2.modelShort, 'hydrogen-4'); assert.equal(s2.modelLabel, 'Orchestrator Worker (Hydrogen)'); assert.equal(s2.modelUpstream, 'gemini-flash-worker-agy (hydrogen-4)'); - assert.equal(s2.costUsd, 0.0103); + assert.equal(s2.costUsd, 0.0097); assert.equal(s3.modelShort, 'hydrogen-4'); assert.equal(s3.modelLabel, 'Orchestrator Worker (Hydrogen)'); assert.equal(s3.modelUpstream, 'gemini-flash-worker-agy (hydrogen-4)'); - assert.equal(s3.costUsd, 0.0103); + assert.equal(s3.costUsd, 0.0097); assert.equal(p.consumption.account.unpricedCalls, 0); const orchRow = p.modelBreakdown.find((m) => m.label === 'Orchestrator (Carbon)'); @@ -392,7 +392,7 @@ test('new Carbon (M427/M437/M438) and Hydrogen XHigh/High/Medium/Low (M525-M528) assert.equal(xhigh.shortName, 'hydrogen-4-xhigh'); assert.equal(xhigh.baseLabel, 'Gemini 4 Hydrogen'); assert.equal(xhigh.pricing.input, 1.5); - assert.equal(xhigh.pricing.cache, 0.15); + assert.equal(xhigh.pricing.cache, 0.075); assert.equal(xhigh.pricing.output, 7.5); assert.equal(resolveModelInfo('MODEL_PLACEHOLDER_M525').shortName, 'hydrogen-4-high'); assert.equal(resolveModelInfo('MODEL_PLACEHOLDER_M526').shortName, 'hydrogen-4');