litellm - 💡(How to fix) Fix [Bug]: Pricing Data Source Anthropic Bedrock prices wrong [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
BerriAI/litellm#26795Fetched 2026-04-30 06:19:43
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×2closed ×1commented ×1
RAW_BUFFERClick to expand / collapse

Check for existing issues

  • I have searched the existing issues and checked that my issue is not a duplicate.

What happened?

When looking up the price for us.anthropic.claude-sonnet-4-6 in the path for price data reload

https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json

I noticed that most of the antropic models from AWS are 10% more in your sheet then what is listed in aws.

Steps to Reproduce

  1. goto https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json
  2. Search for us.anthropic.claude-sonnet-4-6
  3. price is 3.30 for input and 16.50 for ouptput. Not 3 and 15

Relevant log output

What part of LiteLLM is this about?

Other

What LiteLLM version are you on ?

1.83.10

Twitter / LinkedIn details

No response

extent analysis

TL;DR

Update the price data in the model_prices_and_context_window.json file to reflect the correct prices for Anthropic models from AWS.

Guidance

  • Verify the prices listed in the AWS documentation for Anthropic models to confirm the discrepancy.
  • Check the model_prices_and_context_window.json file for any other incorrect prices that may need to be updated.
  • Consider implementing a process to regularly update the price data to ensure accuracy and prevent similar issues in the future.
  • Review the LiteLLM code to see if there are any price calculation or retrieval functions that may be contributing to the discrepancy.

Example

No code example is provided as the issue is related to data accuracy rather than code functionality.

Notes

The issue may be specific to the LiteLLM version 1.83.10, and updating to a newer version may not necessarily resolve the issue. Additionally, the prices listed in the model_prices_and_context_window.json file may be subject to change over time, so regular updates may be necessary.

Recommendation

Apply workaround: Update the price data in the model_prices_and_context_window.json file to reflect the correct prices for Anthropic models from AWS, as this is a data accuracy issue rather than a code functionality issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

litellm - 💡(How to fix) Fix [Bug]: Pricing Data Source Anthropic Bedrock prices wrong [1 comments, 2 participants]