Skip to content

fix(pricing): bill Haiku 5.5 prompts over 100k at the tier2 rate (v1.1.1) - #2

Merged
Solomonic merged 1 commit into
mainfrom
fix/haiku-5-5-prompt-tier
Nov 17, 2026
Merged

Solomonic merged 1 commit into
mainfrom
fix/haiku-5-5-prompt-tier

Conversation

@Solomonic

Copy link
Copy Markdown
Contributor

Each deduped response is one request, so cost.mjs now prices it with
ai-price-index's usdForRequest instead of usdForRollup. A Claude Haiku
5.5 request whose prompt (input + cache reads + cache writes) is over
100,000 tokens bills entirely at tier2 ($0.50/$2.50), 5x the base tier;
it was billed at the base tier before. _meta reports tier2Requests.

Re-vendors ai-price-index main at b3b09d3 (#96), which also brings the
data snapshot from 2026-06-22 to 2026-11-16 (149 models).

…1.1)

Each deduped response is one request, so cost.mjs now prices it with
ai-price-index's usdForRequest instead of usdForRollup. A Claude Haiku
5.5 request whose prompt (input + cache reads + cache writes) is over
100,000 tokens bills entirely at tier2 ($0.50/$2.50), 5x the base tier;
it was billed at the base tier before. _meta reports tier2Requests.

Re-vendors ai-price-index main at b3b09d3 (#96), which also brings the
data snapshot from 2026-06-22 to 2026-11-16 (149 models).
@Solomonic
Solomonic merged commit dfa488a into main Nov 17, 2026
3 checks passed
@Solomonic
Solomonic deleted the fix/haiku-5-5-prompt-tier branch November 17, 2026 05:17
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.

1 participant