From a0f282f262ba7eb0ab14cbc46e84fa3b363a4b41 Mon Sep 17 00:00:00 2001 From: Steven Chong <25894545+teamchong@users.noreply.github.com> Date: Thu, 21 May 2026 11:36:37 -0400 Subject: [PATCH] fix(dashboard): correct Opus 4.7 input rate from $5/Mtok to $2.50/Mtok MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous value was Opus 4.5/4.6 pricing. Opus 4.7 input is $2.50/Mtok, output $12.50/Mtok. The dollar-saved headline was overstated by 2×. OUTPUT_TOKEN_RATE (5×) and cache multipliers (1.25×/0.10×) remain correct as those ratios are consistent across all Claude models. --- src/dashboard.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/dashboard.ts b/src/dashboard.ts index da23fcf..90b4062 100644 --- a/src/dashboard.ts +++ b/src/dashboard.ts @@ -178,15 +178,15 @@ interface Totals { const OUTPUT_TOKEN_RATE = 5.0; /** Per-million-token input rate ASSUMED for the headline dollar figure. - * Source: [docs-pricing] — Claude Opus 4.7 base input is $5.00/Mtok. + * Source: [docs-pricing] — Claude Opus 4.7 base input is $2.50/Mtok. * * This is exposed on /proxy-stats as `pricing_assumptions.input_per_mtok` * so the operator can see what we assumed and override if they're * running against a non-default deployment (Bedrock/Vertex add a 10% * premium per [docs-pricing], Sonnet would be $3/Mtok, etc.). The - * previous value here was $15/Mtok — that was Opus 3 pricing and over- - * stated dollar savings by 3× on Opus 4.x deployments. */ -const ASSUMED_INPUT_USD_PER_MTOK = 5.0; + * previous value here was $5/Mtok — that was Opus 4.5/4.6 pricing and over- + * stated dollar savings by 2× on Opus 4.7. */ +const ASSUMED_INPUT_USD_PER_MTOK = 2.5; export class DashboardState { private recent: RecentRow[] = []; @@ -801,7 +801,7 @@ const DASHBOARD_HTML = `