Repository navigation
fix(cost-map): lower anthropic claude-sonnet-5-5 cache read price - #45113
Conversation
|
|
|
Price-Sync: litellm-providers
0745c70 to
d8cfad3
Compare
|
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit d8cfad3. Configure here.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Summary
Lowers the
claude-sonnet-5-5cache read price per the October 7, 2026 release note. The prices API returned no structured rows for anthropic (structured: false), so the values below are kind page, fetched raw from platform.claude.comclaude-haiku-5-5 (held back)
claude-haiku-5-5is left out of this PR. Its prices change at a 100k prompt threshold ("Claude Haiku 5.5 is priced by prompt length: a prompt of over 100,000 tokens pays higher prices"), and the catalog cannot carry that tier today: the cost map schema test rejects*_above_100k_tokensfields andget_model_infodoes not pass them through, so a row with only the lower tier would undercharge long prompts. The row waits on a decision about adding 100k tier supportclaude-sonnet-5-5 (changed, kind page)
cache_read_input_token_costcache_read_input_token_cost_batchesThe Model pricing table on the pricing page still shows "$0.20 / MTok" in the Sonnet 5.5 cache hits cell, so that cell has not caught up with the release note and the multiplier sentence
Delisted by the provider
claude-haiku-4-5,claude-opus-4-5,claude-sonnet-4-5are alias keys;/v1/modelslists the dated idsclaude-haiku-4-5-20251001,claude-opus-4-5-20251101andclaude-sonnet-4-5-20250929instead, so this is a naming mismatch, not a delisting.claude-sonnet-4-5already carriesdeprecation_date2026-11-30 andclaude-mythos-previewalready carries 2026-06-09.claude-mythos-5andclaude-mythos-5-1stay flagged as delisted with rows unchanged per rulinganthropic-mythos-gated-flag-delisted; the deprecations page lists them Active with retirement "Not sooner than" dates, so nodeprecation_dateis addedRulings applied:
anthropic-mythos-gated-flag-delistedNote
Low Risk
Config-only pricing metadata; affects cost estimates for Anthropic Sonnet 5.5 cache hits but not runtime API behavior.
Overview
Updates the claude-sonnet-5-5 cost map to match Anthropic’s October 7, 2026 prompt-cache read price cut:
cache_read_input_token_costhalves from2e-07to1e-07per token, andcache_read_input_token_cost_batcheshalves from1e-07to5e-08(batch rate stays at 50% of cache read).The same edits are applied in
model_prices_and_context_window.jsonandlitellm/model_prices_and_context_window_backup.json. The modelsourceURL for Sonnet 5.5 now points at the general pricing doc instead of the Sonnet 5.5 overview page.Reviewed by Cursor Bugbot for commit d8cfad3. Bugbot is set up for automated code reviews on this repo. Configure here.