You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
price Claude Fable 5, Opus 5, and Sonnet 5 for direct Anthropic and OpenRouter routes
price Gemini 3.6 Flash for direct Google and OpenRouter routes
correct Claude Haiku 4.5 from the retired Haiku 3.5 rate to its current 1/5 rate
keep every older pricing row for compatibility
Sonnet 5 uses the published standard 3/15 rate as a conservative static ceiling. Anthropic and OpenRouter currently apply promotional 2/10 pricing through August 31, 2026; using the standard ceiling prevents budget enforcement from silently undercounting after that date.
Verified: full test + vet green at head in an isolated worktree; PR is one commit based directly on master head 11aa5a3; every pre-existing row retained; Sonnet 5 conservative post-promotion ceiling is the right budget-enforcement call (undercounting after 2026-08-31 would be silent).
Checked lookup semantics against the new rows: exact-then-longest-prefix means openrouter/anthropic/claude-sonnet-4-6 (used by downstream examples) resolves via the claude-sonnet-4 prefix at the same 3/15 rate — no gap.
Non-blocking note: the new OpenRouter haiku row is keyed anthropic/claude-haiku-4.5 (dot, live catalog slug) while direct-Anthropic uses claude-haiku-4-5 (dash). The dash form under the openrouter provider gets no row and no prefix match — zero-cost telemetry. Nothing in-tree does this; if it shows up in operator reports, add a dash alias rather than renaming.
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
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.
Summary
Sonnet 5 uses the published standard 3/15 rate as a conservative static ceiling. Anthropic and OpenRouter currently apply promotional 2/10 pricing through August 31, 2026; using the standard ceiling prevents budget enforcement from silently undercounting after that date.
Official pricing sources:
Verification
go test ./...go vet ./...Closes #40