fix(usage): price Claude Fable 5.2 and Mythos 5.2 (#40506)

This commit is contained in:
Brennan Benson
2026-11-09 15:28:28 -08:00
committed by GitHub
parent 1bdadc903b
commit 23f4fd3181
2 changed files with 10 additions and 1 deletions
@@ -48,7 +48,7 @@ describe('model pricing name matching', () => {
it.each([
'claude-opus-5-6',
'claude-sonnet-5-6',
'claude-fable-5-2',
'claude-fable-5-3',
'claude-opus-6',
'claude-opus-4.9',
'claude-opus-5-50',
@@ -30,6 +30,13 @@ const SONNET_4_LONG_CONTEXT = {
}
// Mythos models are billed at their Fable counterparts' rates.
const FABLE_5_2_PRICING: ClaudeModelPricing = {
input: 8,
output: 40,
cacheRead: 0.2,
cacheWrite: 10,
cacheWrite1h: 16
}
const FABLE_5_1_PRICING: ClaudeModelPricing = {
input: 10,
output: 50,
@@ -47,6 +54,8 @@ const FABLE_5_PRICING: ClaudeModelPricing = {
// Unknown model versions stay unpriced until explicitly added.
export const MODEL_PRICING: Record<string, ClaudeModelPricing> = {
'claude-fable-5-2': FABLE_5_2_PRICING,
'claude-mythos-5-2': FABLE_5_2_PRICING,
'claude-fable-5-1': FABLE_5_1_PRICING,
'claude-mythos-5-1': FABLE_5_1_PRICING,
'claude-fable-5': FABLE_5_PRICING,