Every service tier was priced at standard, so a Fast (priority) call
was billed at half its price, and a subscription's API-equivalent
value was half too.
Sources:
- OpenAI, developers.openai.com/api/docs/pricing: gpt-6.1-sol Fast is
$4 / $20 / $0.20 cached (2x standard $2 / $10 / $0.10); Ultrafast 6x,
Flex 0.5x. "Priority processing was renamed Fast mode on July 30,
2026."
- Anthropic, platform.claude.com/docs/en/about-claude/pricing: Claude
Opus 5.5 fast mode $8 / $40 (2x), "across the full context window".
- models.dev's experimental.modes in magpie's catalog carry the same
prices: OpenAI's keyed by provider.body.service_tier, Anthropic's by
speed "fast".
catalog.TierPrice reads those modes, only where the model's base price
is the vendor's own (a relay's or a custom price is left alone). The
Ledger's Pricer and the window's apiPricer both price by the billed
tier: TierServed when the vendor says (Codex's backend always says
auto/default, so servedTierAt keeps it "" and TierSent is used),
otherwise TierSent. The tier ask is noted so a catalog change re-keys
the request index, and settledCountVersion goes to 6 so stored settled
costs are counted again.
Run on mica. The full run was at this change on f9492fd8e; it was then
rebased onto b1d5912de (two commits, Gemini draw and Antigravity
discovery, no file in common). At the pushed head: go vet of gateway,
provider, usage and catalog; go test of internal/agent, usage and
catalog in full; gateway and provider -run Speed|Reasoning|TTFT|
FirstToken|Gemini|Draw|Tier: all ok.
At f9492fd8e:
- gofmt -l: clean
- go vet ./..., GOOS=linux go vet -tags nogui ./..., GOOS=windows go
vet ./..., go build, GOOS=linux go build -tags nogui, GOOS=windows
go build: ok
- go test -tags nogui -count=1 -timeout 45m ./...: 103 ok, no FAIL
(usage 108s, catalog 4s), log kept whole and grepped
- Broken by hand: TestFastCallsPricedAtTheirTier on the old ledger.go
and window_holds.go is red (Codex Fast 0.11 vs 0.22, ledger total
1.188 vs 2.123); green on the new. Cases: Codex priority 2x,
ultrafast 6x, standard 1x; API priority served priority 2x, served
default 1x; flex 0.5x; relay at rate 0.8 unchanged; Claude fast 2x,
standard 1x; a 300k-input Fast call.
Not tried:
- Long-context Fast is the long-context price times the Fast ratio;
models.dev lists no long-context Fast price of its own.
- The Usage page was not opened against a real Fast row after the fix.