Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

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

Alan Billibfbf5278cf8e
diff --git a/packages/data-schemas/src/methods/tx.spec.ts b/packages/data-schemas/src/methods/tx.spec.ts
index 3198ffb633..14226cadd2 100644
--- a/packages/data-schemas/src/methods/tx.spec.ts
+++ b/packages/data-schemas/src/methods/tx.spec.ts
@@ -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];
diff --git a/packages/data-schemas/src/methods/tx.ts b/packages/data-schemas/src/methods/tx.ts
index f1325c0cf0..89ea6ccff1 100644
--- a/packages/data-schemas/src/methods/tx.ts
+++ b/packages/data-schemas/src/methods/tx.ts
@@ -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 },