Skip to content

Commit 7897331

Browse files
capitanfeederedelauna
authored andcommitted
Use longContextPricing instead of tiers for cost calculation
1 parent ee3dee6 commit 7897331

1 file changed

Lines changed: 14 additions & 18 deletions

File tree

  • packages/types/src/providers

packages/types/src/providers/mimo.ts

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,13 @@ export const mimoModels = {
2525
outputPrice: 3.0, // $3.00/1M tokens (≤256K)
2626
cacheReadsPrice: 0.2, // $0.20/1M tokens (cache hit, ≤256K)
2727
cacheWritesPrice: 0, // Free for limited time
28-
// MiMo charges 2x for input >256K context
29-
tiers: [
30-
{
31-
contextWindow: 256_001,
32-
inputPrice: 2.0, // $2.00/1M tokens (>256K)
33-
outputPrice: 6.0, // $6.00/1M tokens (>256K)
34-
cacheReadsPrice: 0.4, // $0.40/1M tokens (>256K)
35-
},
36-
],
28+
// MiMo charges 2x above 256K context
29+
longContextPricing: {
30+
thresholdTokens: 256_000,
31+
inputPriceMultiplier: 2,
32+
outputPriceMultiplier: 2,
33+
cacheReadsPriceMultiplier: 2,
34+
},
3735
description:
3836
"MiMo V2.5 Pro - Xiaomi's flagship reasoning model with 1M context, deep thinking, tool calling, and structured output.",
3937
},
@@ -47,15 +45,13 @@ export const mimoModels = {
4745
outputPrice: 2.0, // $2.00/1M tokens (≤256K)
4846
cacheReadsPrice: 0.08, // $0.08/1M tokens (cache hit, ≤256K)
4947
cacheWritesPrice: 0, // Free for limited time
50-
// MiMo charges 2x for input >256K context
51-
tiers: [
52-
{
53-
contextWindow: 256_001,
54-
inputPrice: 0.8, // $0.80/1M tokens (>256K)
55-
outputPrice: 4.0, // $4.00/1M tokens (>256K)
56-
cacheReadsPrice: 0.16, // $0.16/1M tokens (>256K)
57-
},
58-
],
48+
// MiMo charges 2x above 256K context
49+
longContextPricing: {
50+
thresholdTokens: 256_000,
51+
inputPriceMultiplier: 2,
52+
outputPriceMultiplier: 2,
53+
cacheReadsPriceMultiplier: 2,
54+
},
5955
description:
6056
"MiMo V2.5 - Full-modal understanding model (text, image, audio, video) with 1M context, deep thinking, tool calling, and structured output.",
6157
},

0 commit comments

Comments
 (0)