mirror of
https://github.com/lWolvesl/antigravity-usage-monitor.git
synced 2026-11-27 01:19:25 +08:00
fix(pricing): align Gemini 4 Hydrogen and Helix cache rates to 95% off
This commit is contained in:
+23
-23
@@ -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" },
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user