Make Sonnet 5 pricing permanent - #235
Conversation
Use Anthropic's permanent $2 input and $10 output per million token rates as Sonnet 5's durable pricing. Remove the obsolete September transition to $3/$15 and update model and analyzer tests to prove pricing remains unchanged across the boundary.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughClaude Sonnet 5 now uses permanent $2/$10 pricing with Anthropic cache rates of $2.50/$0.20. Dated September 2026 pricing was removed, and tests verify stable boundary totals, alias resolution, and analyzer costs. ChangesSonnet 5 pricing
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Why
Anthropic initially described Claude Sonnet 5's $2 per million input token and $10 per million output token rates as introductory pricing. Splitrail therefore retained the previous $3/$15 Sonnet rates as the durable default and scheduled the introductory rates to expire on September 1, 2026.
Anthropic updated the Sonnet 5 launch announcement on August 10, 2026 to make the introductory rates permanent, and its current API pricing documentation reports the same rates. Without this update, Splitrail would overstate Sonnet 5 costs for usage on or after September 1.
What changed
$2/MTokinput and$10/MTokoutput the durable Sonnet 5 rates.$2.50/MTokfor standard cache writes and$0.20/MTokfor cache reads.$3/$15pricing.$14.70for one million input, output, cache-write, and cache-read tokens.Validation
TMPDIR=/var/tmp/splitrail-cargo cargo test --quiet claude_sonnet_5TMPDIR=/var/tmp/splitrail-cargo cargo test --quiet test_parse_jsonl_file_uses_sonnet_5_permanent_pricingTMPDIR=/var/tmp/splitrail-cargo cargo build --quietTMPDIR=/var/tmp/splitrail-cargo cargo test --quiet— 413 passed; one unrelated existing TUI model-filter test failedTMPDIR=/var/tmp/splitrail-cargo cargo clippy --quiet -- -D warningsTMPDIR=/var/tmp/splitrail-cargo cargo doc --quietcargo fmt --all --quietgit diff --checkSummary by CodeRabbit