Files
magpie/internal
yetone ba0bd421ea provider, sessions: Grok's grok-4.7-build-fast is priced at twice grok-4.7, so a group of Cursor's and Grok's Grok 4.7 fast counts Grok's calls too (TradingLife on Discord)
cbc96b599 priced Cursor's grok-4.7-fast ids, but the group's other half,
Grok's own fast variant, stayed unpriced: Grok Build lists it as
grok-4.7-build-fast, which no models.dev catalog has, and
TestCursorGrokFastPrice asserted it unpriced. Every call the group sent
to Grok (built-in or moved to the Grok plugin, both provider "grok") was
recorded with no cost, so on v0.1.1247 the group still showed none for
those calls.

xAI says what it costs (https://x.ai/news/grok-4-7, read 2026-10-15):
"We also serve a fast variant with twice the output speed at twice the
price". Provider.ListPrice now prices a Grok account's (Account.Agent
"grok" or the grok plugin's) grok-<ver>-build-fast, at a window too
(@500k), at twice its model's list price, every tier with it ($4 / $1 /
$12, $8 / $2 / $24 past 200k for grok-4.7). A Grok CLI session's bare
grok-4.7-build-fast on the Sessions page is priced the same way. Other
providers and a build-fast of a model with no price stay unpriced.

Not changed: a member sent fast through Group.Fast (Cursor plugin
grok-4.7 with service_tier priority, or Codex priority) is still priced
at the standard rate; no record's price reads TierSent yet.

Run: go test -tags nogui ./internal/provider ./internal/sessions
./internal/usage (ok); go vet -tags nogui for darwin, linux, windows on
provider and sessions; gofmt -l clean. Broken by hand: with the
grokFastPrice lookup off, TestGrokBuildFastPrice fails for the built-in
and the plugin; with the sessions branch off, TestPriceOfGrokEffort
fails. Not checked against the reporter's own usage log or a live Grok
account.
2026-10-15 23:08:01 +08:00
..
…
…
…