Skip to content

Fix model pricing: correct $0 prices for GPT-5.4 and Claude Sonnet 4.6#531

Merged
rajbos merged 1 commit intomainfrom
update-model-pricing-march-2026
Mar 30, 2026
Merged

Fix model pricing: correct $0 prices for GPT-5.4 and Claude Sonnet 4.6#531
rajbos merged 1 commit intomainfrom
update-model-pricing-march-2026

Conversation

@rajbos
Copy link
Copy Markdown
Owner

@rajbos rajbos commented Mar 30, 2026

Problem

Cost estimates were significantly underreporting because two of the most heavily-used models had $0.00 pricing, and two reasoning models were overpriced by 3.6×. The pricing data sources hadn't been refreshed since January 16, 2026.

Critical Fixes

Model Before (in/out per M) After (in/out per M) Impact
gpt-5.4 $0.00 / $0.00 $2.50 / $15.00 🔴 All GPT-5.4 usage was FREE
claude-sonnet-4.6 $0.00 / $0.00 $3.00 / $15.00 🔴 All Sonnet 4.6 usage was FREE
o3-mini $4.00 / $16.00 $1.10 / $4.40 Was 3.6× too high
o4-mini $4.00 / $16.00 $1.10 / $4.40 Was 3.6× too high

New Models Added

Model Input Output Tier
gpt-5.4-mini $0.25 $2.00 standard
gemini-3.1-flash-lite $0.25 $1.50 unknown

New Pricing Sources

Added 3 new sources for better accuracy and verification going forward:

  • xAI Grok API (https://x.ai/api) — covers Grok models
  • GitHub Copilot Premium Requests — validates multiplier values
  • OpenRouter (https://openrouter.ai) — cross-provider pricing aggregator for verification

Also added the official Anthropic platform docs URL alongside the marketing page.

Files Changed

  • vscode-extension/src/modelPricing.json — pricing corrections, new models, new sources
  • vscode-extension/src/tokenEstimators.json — token ratios for new models
  • vscode-extension/src/README.md — updated source URLs and Gemini pricing section
  • .github/skills/refresh-json-data/SKILL.md — updated source list

Verification

  • npm run compile passes (extension)
  • npm run build passes (CLI)
  • ✅ JSON validation passes (50 models, 50 estimators, 7 sources)

Critical fixes:
- GPT-5.4: .00/.00 -> .50/.00 (was released after last update)
- Claude Sonnet 4.6: .00/.00 -> .00/.00 (was released after last update)
- o3-mini: .00/.00 -> .10/.40 (was 3.6x too high)
- o4-mini: .00/.00 -> .10/.40 (was 3.6x too high)

New models added:
- gpt-5.4-mini (.25/.00)
- gemini-3.1-flash-lite (.25/.50)

New pricing sources added:
- xAI Grok API (https://x.ai/api)
- GitHub Copilot Premium Requests docs (multiplier validation)
- OpenRouter (cross-provider pricing verification)
- Anthropic platform.claude.com docs

Updated all source retrieval dates to 2026-03-30.
Updated README and refresh-json-data skill with new source URLs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@rajbos rajbos merged commit 746979f into main Mar 30, 2026
22 checks passed
@rajbos rajbos deleted the update-model-pricing-march-2026 branch March 30, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant