fix(pricing): sync Grok rates to xAI's published rate (blockrun#503) - #135
Merged
Conversation
Not a docs fix — src/pricing.ts (and the picker label it feeds) is the executable table this client estimates and displays cost from, so stale values mis-state what a call costs. The gateway repriced six Grok SKUs to xAI's list on 2026-09-04, removing a resale spread of up to +140% on output: xai/grok-4.3 $1.50/$4.00 -> $1.25/$2.50 xai/grok-4.5 $2.50/$9.00 -> $2.00/$6.00 xai/grok-build-0.1 $1.50/$3.00 -> $1.00/$2.00 No price guard reaches this repo — the gateway's drift sweep covers its own sheets only, and brand/consumers.json lists 15 repos it cannot see. Found by grep. CHANGELOG entries left alone on purpose: a dated entry records what the price was that day. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ChUparsmmkz1GJrvzqmuvL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-on to blockrun#503 (live in production since 2026-09-04).
This one is not a docs fix. The values changed here are the executable price table this client uses to estimate and display cost, so stale entries here mis-state what a call will cost — not just what a README says.
Six Grok SKUs on the gateway carried a resale spread over xAI's published rate — up to +140% on output — while the site claimed "provider list price on chat tokens, no markup". The prices were moved rather than the claim:
xai/grok-4.3xai/grok-4.5xai/grok-build-0.1Verified against
docs.x.ai/docs/models; the blockrun-sol agent independently re-checked all 24 numbers (both axes, both tiers) against OpenRouter's live endpoint list.No price guard reaches this repo —
brand/consumers.jsonlists 15 repos and the gateway's drift sweep covers its own sheets only. Found by grep, not by CI.CHANGELOG entries are deliberately unchanged. A dated entry records what the price was on that day.
🤖 Generated with Claude Code
https://claude.ai/code/session_01ChUparsmmkz1GJrvzqmuvL