Skip to content

Update model costs - #52

Merged
anchpop merged 1 commit into
mainfrom
claude/quirky-albattani-ljffkg
Aug 1, 2026
Merged

Update model costs#52
anchpop merged 1 commit into
mainfrom
claude/quirky-albattani-ljffkg

Conversation

@anchpop

@anchpop anchpop commented Jul 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add missing claude-opus-5 pricing ($5.00 / $25.00 per 1M input/output tokens, same rate as Opus 4.8). This model had no entry at all, so cost() silently returned None for it despite it being a current, generally-available model.
  • 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) — new Google models released 2026-07-21.
  • Anthropic (aside from the claude-opus-5 gap) 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-cyber model 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 --lib passes (4/4)
  • Verified claude-opus-5 was absent via grep before adding it
  • Cross-checked new Gemini pricing across multiple independent sources (TechCrunch, Axios, Google's own blog post, WinBuzzer, SecurityAffairs)

🤖 Generated with Claude Code

https://claude.ai/code/session_01WhhGTHqjy9KX6w6yGqDEHQ


Generated by Claude Code

- 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
@anchpop
anchpop merged commit 8716ca1 into main Aug 1, 2026
5 checks passed
@anchpop
anchpop deleted the claude/quirky-albattani-ljffkg branch August 1, 2026 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants