Skip to content

fix(model_prices): registry audit, perplexity agent api models and claude-sonnet-4-5 200k context - #45647

Merged
klu-berri merged 2 commits into
mainfrom
litellm_registry_audit_1791572400
Oct 9, 2026
Merged

klu-berri merged 2 commits into
mainfrom
litellm_registry_audit_1791572400

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

Rolling registry audit PR for 2026-10-09 (second run). Root and backup cost maps stay in sync and the schema was regenerated. The only open Devin registry PR, #45623, removes every OpenRouter row together with tests, which makes it a structural refactor rather than an audit, so this PR serves as the rolling one and #45623 is left alone

Anthropic (absorbed from #45606)

claude-sonnet-4-5 and claude-sonnet-4-5-20250929: max_input_tokens 1000000 changes to 200000, and every *_above_200k_tokens* key on those two rows is removed. Anthropic retired the context-1m-2025-08-07 beta for Sonnet 4.5 and Sonnet 4, and requests above 200k now error. The schema drops cache_creation_input_token_cost_above_200k_tokens_batches because no row uses it anymore. Bedrock rows are unchanged

Sources: https://platform.claude.com/docs/en/build-with-claude/context-windows and https://platform.claude.com/docs/en/release-notes/overview

Perplexity Agent API (new rows)

The prices come from Perplexity's own GET https://api.perplexity.ai/v1/models pricing block (USD per 1M tokens), which is the same catalog the docs page renders. The new rows use the same shape as their sibling perplexity/* rows

model input output cache read cache write
perplexity/openai/gpt-5-nano 0.05 0.40 0.005
perplexity/openai/gpt-5.3-codex 3.50 28 0.35
perplexity/openai/gpt-6-astra 10 50 1 12.50
perplexity/perplexity/deepseek-v4-pro-0813 1.32 3.96 0.044

Source: https://docs.perplexity.ai/docs/agent-api/models

Checked and not changed

These were dropped because no official per-token price is published

Gemini antigravity-preview-*: this is an agent and https://ai.google.dev/gemini-api/docs/pricing has no per-token row. Gemini aqa is legacy and only supports generateAnswer

Groq allam-2-7b: it is in the model API but missing from https://groq.com/pricing

Fireworks qwen3p8-2p4t-a95b: serverlessModes is empty, so it is on-demand only

Cohere command-a-reasoning-08-2025, command-a-vision-07-2025, north-*, tiny-aya-* and cohere-transcribe-03-2026: https://cohere.com/pricing shows no per-token prices

Together: catalog-only models with no newly priced serverless additions in the last 120 days

OpenAI: the missing IDs are fine-tune IDs or dated snapshots of rows that already exist, and they were not copied from their aliases

Anthropic, Mistral, xAI and DeepSeek: the model APIs show no missing models

ci_cd/cost_map_pins.json does not exist on main, so no pinned flags were affected

Checks

python3 ci_cd/check_files_match.py, generate_model_prices_schema.py --check, cost_map_guard.py and LITELLM_LOCAL_MODEL_COST_MAP=True pytest tests/unit/test_model_prices_schema.py tests/unit/test_model_cost_aliases.py (86 passed) all pass

Link to Devin session: https://app.devin.ai/sessions/39bc2ce33daf4d27baab692c5c2eac33
Open in Devin Desktop: https://app.devin.ai/desktop/session/39bc2ce33daf4d27baab692c5c2eac33?variant=devin

…aude-sonnet-4-5 200k context

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@greptile-apps

greptile-apps Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Critical impact] The PR appears safe to merge, with no actionable issue found

Summary

Updates the model registry and keeps the root and backup maps in sync

  • LiteLLM can look up prices for four Perplexity Agent API models.
  • Sonnet 4.5 entries now stop at 200,000 input tokens.

No actionable issue was found. No runtime checks were run

Reviews (1) · Last reviewed commit: "fix(model_prices): registry audit, perpl..." · Reviewed by Greptile

@codspeed

codspeed Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

⚠️ 1 benchmark spent significant time in system calls

System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.

Measurement and system calls

✅ 31 untouched benchmarks


Comparing litellm_registry_audit_1791572400 (97daadf) with main (d1945f6)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (ed22fd9) during the generation of this report, so d1945f6 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@codecov

codecov Bot commented Oct 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@klu-berri
klu-berri merged commit 5b8f0a4 into main Oct 9, 2026
92 checks passed
@klu-berri
klu-berri deleted the litellm_registry_audit_1791572400 branch October 9, 2026 23:07
samiashi added a commit to samiashi/llm-tracker that referenced this pull request Oct 15, 2026
LiteLLM deleted every OpenRouter row on 2026-10-09 (BerriAI/litellm#45665),
since OpenRouter reports each response's real cost, so the generator's shrink
guard refused the new table. OpenRouter is no longer kept, and the guard no
longer counts the keys of an endpoint retired on purpose.

Lookup now prices openrouter|<maker>/<model> at the maker's own rate for
Anthropic, OpenAI, Google and xAI, accepting OpenRouter's dotted versions.
Open-weight models go to whichever host OpenRouter picks, at up to half the
maker's rate, so they and ":variant" names stay unpriced unless the harness
recorded a cost.

Two other upstream changes land with it: Sonnet 4.5's 200k tier went with
Anthropic's retired 1M-context beta (BerriAI/litellm#45647), so the tier
canary moves to Haiku 5.5's 100k tier, and Sonnet 5.5 cache reads fell to
$0.10 per million tokens on 2026-10-07.
majiayu000 added a commit to majiayu000/litellm-rs that referenced this pull request Nov 3, 2026
Bedrock Titan Text Express now carries the AWS list price
(BerriAI/litellm#45793), and Sonnet 4.5 no longer has above-200k tiers
after Anthropic retired its 1M-context beta (BerriAI/litellm#45647).

Signed-off-by: majiayu000 <1835304752@qq.com>
majiayu000 added a commit to majiayu000/litellm-rs that referenced this pull request Nov 3, 2026
* chore(pricing): refresh runtime catalog from LiteLLM

* test(pricing): follow upstream Titan and Sonnet 4.5 corrections

Bedrock Titan Text Express now carries the AWS list price
(BerriAI/litellm#45793), and Sonnet 4.5 no longer has above-200k tiers
after Anthropic retired its 1M-context beta (BerriAI/litellm#45647).

Signed-off-by: majiayu000 <1835304752@qq.com>

---------

Signed-off-by: majiayu000 <1835304752@qq.com>
Co-authored-by: majiayu000 <19658300+majiayu000@users.noreply.github.com>
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