fix(bedrock): add prompt-cache pricing to Claude Bedrock entries - #46299
Closed
jaketracey wants to merge 1 commit into
Closed
fix(bedrock): add prompt-cache pricing to Claude Bedrock entries#46299jaketracey wants to merge 1 commit into
jaketracey wants to merge 1 commit into
Conversation
The bedrock-pricing-2026-04 Claude entries set input/output rates but omit cache_read/cache_write rates, so cache_read_tokens and cache_write_tokens are costed at $0 -- under-reporting cached agentic sessions (often the bulk of input). Add the standard Anthropic cache multipliers: read = 0.1x input, 5-minute write = 1.25x input, for opus-4-6, sonnet-4-6, sonnet-4-5, haiku-4-5. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This was referenced Jul 10, 2026
Contributor
|
Thanks for the focused pricing correction. Current
Automated hermes-sweeper review. |
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.
Problem
The Bedrock Claude pricing entries (added in
bedrock-pricing-2026-04) setinput_cost_per_millionandoutput_cost_per_millionbut omit cache rates. As a result,cache_read_tokensandcache_write_tokensare billed at $0 in cost estimates — so a cached agentic session (where the cached system+tools prefix is usually the majority of input) reports a cost far below reality.Fix
Add the standard Anthropic prompt-cache multipliers to the four Claude Bedrock entries (same rates apply on Bedrock):
0.1×base input1.25×base inputInput/output rates are unchanged. (Nova/other Bedrock models also support caching with different multipliers and could be added separately.)
🤖 Generated with Claude Code