💶 fix: Price Mistral Large 3 at $0.50 / $1.50 per MTok (#16675)

`mistral-large-2512` (and `mistral-large-latest`, which now points to it)
had no dedicated entry and fell back to the generic `mistral-large` key,
billing at Mistral Large 2 rates ($2 / $6), 4x the actual price.

- Add `mistral-large-2512` and `mistral-large-3` at $0.50 / $1.50
- Point the generic `mistral-large` fallback to the current model's price
- Pin `mistral-large-2411` to its $2 / $6 rate
- Drop the stale Sonnet 5 "revert after 2026-08-31" comments: Anthropic
  made the $2 / $10 pricing standard, so the scheduled increase won't happen

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Alan Billi 2026-10-05 03:44:52 +02:00 • committed by GitHub
parent 3c90cde7d8
commit bfbf5278cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 33 additions and 5 deletions

View file

@ -2783,11 +2783,11 @@ describe('Claude Model Tests', () => {
);
});
it('should pin Claude Sonnet 5 to introductory $2 / $10 per MTok (through 2026-08-31)', () => {
it('should pin Claude Sonnet 5 to its standard $2 / $10 per MTok', () => {
expect(tokenValues['claude-sonnet-5']).toEqual({ prompt: 2, completion: 10 });
});
it('should apply introductory cache rates ($2.50 / $0.20) for Claude Sonnet 5', () => {
it('should apply standard cache rates ($2.50 / $0.20) for Claude Sonnet 5', () => {
expect(cacheTokenValues['claude-sonnet-5']).toEqual({ write: 2.5, read: 0.2 });
});
@ -2823,6 +2823,33 @@ describe('Claude Model Tests', () => {
});
});
describe('Mistral Large Pricing', () => {
it('should price Mistral Large 3 at $0.50 / $1.50 per MTok', () => {
const modelVariations = [
'mistral-large-2512',
'mistral-large-3',
'mistral-large-latest',
'mistralai/mistral-large-2512',
];
modelVariations.forEach((model) => {
expect(getMultiplier({ model, tokenType: 'prompt' })).toBe(0.5);
expect(getMultiplier({ model, tokenType: 'completion' })).toBe(1.5);
});
});
it('should keep Mistral Large 2.1 (2411) at $2 / $6 per MTok', () => {
expect(getValueKey('mistral-large-2411')).toBe('mistral-large-2411');
expect(getMultiplier({ model: 'mistral-large-2411', tokenType: 'prompt' })).toBe(2);
expect(getMultiplier({ model: 'mistral-large-2411', tokenType: 'completion' })).toBe(6);
});
it('should keep legacy Mistral Large 2402 / 2407 rates', () => {
expect(getMultiplier({ model: 'mistral-large-2402', tokenType: 'prompt' })).toBe(4);
expect(getMultiplier({ model: 'mistral-large-2407', tokenType: 'prompt' })).toBe(3);
});
});
describe('Premium Token Pricing', () => {
const premiumModel = 'gemini-3.1';
const premiumEntry = premiumTokenValues[premiumModel];

View file

@ -196,7 +196,6 @@ export const tokenValues: Record<string, { prompt: number; completion: number }>
'claude-sonnet-4': { prompt: 3, completion: 15 },
'claude-sonnet-4-5': { prompt: 3, completion: 15 },
'claude-sonnet-4-6': { prompt: 3, completion: 15 },
// Sonnet 5 introductory pricing through 2026-08-31; revert to { prompt: 3, completion: 15 } after.
'claude-sonnet-5': { prompt: 2, completion: 10 },
'claude-sonnet-5-5': { prompt: 2, completion: 10 },
'claude-sonnet-5.5': { prompt: 2, completion: 10 },
@ -272,7 +271,10 @@ export const tokenValues: Record<string, { prompt: number; completion: number }>
'mistral-nemo': { prompt: 0.15, completion: 0.15 },
'mistral-saba': { prompt: 0.2, completion: 0.6 },
'pixtral-large': { prompt: 2.0, completion: 6.0 },
'mistral-large': { prompt: 2.0, completion: 6.0 },
'mistral-large': { prompt: 0.5, completion: 1.5 },
'mistral-large-2411': { prompt: 2.0, completion: 6.0 },
'mistral-large-2512': { prompt: 0.5, completion: 1.5 },
'mistral-large-3': { prompt: 0.5, completion: 1.5 },
'mixtral-8x22b': { prompt: 0.65, completion: 0.65 },
kimi: { prompt: 0.6, completion: 2.5 },
moonshot: { prompt: 2.0, completion: 5.0 },
@ -369,7 +371,6 @@ export const cacheTokenValues: Record<string, { write: number; read: number }> =
'claude-sonnet-4': { write: 3.75, read: 0.3 },
'claude-sonnet-4-5': { write: 3.75, read: 0.3 },
'claude-sonnet-4-6': { write: 3.75, read: 0.3 },
// Sonnet 5 introductory pricing through 2026-08-31; revert to { write: 3.75, read: 0.3 } after.
'claude-sonnet-5': { write: 2.5, read: 0.2 },
'claude-sonnet-5-5': { write: 2.5, read: 0.2 },
'claude-sonnet-5.5': { write: 2.5, read: 0.2 },