[Feat] add claude-opus-4-6 to model cost map#20506
Merged
ishaan-jaff merged 3 commits intomainfrom Feb 5, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Greptile OverviewGreptile SummaryAdded support for Key changes:
Note: The PR checklist indicates tests have not been added yet, which is marked as a hard requirement in the contributing guidelines. Confidence Score: 4/5
|
| Filename | Overview |
|---|---|
| model_prices_and_context_window.json | Added four claude-opus-4-6 model variants with 128k max output tokens (double opus 4.5's 64k limit) |
| litellm/model_prices_and_context_window_backup.json | Identical changes to main JSON file - added four claude-opus-4-6 model variants |
Sequence Diagram
sequenceDiagram
participant User
participant LiteLLM
participant CostMap as model_prices_and_context_window.json
participant Provider as Anthropic API
User->>LiteLLM: completion(model="claude-opus-4-6")
LiteLLM->>CostMap: lookup "claude-opus-4-6"
CostMap-->>LiteLLM: return pricing & config<br/>(max_output: 128k, input: $5/MTok)
LiteLLM->>LiteLLM: validate max_tokens <= 128000
LiteLLM->>Provider: forward request to Anthropic
Provider-->>LiteLLM: response with token usage
LiteLLM->>CostMap: calculate cost using<br/>input_cost_per_token & output_cost_per_token
LiteLLM-->>User: response + calculated cost
Contributor
|
#20508 could be more complete than this one? |
ishaan-jaff
added a commit
that referenced
this pull request
Feb 5, 2026
* add claude-opus-4-6 to model cost map * fix azure_ai * new model
6 tasks
ssadedin
added a commit
to ssadedin/litellm
that referenced
this pull request
Feb 6, 2026
Notes: General support for Opus 4.6 was added in BerriAI#20506 however it omitted the AU (australian) specific instance profile used in Bedrock. This change only adds the the au id. It is copied from the US model settings which is consistent with past additions of this regional model profile.
6 tasks
ishaan-jaff
pushed a commit
that referenced
this pull request
Feb 7, 2026
Notes: General support for Opus 4.6 was added in #20506 however it omitted the AU (australian) specific instance profile used in Bedrock. This change only adds the the au id. It is copied from the US model settings which is consistent with past additions of this regional model profile.
ishaan-jaff
pushed a commit
that referenced
this pull request
Feb 11, 2026
Notes: General support for Opus 4.6 was added in #20506 however it omitted the AU (australian) specific instance profile used in Bedrock. This change only adds the the au id. It is copied from the US model settings which is consistent with past additions of this regional model profile.
Sameerlite
pushed a commit
that referenced
this pull request
Feb 13, 2026
Notes: General support for Opus 4.6 was added in #20506 however it omitted the AU (australian) specific instance profile used in Bedrock. This change only adds the the au id. It is copied from the US model settings which is consistent with past additions of this regional model profile.
ishaan-jaff
pushed a commit
that referenced
this pull request
Feb 18, 2026
Notes: General support for Opus 4.6 was added in #20506 however it omitted the AU (australian) specific instance profile used in Bedrock. This change only adds the the au id. It is copied from the US model settings which is consistent with past additions of this regional model profile.
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.
[Feat] add
claude-opus-4-6to model cost mapPre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
tests/litellm/directory, Adding at least 1 test is a hard requirement - see detailsmake test-unitCI (LiteLLM team)
Branch creation CI run
Link:
CI run for the last commit
Link:
Merge / cherry-pick CI run
Links:
Type
🆕 New Feature
✅ Test
Changes