Skip to content

feat: add Claude Fable 5 pricing#136

Open
iliaal wants to merge 1 commit into
phuryn:mainfrom
iliaal:feat/fable-5-pricing
Open

feat: add Claude Fable 5 pricing#136
iliaal wants to merge 1 commit into
phuryn:mainfrom
iliaal:feat/fable-5-pricing

Conversation

@iliaal

@iliaal iliaal commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

What

Adds pricing for Claude Fable 5, the new tier above Opus.

Model Input Output Cache write Cache read
claude-fable-5 $10.00/MTok $50.00/MTok $12.50/MTok $1.00/MTok

Input and output rates are from the Fable 5 announcement. Cache rates follow the same multipliers every other row uses (read = input × 0.1, write = input × 1.25).

Why

Fable usage matches none of the existing pricing keywords, so get_pricing returns None and calc_cost bills it at $0. The dashboard also drops it from billable totals. Tokens show up, but cost reads as $0 / n/a.

Changes

  • cli.py / dashboard.py: a claude-fable-5 row in both PRICING tables, plus a fable substring fallback so date-suffixed ids (e.g. claude-fable-5-20260601) resolve. The two tables stay in sync, which the existing sync test enforces.
  • dashboard.py: fable now counts in isBillable, resolves in getPricing, and sorts first in modelPriority as the top tier.
  • scanner.py: MODEL_PRIORITY gains fable: 4, so a session's primary model picks Fable over a subagent's Opus or Sonnet turn.
  • README.md: pricing table row and the included-keywords sentence.
  • Tests: explicit-entry and fallback guards in test_cli.py, priority ordering in test_scanner.py. Suite is 107 passing.

Same shape as the Opus 4.8 pricing PR, with the added scanner.py priority bump that a new model family needs.

Fable 5 is a new tier above Opus, priced at $10/MTok input and $50/MTok
output (cache read $1.00, cache write $12.50). Without an entry it matched
no pricing keyword, so calc_cost billed it at $0 and the dashboard dropped
it from billable totals.

- Add claude-fable-5 to the PRICING tables in cli.py and dashboard.py,
  plus a "fable" substring fallback for date-suffixed ids
- Include fable in the dashboard billable filter and model sort, and in
  the scanner's session primary-model priority (above opus)
- Update the README pricing table and keyword list
- Add tests for the pricing entry, fallback, and priority ordering
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