Repository navigation
Update LLM price table (2026-12-03) - #266
Merged
Merged
Conversation
Checked MODEL_PRICES against the Anthropic, OpenAI, Gemini and DeepSeek pricing pages: add Claude Mythos 5.2/5.1/5, reprice Claude Fable 5.1 cache reads, GPT-5.6 Sol and Gemini 4 Carbon/Argon, and remove the retired claude-sonnet-4-5, gemini-2.5-pro and gemini-2.5-flash. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HiY2gsw7w61FN1TXfoygQ6
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Monthly check of
MODEL_PRICESiniohblade/llm_costs.pyagainst the first-party pricing pages (standard tier, shortest context tier, text tokens, USD per million tokens).PRICES_CHECKEDis now2026-12-03.Price changes
claude-fable-5-1gpt-5.6-solgemini-4-carbongemini-4-argonAdded models
claude-mythos-5-2claude-mythos-5-1claude-mythos-5All three are listed as active on https://platform.claude.com/docs/en/about-claude/model-deprecations.
Removed models
claude-sonnet-4-5gemini-2.5-progemini-3.8-flashand are billed at its ratesgemini-2.5-flashgemini-3.5-flash-liteand are billed at its ratesDeepSeek (
deepseek-flash,deepseek-v4-pro, peak rates) is unchanged: https://api-docs.deepseek.com/quick_start/pricingScheduled changes (not applied)
gpt-5,gpt-5-mini,gpt-5-nano,gpt-5-pro,o3,o3-proon 2026-12-11;gpt-4o-mini,gpt-4.1,gpt-4.1-minion 2027-01-14;gpt-5.1,gpt-5.4-nanoon 2027-04-01. They stay in the table until then.claude-opus-4-5(not in the table) retires on 2027-01-22.claude-haiku-4-5is still listed as active ("not sooner than 2026-10-15").Retired default models in
iohblade/llm.py(defaults not changed here)OpenAI_LLMdefaultgpt-4-turbo: shut down on 2026-10-23; the suggested replacement isgpt-5.6-sol(https://developers.openai.com/api/docs/deprecations).Gemini_LLMdefaultgemini-2.0-flash: shut down on 2026-06-01; the suggested replacement isgemini-3.6-flash(https://ai.google.dev/gemini-api/docs/deprecations).DeepSeek_LLMdefaultdeepseek-chat: the legacy name was to be discontinued on 2026-07-24 (https://api-docs.deepseek.com/updates). It is no longer on the pricing page; the current name isdeepseek-flash.Claude_LLMdefaultclaude-opus-5-5is active.Other changes
tests/unit/test_llm_costs.py: tests that used the removedclaude-sonnet-4-5andgemini-2.5-flashnow useclaude-sonnet-4-6andgemini-3.5-flash-lite.CHANGELOG.md: added a line under Unreleased.docs/llm.rst: not changed, because the same providers are still priced.Testing
uv run pytest tests/unit/test_llm_costs.py tests/unit/test_llm.py tests/unit/test_llm_layer.py: 130 passed. I ran isort and black; they changed nothing.Generated by Claude Code