Update model costs - #52
Merged
Merged
Conversation
- Add missing claude-opus-5 pricing ($5.00 / $25.00 per 1M input/output tokens, same as Opus 4.8) — it was released before the last pricing update but never added to the cost table, so cost() silently returned None for it. - Add gemini-3.6-flash ($1.50 / $0.15 cached / $7.50) and gemini-3.5-flash-lite ($0.30 / $0.03 cached / $2.50), released by Google on 2026-07-21. Anthropic (aside from the opus-5 gap) and OpenAI pricing checked against current sources and found unchanged since the last update. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WhhGTHqjy9KX6w6yGqDEHQ
1 task
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.
Summary
claude-opus-5pricing ($5.00 / $25.00 per 1M input/output tokens, same rate as Opus 4.8). This model had no entry at all, socost()silently returnedNonefor it despite it being a current, generally-available model.gemini-3.6-flash($1.50 / $0.15 cached / $7.50) andgemini-3.5-flash-lite($0.30 / $0.03 cached / $2.50) — new Google models released 2026-07-21.claude-opus-5gap) and OpenAI pricing were checked against current sources and found unchanged since the last update (Update model costs #50).Note: Google also released a
gemini-3.5-flash-cybermodel on the same date, but it's a restricted-access security model with no published per-token API pricing, so it isn't included here.Test plan
cargo test model_prices --libpasses (4/4)claude-opus-5was absent viagrepbefore adding it🤖 Generated with Claude Code
https://claude.ai/code/session_01WhhGTHqjy9KX6w6yGqDEHQ
Generated by Claude Code