@lobehub/chat 1.111.1 → 1.111.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cursor/rules/code-review.mdc +2 -19
- package/.cursor/rules/cursor-ux.mdc +0 -72
- package/.cursor/rules/project-introduce.mdc +5 -5
- package/.cursor/rules/react-component.mdc +92 -73
- package/.cursor/rules/rules-attach.mdc +28 -61
- package/.cursor/rules/system-role.mdc +8 -20
- package/.cursor/rules/typescript.mdc +55 -14
- package/CHANGELOG.md +25 -0
- package/changelog/v1.json +5 -0
- package/package.json +1 -1
- package/packages/types/src/aiModel.ts +67 -46
- package/packages/types/src/llm.ts +3 -3
- package/src/app/[variants]/(main)/discover/(detail)/model/[...slugs]/features/Details/Overview/ProviderList/index.tsx +23 -12
- package/src/app/[variants]/(main)/discover/(detail)/provider/[...slugs]/features/Details/Overview/ModelList/index.tsx +23 -10
- package/src/app/[variants]/(main)/settings/provider/features/ModelList/ModelItem.tsx +21 -12
- package/src/config/aiModels/ai21.ts +8 -4
- package/src/config/aiModels/ai360.ts +28 -14
- package/src/config/aiModels/aihubmix.ts +174 -86
- package/src/config/aiModels/anthropic.ts +97 -38
- package/src/config/aiModels/azure.ts +54 -32
- package/src/config/aiModels/azureai.ts +63 -37
- package/src/config/aiModels/baichuan.ts +24 -12
- package/src/config/aiModels/bedrock.ts +60 -30
- package/src/config/aiModels/cohere.ts +60 -30
- package/src/config/aiModels/deepseek.ts +10 -6
- package/src/config/aiModels/fireworksai.ts +88 -44
- package/src/config/aiModels/giteeai.ts +1 -1
- package/src/config/aiModels/github.ts +44 -26
- package/src/config/aiModels/google.ts +119 -68
- package/src/config/aiModels/groq.ts +48 -24
- package/src/config/aiModels/higress.ts +617 -310
- package/src/config/aiModels/hunyuan.ts +105 -54
- package/src/config/aiModels/infiniai.ts +104 -52
- package/src/config/aiModels/internlm.ts +16 -8
- package/src/config/aiModels/jina.ts +4 -2
- package/src/config/aiModels/minimax.ts +11 -10
- package/src/config/aiModels/mistral.ts +40 -20
- package/src/config/aiModels/moonshot.ts +42 -22
- package/src/config/aiModels/novita.ts +196 -98
- package/src/config/aiModels/openai.ts +270 -137
- package/src/config/aiModels/openrouter.ts +205 -100
- package/src/config/aiModels/perplexity.ts +36 -6
- package/src/config/aiModels/ppio.ts +76 -38
- package/src/config/aiModels/qwen.ts +257 -133
- package/src/config/aiModels/sambanova.ts +56 -28
- package/src/config/aiModels/sensenova.ts +100 -50
- package/src/config/aiModels/siliconcloud.ts +224 -112
- package/src/config/aiModels/stepfun.ts +44 -22
- package/src/config/aiModels/taichu.ts +8 -4
- package/src/config/aiModels/tencentcloud.ts +12 -6
- package/src/config/aiModels/upstage.ts +8 -4
- package/src/config/aiModels/v0.ts +15 -12
- package/src/config/aiModels/vertexai.ts +49 -27
- package/src/config/aiModels/volcengine.ts +110 -51
- package/src/config/aiModels/wenxin.ts +179 -73
- package/src/config/aiModels/xai.ts +33 -19
- package/src/config/aiModels/zeroone.ts +48 -24
- package/src/config/aiModels/zhipu.ts +118 -69
- package/src/config/modelProviders/ai21.ts +0 -8
- package/src/config/modelProviders/ai360.ts +0 -20
- package/src/config/modelProviders/anthropic.ts +0 -56
- package/src/config/modelProviders/baichuan.ts +0 -30
- package/src/config/modelProviders/bedrock.ts +0 -74
- package/src/config/modelProviders/deepseek.ts +0 -13
- package/src/config/modelProviders/fireworksai.ts +0 -88
- package/src/config/modelProviders/google.ts +0 -59
- package/src/config/modelProviders/groq.ts +0 -48
- package/src/config/modelProviders/higress.ts +0 -727
- package/src/config/modelProviders/hunyuan.ts +0 -45
- package/src/config/modelProviders/infiniai.ts +0 -60
- package/src/config/modelProviders/internlm.ts +0 -8
- package/src/config/modelProviders/mistral.ts +0 -48
- package/src/config/modelProviders/modelscope.ts +2 -1
- package/src/config/modelProviders/openai.ts +5 -100
- package/src/config/modelProviders/openrouter.ts +0 -77
- package/src/config/modelProviders/ppio.ts +0 -95
- package/src/config/modelProviders/qwen.ts +0 -165
- package/src/config/modelProviders/sensenova.ts +0 -45
- package/src/config/modelProviders/siliconcloud.ts +0 -266
- package/src/config/modelProviders/stepfun.ts +0 -60
- package/src/config/modelProviders/taichu.ts +0 -10
- package/src/config/modelProviders/wenxin.ts +0 -90
- package/src/config/modelProviders/xai.ts +0 -16
- package/src/config/modelProviders/zeroone.ts +0 -60
- package/src/config/modelProviders/zhipu.ts +0 -80
- package/src/features/Conversation/Extras/Usage/UsageDetail/ModelCard.tsx +4 -3
- package/src/features/Conversation/Extras/Usage/UsageDetail/pricing.ts +25 -15
- package/src/features/Conversation/Extras/Usage/UsageDetail/tokens.test.ts +7 -5
- package/src/features/Conversation/Extras/Usage/UsageDetail/tokens.ts +6 -5
- package/src/libs/model-runtime/utils/openaiCompatibleFactory/index.test.ts +54 -8
- package/src/server/routers/lambda/agent.ts +2 -2
- package/src/server/routers/lambda/config/__snapshots__/index.test.ts.snap +0 -28
- package/src/server/services/discover/index.ts +7 -6
- package/src/server/services/user/index.ts +1 -2
- package/src/utils/__snapshots__/parseModels.test.ts.snap +28 -4
- package/src/utils/_deprecated/__snapshots__/parseModels.test.ts.snap +0 -8
- package/src/utils/parseModels.test.ts +60 -9
- package/src/utils/pricing.test.ts +183 -0
- package/src/utils/pricing.ts +90 -0
@@ -17,9 +17,11 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
17
17
|
id: 'gpt-5',
|
18
18
|
maxOutput: 128_000,
|
19
19
|
pricing: {
|
20
|
-
|
21
|
-
|
22
|
-
|
20
|
+
units: [
|
21
|
+
{ name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },
|
22
|
+
{ name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
|
23
|
+
{ name: 'textInput_cacheRead', rate: 0.13, strategy: 'fixed', unit: 'millionTokens' },
|
24
|
+
],
|
23
25
|
},
|
24
26
|
releasedAt: '2025-08-07',
|
25
27
|
settings: {
|
@@ -43,9 +45,11 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
43
45
|
id: 'gpt-5-mini',
|
44
46
|
maxOutput: 128_000,
|
45
47
|
pricing: {
|
46
|
-
|
47
|
-
|
48
|
-
|
48
|
+
units: [
|
49
|
+
{ name: 'textInput', rate: 0.25, strategy: 'fixed', unit: 'millionTokens' },
|
50
|
+
{ name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
|
51
|
+
{ name: 'textInput_cacheRead', rate: 0.03, strategy: 'fixed', unit: 'millionTokens' },
|
52
|
+
],
|
49
53
|
},
|
50
54
|
releasedAt: '2025-08-07',
|
51
55
|
settings: {
|
@@ -67,9 +71,11 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
67
71
|
id: 'gpt-5-nano',
|
68
72
|
maxOutput: 128_000,
|
69
73
|
pricing: {
|
70
|
-
|
71
|
-
|
72
|
-
|
74
|
+
units: [
|
75
|
+
{ name: 'textInput', rate: 0.05, strategy: 'fixed', unit: 'millionTokens' },
|
76
|
+
{ name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
|
77
|
+
{ name: 'textInput_cacheRead', rate: 0.01, strategy: 'fixed', unit: 'millionTokens' },
|
78
|
+
],
|
73
79
|
},
|
74
80
|
releasedAt: '2025-08-07',
|
75
81
|
type: 'chat',
|
@@ -86,9 +92,11 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
86
92
|
id: 'gpt-5-chat-latest',
|
87
93
|
maxOutput: 128_000,
|
88
94
|
pricing: {
|
89
|
-
|
90
|
-
|
91
|
-
|
95
|
+
units: [
|
96
|
+
{ name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },
|
97
|
+
{ name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
|
98
|
+
{ name: 'textInput_cacheRead', rate: 0.13, strategy: 'fixed', unit: 'millionTokens' },
|
99
|
+
],
|
92
100
|
},
|
93
101
|
releasedAt: '2025-08-07',
|
94
102
|
type: 'chat',
|
@@ -108,9 +116,11 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
108
116
|
id: 'o4-mini',
|
109
117
|
maxOutput: 100_000,
|
110
118
|
pricing: {
|
111
|
-
|
112
|
-
|
113
|
-
|
119
|
+
units: [
|
120
|
+
{ name: 'textInput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },
|
121
|
+
{ name: 'textOutput', rate: 4.4, strategy: 'fixed', unit: 'millionTokens' },
|
122
|
+
{ name: 'textInput_cacheRead', rate: 0.275, strategy: 'fixed', unit: 'millionTokens' },
|
123
|
+
],
|
114
124
|
},
|
115
125
|
releasedAt: '2025-04-17',
|
116
126
|
settings: {
|
@@ -133,9 +143,11 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
133
143
|
id: 'o4-mini-deep-research',
|
134
144
|
maxOutput: 100_000,
|
135
145
|
pricing: {
|
136
|
-
|
137
|
-
|
138
|
-
|
146
|
+
units: [
|
147
|
+
{ name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
|
148
|
+
{ name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },
|
149
|
+
{ name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
|
150
|
+
],
|
139
151
|
},
|
140
152
|
releasedAt: '2025-06-26',
|
141
153
|
settings: {
|
@@ -158,8 +170,10 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
158
170
|
id: 'o3-pro',
|
159
171
|
maxOutput: 100_000,
|
160
172
|
pricing: {
|
161
|
-
|
162
|
-
|
173
|
+
units: [
|
174
|
+
{ name: 'textInput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },
|
175
|
+
{ name: 'textOutput', rate: 80, strategy: 'fixed', unit: 'millionTokens' },
|
176
|
+
],
|
163
177
|
},
|
164
178
|
releasedAt: '2025-06-10',
|
165
179
|
settings: {
|
@@ -183,9 +197,11 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
183
197
|
id: 'o3',
|
184
198
|
maxOutput: 100_000,
|
185
199
|
pricing: {
|
186
|
-
|
187
|
-
|
188
|
-
|
200
|
+
units: [
|
201
|
+
{ name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
|
202
|
+
{ name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },
|
203
|
+
{ name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
|
204
|
+
],
|
189
205
|
},
|
190
206
|
releasedAt: '2025-04-16',
|
191
207
|
settings: {
|
@@ -208,9 +224,11 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
208
224
|
id: 'o3-deep-research',
|
209
225
|
maxOutput: 100_000,
|
210
226
|
pricing: {
|
211
|
-
|
212
|
-
|
213
|
-
|
227
|
+
units: [
|
228
|
+
{ name: 'textInput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
|
229
|
+
{ name: 'textOutput', rate: 40, strategy: 'fixed', unit: 'millionTokens' },
|
230
|
+
{ name: 'textInput_cacheRead', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
|
231
|
+
],
|
214
232
|
},
|
215
233
|
releasedAt: '2025-06-26',
|
216
234
|
settings: {
|
@@ -231,9 +249,11 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
231
249
|
id: 'gpt-4.1',
|
232
250
|
maxOutput: 32_768,
|
233
251
|
pricing: {
|
234
|
-
|
235
|
-
|
236
|
-
|
252
|
+
units: [
|
253
|
+
{ name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
|
254
|
+
{ name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },
|
255
|
+
{ name: 'textInput_cacheRead', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
|
256
|
+
],
|
237
257
|
},
|
238
258
|
releasedAt: '2025-04-14',
|
239
259
|
settings: {
|
@@ -254,9 +274,11 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
254
274
|
id: 'gpt-4.1-mini',
|
255
275
|
maxOutput: 32_768,
|
256
276
|
pricing: {
|
257
|
-
|
258
|
-
|
259
|
-
|
277
|
+
units: [
|
278
|
+
{ name: 'textInput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
|
279
|
+
{ name: 'textOutput', rate: 1.6, strategy: 'fixed', unit: 'millionTokens' },
|
280
|
+
{ name: 'textInput_cacheRead', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },
|
281
|
+
],
|
260
282
|
},
|
261
283
|
releasedAt: '2025-04-14',
|
262
284
|
settings: {
|
@@ -275,9 +297,11 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
275
297
|
id: 'gpt-4.1-nano',
|
276
298
|
maxOutput: 32_768,
|
277
299
|
pricing: {
|
278
|
-
|
279
|
-
|
280
|
-
|
300
|
+
units: [
|
301
|
+
{ name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },
|
302
|
+
{ name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
|
303
|
+
{ name: 'textInput_cacheRead', rate: 0.025, strategy: 'fixed', unit: 'millionTokens' },
|
304
|
+
],
|
281
305
|
},
|
282
306
|
releasedAt: '2025-04-14',
|
283
307
|
type: 'chat',
|
@@ -292,8 +316,10 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
292
316
|
displayName: 'ChatGPT-4o',
|
293
317
|
id: 'chatgpt-4o-latest',
|
294
318
|
pricing: {
|
295
|
-
|
296
|
-
|
319
|
+
units: [
|
320
|
+
{ name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },
|
321
|
+
{ name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },
|
322
|
+
],
|
297
323
|
},
|
298
324
|
type: 'chat',
|
299
325
|
},
|
@@ -309,9 +335,11 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
309
335
|
enabled: true,
|
310
336
|
id: 'grok-3',
|
311
337
|
pricing: {
|
312
|
-
|
313
|
-
|
314
|
-
|
338
|
+
units: [
|
339
|
+
{ name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
|
340
|
+
{ name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },
|
341
|
+
{ name: 'textInput_cacheRead', rate: 0.75, strategy: 'fixed', unit: 'millionTokens' },
|
342
|
+
],
|
315
343
|
},
|
316
344
|
releasedAt: '2025-04-03',
|
317
345
|
settings: {
|
@@ -332,8 +360,10 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
332
360
|
enabled: true,
|
333
361
|
id: 'grok-3-mini',
|
334
362
|
pricing: {
|
335
|
-
|
336
|
-
|
363
|
+
units: [
|
364
|
+
{ name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
|
365
|
+
{ name: 'textOutput', rate: 0.5, strategy: 'fixed', unit: 'millionTokens' },
|
366
|
+
],
|
337
367
|
},
|
338
368
|
releasedAt: '2025-04-03',
|
339
369
|
settings: {
|
@@ -357,10 +387,17 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
357
387
|
id: 'claude-opus-4-1-20250805',
|
358
388
|
maxOutput: 32_000,
|
359
389
|
pricing: {
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
390
|
+
units: [
|
391
|
+
{ name: 'textInput', rate: 16.5, strategy: 'fixed', unit: 'millionTokens' },
|
392
|
+
{ name: 'textOutput', rate: 82.5, strategy: 'fixed', unit: 'millionTokens' },
|
393
|
+
{ name: 'textInput_cacheRead', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },
|
394
|
+
{
|
395
|
+
lookup: { prices: { '5m': 20.625 }, pricingParams: ['ttl'] },
|
396
|
+
name: 'textInput_cacheWrite',
|
397
|
+
strategy: 'lookup',
|
398
|
+
unit: 'millionTokens',
|
399
|
+
},
|
400
|
+
],
|
364
401
|
},
|
365
402
|
releasedAt: '2025-08-05',
|
366
403
|
settings: {
|
@@ -383,10 +420,17 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
383
420
|
id: 'claude-opus-4-20250514',
|
384
421
|
maxOutput: 32_000,
|
385
422
|
pricing: {
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
423
|
+
units: [
|
424
|
+
{ name: 'textInput', rate: 16.8, strategy: 'fixed', unit: 'millionTokens' },
|
425
|
+
{ name: 'textOutput', rate: 84, strategy: 'fixed', unit: 'millionTokens' },
|
426
|
+
{ name: 'textInput_cacheRead', rate: 1.5, strategy: 'fixed', unit: 'millionTokens' },
|
427
|
+
{
|
428
|
+
lookup: { prices: { '5m': 20.625 }, pricingParams: ['ttl'] },
|
429
|
+
name: 'textInput_cacheWrite',
|
430
|
+
strategy: 'lookup',
|
431
|
+
unit: 'millionTokens',
|
432
|
+
},
|
433
|
+
],
|
390
434
|
},
|
391
435
|
releasedAt: '2025-05-23',
|
392
436
|
settings: {
|
@@ -410,10 +454,17 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
410
454
|
id: 'claude-sonnet-4-20250514',
|
411
455
|
maxOutput: 64_000,
|
412
456
|
pricing: {
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
457
|
+
units: [
|
458
|
+
{ name: 'textInput', rate: 3.3, strategy: 'fixed', unit: 'millionTokens' },
|
459
|
+
{ name: 'textOutput', rate: 16.5, strategy: 'fixed', unit: 'millionTokens' },
|
460
|
+
{ name: 'textInput_cacheRead', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
|
461
|
+
{
|
462
|
+
lookup: { prices: { '5m': 4.125 }, pricingParams: ['ttl'] },
|
463
|
+
name: 'textInput_cacheWrite',
|
464
|
+
strategy: 'lookup',
|
465
|
+
unit: 'millionTokens',
|
466
|
+
},
|
467
|
+
],
|
417
468
|
},
|
418
469
|
releasedAt: '2025-05-23',
|
419
470
|
settings: {
|
@@ -436,10 +487,17 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
436
487
|
id: 'claude-3-7-sonnet-20250219',
|
437
488
|
maxOutput: 64_000,
|
438
489
|
pricing: {
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
490
|
+
units: [
|
491
|
+
{ name: 'textInput', rate: 3.3, strategy: 'fixed', unit: 'millionTokens' },
|
492
|
+
{ name: 'textOutput', rate: 16.5, strategy: 'fixed', unit: 'millionTokens' },
|
493
|
+
{ name: 'textInput_cacheRead', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
|
494
|
+
{
|
495
|
+
lookup: { prices: { '5m': 4.125 }, pricingParams: ['ttl'] },
|
496
|
+
name: 'textInput_cacheWrite',
|
497
|
+
strategy: 'lookup',
|
498
|
+
unit: 'millionTokens',
|
499
|
+
},
|
500
|
+
],
|
443
501
|
},
|
444
502
|
releasedAt: '2025-02-24',
|
445
503
|
settings: {
|
@@ -460,10 +518,17 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
460
518
|
id: 'claude-3-5-haiku-20241022',
|
461
519
|
maxOutput: 8192,
|
462
520
|
pricing: {
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
521
|
+
units: [
|
522
|
+
{ name: 'textInput', rate: 1.1, strategy: 'fixed', unit: 'millionTokens' },
|
523
|
+
{ name: 'textOutput', rate: 5.5, strategy: 'fixed', unit: 'millionTokens' },
|
524
|
+
{ name: 'textInput_cacheRead', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },
|
525
|
+
{
|
526
|
+
lookup: { prices: { '5m': 1.1 }, pricingParams: ['ttl'] },
|
527
|
+
name: 'textInput_cacheWrite',
|
528
|
+
strategy: 'lookup',
|
529
|
+
unit: 'millionTokens',
|
530
|
+
},
|
531
|
+
],
|
467
532
|
},
|
468
533
|
releasedAt: '2024-11-05',
|
469
534
|
settings: {
|
@@ -483,8 +548,10 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
483
548
|
enabled: true,
|
484
549
|
id: 'DeepSeek-R1',
|
485
550
|
pricing: {
|
486
|
-
|
487
|
-
|
551
|
+
units: [
|
552
|
+
{ name: 'textInput', rate: 0.546, strategy: 'fixed', unit: 'millionTokens' },
|
553
|
+
{ name: 'textOutput', rate: 2.184, strategy: 'fixed', unit: 'millionTokens' },
|
554
|
+
],
|
488
555
|
},
|
489
556
|
type: 'chat',
|
490
557
|
},
|
@@ -499,8 +566,10 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
499
566
|
displayName: 'DeepSeek R1 0528 (Azure)',
|
500
567
|
id: 'azure-DeepSeek-R1-0528',
|
501
568
|
pricing: {
|
502
|
-
|
503
|
-
|
569
|
+
units: [
|
570
|
+
{ name: 'textInput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
|
571
|
+
{ name: 'textOutput', rate: 1.6, strategy: 'fixed', unit: 'millionTokens' },
|
572
|
+
],
|
504
573
|
},
|
505
574
|
type: 'chat',
|
506
575
|
},
|
@@ -514,8 +583,10 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
514
583
|
enabled: true,
|
515
584
|
id: 'DeepSeek-V3',
|
516
585
|
pricing: {
|
517
|
-
|
518
|
-
|
586
|
+
units: [
|
587
|
+
{ name: 'textInput', rate: 0.272, strategy: 'fixed', unit: 'millionTokens' },
|
588
|
+
{ name: 'textOutput', rate: 1.088, strategy: 'fixed', unit: 'millionTokens' },
|
589
|
+
],
|
519
590
|
},
|
520
591
|
type: 'chat',
|
521
592
|
},
|
@@ -529,8 +600,10 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
529
600
|
displayName: 'DeepSeek V3 (Fast)',
|
530
601
|
id: 'DeepSeek-V3-Fast',
|
531
602
|
pricing: {
|
532
|
-
|
533
|
-
|
603
|
+
units: [
|
604
|
+
{ name: 'textInput', rate: 0.55, strategy: 'fixed', unit: 'millionTokens' },
|
605
|
+
{ name: 'textOutput', rate: 2.2, strategy: 'fixed', unit: 'millionTokens' },
|
606
|
+
],
|
534
607
|
},
|
535
608
|
type: 'chat',
|
536
609
|
},
|
@@ -549,8 +622,10 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
549
622
|
id: 'gemini-2.5-pro',
|
550
623
|
maxOutput: 65_536,
|
551
624
|
pricing: {
|
552
|
-
|
553
|
-
|
625
|
+
units: [
|
626
|
+
{ name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },
|
627
|
+
{ name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
|
628
|
+
],
|
554
629
|
},
|
555
630
|
releasedAt: '2025-06-17',
|
556
631
|
settings: {
|
@@ -574,9 +649,11 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
574
649
|
id: 'gemini-2.5-flash',
|
575
650
|
maxOutput: 65_536,
|
576
651
|
pricing: {
|
577
|
-
|
578
|
-
|
579
|
-
|
652
|
+
units: [
|
653
|
+
{ name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
|
654
|
+
{ name: 'textOutput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
|
655
|
+
{ name: 'textInput_cacheRead', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },
|
656
|
+
],
|
580
657
|
},
|
581
658
|
releasedAt: '2025-06-17',
|
582
659
|
settings: {
|
@@ -599,9 +676,11 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
599
676
|
id: 'gemini-2.5-flash-lite',
|
600
677
|
maxOutput: 65_536,
|
601
678
|
pricing: {
|
602
|
-
|
603
|
-
|
604
|
-
|
679
|
+
units: [
|
680
|
+
{ name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },
|
681
|
+
{ name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
|
682
|
+
{ name: 'textInput_cacheRead', rate: 0.025, strategy: 'fixed', unit: 'millionTokens' },
|
683
|
+
],
|
605
684
|
},
|
606
685
|
releasedAt: '2025-07-22',
|
607
686
|
settings: {
|
@@ -626,8 +705,10 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
626
705
|
organization: 'Qwen',
|
627
706
|
pricing: {
|
628
707
|
currency: 'CNY',
|
629
|
-
|
630
|
-
|
708
|
+
units: [
|
709
|
+
{ name: 'textInput', rate: 0.28, strategy: 'fixed', unit: 'millionTokens' },
|
710
|
+
{ name: 'textOutput', rate: 2.8, strategy: 'fixed', unit: 'millionTokens' },
|
711
|
+
],
|
631
712
|
},
|
632
713
|
releasedAt: '2025-07-25',
|
633
714
|
type: 'chat',
|
@@ -646,8 +727,10 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
646
727
|
organization: 'Qwen',
|
647
728
|
pricing: {
|
648
729
|
currency: 'CNY',
|
649
|
-
|
650
|
-
|
730
|
+
units: [
|
731
|
+
{ name: 'textInput', rate: 0.28, strategy: 'fixed', unit: 'millionTokens' },
|
732
|
+
{ name: 'textOutput', rate: 1.12, strategy: 'fixed', unit: 'millionTokens' },
|
733
|
+
],
|
651
734
|
},
|
652
735
|
releasedAt: '2025-07-22',
|
653
736
|
type: 'chat',
|
@@ -667,8 +750,10 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
667
750
|
organization: 'Qwen',
|
668
751
|
pricing: {
|
669
752
|
currency: 'CNY',
|
670
|
-
|
671
|
-
|
753
|
+
units: [
|
754
|
+
{ name: 'textInput', rate: 0.12, strategy: 'fixed', unit: 'millionTokens' },
|
755
|
+
{ name: 'textOutput', rate: 1.2, strategy: 'fixed', unit: 'millionTokens' },
|
756
|
+
],
|
672
757
|
},
|
673
758
|
releasedAt: '2025-07-30',
|
674
759
|
type: 'chat',
|
@@ -686,8 +771,11 @@ const aihubmixModels: AIChatModelCard[] = [
|
|
686
771
|
maxOutput: 32_768,
|
687
772
|
organization: 'Qwen',
|
688
773
|
pricing: {
|
689
|
-
|
690
|
-
|
774
|
+
currency: 'CNY',
|
775
|
+
units: [
|
776
|
+
{ name: 'textInput', rate: 0.12, strategy: 'fixed', unit: 'millionTokens' },
|
777
|
+
{ name: 'textOutput', rate: 0.48, strategy: 'fixed', unit: 'millionTokens' },
|
778
|
+
],
|
691
779
|
},
|
692
780
|
releasedAt: '2025-07-29',
|
693
781
|
type: 'chat',
|