@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
@@ -18,8 +18,10 @@ const stepfunChatModels: AIChatModelCard[] = [
|
|
18
18
|
id: 'step-r1-v-mini',
|
19
19
|
pricing: {
|
20
20
|
currency: 'CNY',
|
21
|
-
|
22
|
-
|
21
|
+
units: [
|
22
|
+
{ name: 'textInput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
|
23
|
+
{ name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },
|
24
|
+
],
|
23
25
|
},
|
24
26
|
// settings: {
|
25
27
|
// searchImpl: 'params',
|
@@ -37,8 +39,10 @@ const stepfunChatModels: AIChatModelCard[] = [
|
|
37
39
|
id: 'step-1-8k',
|
38
40
|
pricing: {
|
39
41
|
currency: 'CNY',
|
40
|
-
|
41
|
-
|
42
|
+
units: [
|
43
|
+
{ name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },
|
44
|
+
{ name: 'textOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },
|
45
|
+
],
|
42
46
|
},
|
43
47
|
settings: {
|
44
48
|
searchImpl: 'params',
|
@@ -56,8 +60,10 @@ const stepfunChatModels: AIChatModelCard[] = [
|
|
56
60
|
id: 'step-1-32k',
|
57
61
|
pricing: {
|
58
62
|
currency: 'CNY',
|
59
|
-
|
60
|
-
|
63
|
+
units: [
|
64
|
+
{ name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },
|
65
|
+
{ name: 'textOutput', rate: 70, strategy: 'fixed', unit: 'millionTokens' },
|
66
|
+
],
|
61
67
|
},
|
62
68
|
settings: {
|
63
69
|
searchImpl: 'params',
|
@@ -75,8 +81,10 @@ const stepfunChatModels: AIChatModelCard[] = [
|
|
75
81
|
id: 'step-1-256k',
|
76
82
|
pricing: {
|
77
83
|
currency: 'CNY',
|
78
|
-
|
79
|
-
|
84
|
+
units: [
|
85
|
+
{ name: 'textInput', rate: 95, strategy: 'fixed', unit: 'millionTokens' },
|
86
|
+
{ name: 'textOutput', rate: 300, strategy: 'fixed', unit: 'millionTokens' },
|
87
|
+
],
|
80
88
|
},
|
81
89
|
settings: {
|
82
90
|
searchImpl: 'params',
|
@@ -96,8 +104,10 @@ const stepfunChatModels: AIChatModelCard[] = [
|
|
96
104
|
id: 'step-2-mini',
|
97
105
|
pricing: {
|
98
106
|
currency: 'CNY',
|
99
|
-
|
100
|
-
|
107
|
+
units: [
|
108
|
+
{ name: 'textInput', rate: 1, strategy: 'fixed', unit: 'millionTokens' },
|
109
|
+
{ name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
|
110
|
+
],
|
101
111
|
},
|
102
112
|
releasedAt: '2025-01-14',
|
103
113
|
settings: {
|
@@ -116,8 +126,10 @@ const stepfunChatModels: AIChatModelCard[] = [
|
|
116
126
|
id: 'step-2-16k',
|
117
127
|
pricing: {
|
118
128
|
currency: 'CNY',
|
119
|
-
|
120
|
-
|
129
|
+
units: [
|
130
|
+
{ name: 'textInput', rate: 38, strategy: 'fixed', unit: 'millionTokens' },
|
131
|
+
{ name: 'textOutput', rate: 120, strategy: 'fixed', unit: 'millionTokens' },
|
132
|
+
],
|
121
133
|
},
|
122
134
|
settings: {
|
123
135
|
searchImpl: 'params',
|
@@ -136,8 +148,10 @@ const stepfunChatModels: AIChatModelCard[] = [
|
|
136
148
|
id: 'step-2-16k-exp',
|
137
149
|
pricing: {
|
138
150
|
currency: 'CNY',
|
139
|
-
|
140
|
-
|
151
|
+
units: [
|
152
|
+
{ name: 'textInput', rate: 38, strategy: 'fixed', unit: 'millionTokens' },
|
153
|
+
{ name: 'textOutput', rate: 120, strategy: 'fixed', unit: 'millionTokens' },
|
154
|
+
],
|
141
155
|
},
|
142
156
|
releasedAt: '2025-01-15',
|
143
157
|
settings: {
|
@@ -157,8 +171,10 @@ const stepfunChatModels: AIChatModelCard[] = [
|
|
157
171
|
id: 'step-1v-8k',
|
158
172
|
pricing: {
|
159
173
|
currency: 'CNY',
|
160
|
-
|
161
|
-
|
174
|
+
units: [
|
175
|
+
{ name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },
|
176
|
+
{ name: 'textOutput', rate: 20, strategy: 'fixed', unit: 'millionTokens' },
|
177
|
+
],
|
162
178
|
},
|
163
179
|
settings: {
|
164
180
|
searchImpl: 'params',
|
@@ -177,8 +193,10 @@ const stepfunChatModels: AIChatModelCard[] = [
|
|
177
193
|
id: 'step-1v-32k',
|
178
194
|
pricing: {
|
179
195
|
currency: 'CNY',
|
180
|
-
|
181
|
-
|
196
|
+
units: [
|
197
|
+
{ name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },
|
198
|
+
{ name: 'textOutput', rate: 70, strategy: 'fixed', unit: 'millionTokens' },
|
199
|
+
],
|
182
200
|
},
|
183
201
|
settings: {
|
184
202
|
searchImpl: 'params',
|
@@ -196,8 +214,10 @@ const stepfunChatModels: AIChatModelCard[] = [
|
|
196
214
|
id: 'step-1o-vision-32k',
|
197
215
|
pricing: {
|
198
216
|
currency: 'CNY',
|
199
|
-
|
200
|
-
|
217
|
+
units: [
|
218
|
+
{ name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },
|
219
|
+
{ name: 'textOutput', rate: 70, strategy: 'fixed', unit: 'millionTokens' },
|
220
|
+
],
|
201
221
|
},
|
202
222
|
releasedAt: '2025-01-22',
|
203
223
|
type: 'chat',
|
@@ -214,8 +234,10 @@ const stepfunChatModels: AIChatModelCard[] = [
|
|
214
234
|
id: 'step-1o-turbo-vision',
|
215
235
|
pricing: {
|
216
236
|
currency: 'CNY',
|
217
|
-
|
218
|
-
|
237
|
+
units: [
|
238
|
+
{ name: 'textInput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },
|
239
|
+
{ name: 'textOutput', rate: 35, strategy: 'fixed', unit: 'millionTokens' },
|
240
|
+
],
|
219
241
|
},
|
220
242
|
releasedAt: '2025-02-14',
|
221
243
|
type: 'chat',
|
@@ -26,8 +26,10 @@ const taichuChatModels: AIChatModelCard[] = [
|
|
26
26
|
id: 'taichu_llm',
|
27
27
|
pricing: {
|
28
28
|
currency: 'CNY',
|
29
|
-
|
30
|
-
|
29
|
+
units: [
|
30
|
+
{ name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
|
31
|
+
{ name: 'textOutput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
|
32
|
+
],
|
31
33
|
},
|
32
34
|
type: 'chat',
|
33
35
|
},
|
@@ -42,8 +44,10 @@ const taichuChatModels: AIChatModelCard[] = [
|
|
42
44
|
id: 'taichu_vl',
|
43
45
|
pricing: {
|
44
46
|
currency: 'CNY',
|
45
|
-
|
46
|
-
|
47
|
+
units: [
|
48
|
+
{ name: 'textInput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },
|
49
|
+
{ name: 'textOutput', rate: 5, strategy: 'fixed', unit: 'millionTokens' },
|
50
|
+
],
|
47
51
|
},
|
48
52
|
type: 'chat',
|
49
53
|
},
|
@@ -15,8 +15,10 @@ const tencentCloudChatModels: AIChatModelCard[] = [
|
|
15
15
|
maxOutput: 16_000,
|
16
16
|
pricing: {
|
17
17
|
currency: 'CNY',
|
18
|
-
|
19
|
-
|
18
|
+
units: [
|
19
|
+
{ name: 'textInput', rate: 4, strategy: 'fixed', unit: 'millionTokens' },
|
20
|
+
{ name: 'textOutput', rate: 16, strategy: 'fixed', unit: 'millionTokens' },
|
21
|
+
],
|
20
22
|
},
|
21
23
|
type: 'chat',
|
22
24
|
},
|
@@ -30,8 +32,10 @@ const tencentCloudChatModels: AIChatModelCard[] = [
|
|
30
32
|
maxOutput: 16_000,
|
31
33
|
pricing: {
|
32
34
|
currency: 'CNY',
|
33
|
-
|
34
|
-
|
35
|
+
units: [
|
36
|
+
{ name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
|
37
|
+
{ name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },
|
38
|
+
],
|
35
39
|
},
|
36
40
|
type: 'chat',
|
37
41
|
},
|
@@ -43,8 +47,10 @@ const tencentCloudChatModels: AIChatModelCard[] = [
|
|
43
47
|
maxOutput: 16_000,
|
44
48
|
pricing: {
|
45
49
|
currency: 'CNY',
|
46
|
-
|
47
|
-
|
50
|
+
units: [
|
51
|
+
{ name: 'textInput', rate: 2, strategy: 'fixed', unit: 'millionTokens' },
|
52
|
+
{ name: 'textOutput', rate: 8, strategy: 'fixed', unit: 'millionTokens' },
|
53
|
+
],
|
48
54
|
},
|
49
55
|
type: 'chat',
|
50
56
|
},
|
@@ -11,8 +11,10 @@ const upstageChatModels: AIChatModelCard[] = [
|
|
11
11
|
enabled: true,
|
12
12
|
id: 'solar-pro',
|
13
13
|
pricing: {
|
14
|
-
|
15
|
-
|
14
|
+
units: [
|
15
|
+
{ name: 'textInput', rate: 0.25, strategy: 'fixed', unit: 'millionTokens' },
|
16
|
+
{ name: 'textOutput', rate: 0.25, strategy: 'fixed', unit: 'millionTokens' },
|
17
|
+
],
|
16
18
|
},
|
17
19
|
releasedAt: '2024-11-26',
|
18
20
|
type: 'chat',
|
@@ -28,8 +30,10 @@ const upstageChatModels: AIChatModelCard[] = [
|
|
28
30
|
enabled: true,
|
29
31
|
id: 'solar-mini',
|
30
32
|
pricing: {
|
31
|
-
|
32
|
-
|
33
|
+
units: [
|
34
|
+
{ name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },
|
35
|
+
{ name: 'textOutput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },
|
36
|
+
],
|
33
37
|
},
|
34
38
|
releasedAt: '2025-01-23',
|
35
39
|
type: 'chat',
|
@@ -8,15 +8,16 @@ const v0ChatModels: AIChatModelCard[] = [
|
|
8
8
|
vision: true,
|
9
9
|
},
|
10
10
|
contextWindowTokens: 512_000,
|
11
|
-
description:
|
12
|
-
'v0-1.5-lg 模型适用于高级思考或推理任务',
|
11
|
+
description: 'v0-1.5-lg 模型适用于高级思考或推理任务',
|
13
12
|
displayName: 'v0-1.5-lg',
|
14
13
|
enabled: true,
|
15
14
|
id: 'v0-1.5-lg',
|
16
15
|
maxOutput: 32_000,
|
17
16
|
pricing: {
|
18
|
-
|
19
|
-
|
17
|
+
units: [
|
18
|
+
{ name: 'textInput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },
|
19
|
+
{ name: 'textOutput', rate: 75, strategy: 'fixed', unit: 'millionTokens' },
|
20
|
+
],
|
20
21
|
},
|
21
22
|
type: 'chat',
|
22
23
|
},
|
@@ -27,15 +28,16 @@ const v0ChatModels: AIChatModelCard[] = [
|
|
27
28
|
vision: true,
|
28
29
|
},
|
29
30
|
contextWindowTokens: 128_000,
|
30
|
-
description:
|
31
|
-
'v0-1.5-md 模型适用于日常任务和用户界面(UI)生成',
|
31
|
+
description: 'v0-1.5-md 模型适用于日常任务和用户界面(UI)生成',
|
32
32
|
displayName: 'v0-1.5-md',
|
33
33
|
enabled: true,
|
34
34
|
id: 'v0-1.5-md',
|
35
35
|
maxOutput: 32_000,
|
36
36
|
pricing: {
|
37
|
-
|
38
|
-
|
37
|
+
units: [
|
38
|
+
{ name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
|
39
|
+
{ name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },
|
40
|
+
],
|
39
41
|
},
|
40
42
|
type: 'chat',
|
41
43
|
},
|
@@ -45,14 +47,15 @@ const v0ChatModels: AIChatModelCard[] = [
|
|
45
47
|
vision: true,
|
46
48
|
},
|
47
49
|
contextWindowTokens: 128_000,
|
48
|
-
description:
|
49
|
-
'v0-1.0-md 模型是通过 v0 API 提供服务的旧版模型',
|
50
|
+
description: 'v0-1.0-md 模型是通过 v0 API 提供服务的旧版模型',
|
50
51
|
displayName: 'v0-1.0-md',
|
51
52
|
id: 'v0-1.0-md',
|
52
53
|
maxOutput: 32_000,
|
53
54
|
pricing: {
|
54
|
-
|
55
|
-
|
55
|
+
units: [
|
56
|
+
{ name: 'textInput', rate: 3, strategy: 'fixed', unit: 'millionTokens' },
|
57
|
+
{ name: 'textOutput', rate: 15, strategy: 'fixed', unit: 'millionTokens' },
|
58
|
+
],
|
56
59
|
},
|
57
60
|
type: 'chat',
|
58
61
|
},
|
@@ -17,9 +17,11 @@ const vertexaiChatModels: AIChatModelCard[] = [
|
|
17
17
|
id: 'gemini-2.5-pro',
|
18
18
|
maxOutput: 65_536,
|
19
19
|
pricing: {
|
20
|
-
|
21
|
-
|
22
|
-
|
20
|
+
units: [
|
21
|
+
{ name: 'textInput_cacheRead', rate: 0.31, strategy: 'fixed', unit: 'millionTokens' },
|
22
|
+
{ name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },
|
23
|
+
{ name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
|
24
|
+
],
|
23
25
|
},
|
24
26
|
releasedAt: '2025-06-17',
|
25
27
|
settings: {
|
@@ -42,8 +44,10 @@ const vertexaiChatModels: AIChatModelCard[] = [
|
|
42
44
|
id: 'gemini-2.5-pro-preview-05-06',
|
43
45
|
maxOutput: 65_536,
|
44
46
|
pricing: {
|
45
|
-
|
46
|
-
|
47
|
+
units: [
|
48
|
+
{ name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },
|
49
|
+
{ name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
|
50
|
+
],
|
47
51
|
},
|
48
52
|
releasedAt: '2025-05-06',
|
49
53
|
type: 'chat',
|
@@ -61,8 +65,10 @@ const vertexaiChatModels: AIChatModelCard[] = [
|
|
61
65
|
id: 'gemini-2.5-pro-preview-03-25',
|
62
66
|
maxOutput: 65_536,
|
63
67
|
pricing: {
|
64
|
-
|
65
|
-
|
68
|
+
units: [
|
69
|
+
{ name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },
|
70
|
+
{ name: 'textOutput', rate: 10, strategy: 'fixed', unit: 'millionTokens' },
|
71
|
+
],
|
66
72
|
},
|
67
73
|
releasedAt: '2025-04-09',
|
68
74
|
type: 'chat',
|
@@ -81,9 +87,11 @@ const vertexaiChatModels: AIChatModelCard[] = [
|
|
81
87
|
id: 'gemini-2.5-flash',
|
82
88
|
maxOutput: 65_536,
|
83
89
|
pricing: {
|
84
|
-
|
85
|
-
|
86
|
-
|
90
|
+
units: [
|
91
|
+
{ name: 'textInput_cacheRead', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },
|
92
|
+
{ name: 'textInput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
|
93
|
+
{ name: 'textOutput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
|
94
|
+
],
|
87
95
|
},
|
88
96
|
releasedAt: '2025-06-17',
|
89
97
|
settings: {
|
@@ -105,8 +113,10 @@ const vertexaiChatModels: AIChatModelCard[] = [
|
|
105
113
|
id: 'gemini-2.5-flash-preview-04-17',
|
106
114
|
maxOutput: 65_536,
|
107
115
|
pricing: {
|
108
|
-
|
109
|
-
|
116
|
+
units: [
|
117
|
+
{ name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },
|
118
|
+
{ name: 'textOutput', rate: 3.5, strategy: 'fixed', unit: 'millionTokens' },
|
119
|
+
],
|
110
120
|
},
|
111
121
|
releasedAt: '2025-04-17',
|
112
122
|
type: 'chat',
|
@@ -125,9 +135,11 @@ const vertexaiChatModels: AIChatModelCard[] = [
|
|
125
135
|
id: 'gemini-2.5-flash-lite',
|
126
136
|
maxOutput: 64_000,
|
127
137
|
pricing: {
|
128
|
-
|
129
|
-
|
130
|
-
|
138
|
+
units: [
|
139
|
+
{ name: 'textInput_cacheRead', rate: 0.025, strategy: 'fixed', unit: 'millionTokens' },
|
140
|
+
{ name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },
|
141
|
+
{ name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
|
142
|
+
],
|
131
143
|
},
|
132
144
|
releasedAt: '2025-07-22',
|
133
145
|
settings: {
|
@@ -150,8 +162,10 @@ const vertexaiChatModels: AIChatModelCard[] = [
|
|
150
162
|
id: 'gemini-2.5-flash-lite-preview-06-17',
|
151
163
|
maxOutput: 64_000,
|
152
164
|
pricing: {
|
153
|
-
|
154
|
-
|
165
|
+
units: [
|
166
|
+
{ name: 'textInput', rate: 0.1, strategy: 'fixed', unit: 'millionTokens' },
|
167
|
+
{ name: 'textOutput', rate: 0.4, strategy: 'fixed', unit: 'millionTokens' },
|
168
|
+
],
|
155
169
|
},
|
156
170
|
releasedAt: '2025-06-17',
|
157
171
|
settings: {
|
@@ -172,9 +186,11 @@ const vertexaiChatModels: AIChatModelCard[] = [
|
|
172
186
|
id: 'gemini-2.0-flash',
|
173
187
|
maxOutput: 8192,
|
174
188
|
pricing: {
|
175
|
-
|
176
|
-
|
177
|
-
|
189
|
+
units: [
|
190
|
+
{ name: 'textInput_cacheRead', rate: 0.0375, strategy: 'fixed', unit: 'millionTokens' },
|
191
|
+
{ name: 'textInput', rate: 0.15, strategy: 'fixed', unit: 'millionTokens' },
|
192
|
+
{ name: 'textOutput', rate: 0.6, strategy: 'fixed', unit: 'millionTokens' },
|
193
|
+
],
|
178
194
|
},
|
179
195
|
releasedAt: '2025-02-05',
|
180
196
|
type: 'chat',
|
@@ -190,9 +206,11 @@ const vertexaiChatModels: AIChatModelCard[] = [
|
|
190
206
|
id: 'gemini-2.0-flash-lite',
|
191
207
|
maxOutput: 8192,
|
192
208
|
pricing: {
|
193
|
-
|
194
|
-
|
195
|
-
|
209
|
+
units: [
|
210
|
+
{ name: 'textInput_cacheRead', rate: 0.018, strategy: 'fixed', unit: 'millionTokens' },
|
211
|
+
{ name: 'textInput', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },
|
212
|
+
{ name: 'textOutput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
|
213
|
+
],
|
196
214
|
},
|
197
215
|
releasedAt: '2025-02-05',
|
198
216
|
type: 'chat',
|
@@ -208,8 +226,10 @@ const vertexaiChatModels: AIChatModelCard[] = [
|
|
208
226
|
id: 'gemini-1.5-flash-002',
|
209
227
|
maxOutput: 8192,
|
210
228
|
pricing: {
|
211
|
-
|
212
|
-
|
229
|
+
units: [
|
230
|
+
{ name: 'textInput', rate: 0.075, strategy: 'fixed', unit: 'millionTokens' },
|
231
|
+
{ name: 'textOutput', rate: 0.3, strategy: 'fixed', unit: 'millionTokens' },
|
232
|
+
],
|
213
233
|
},
|
214
234
|
releasedAt: '2024-09-25',
|
215
235
|
type: 'chat',
|
@@ -226,8 +246,10 @@ const vertexaiChatModels: AIChatModelCard[] = [
|
|
226
246
|
id: 'gemini-1.5-pro-002',
|
227
247
|
maxOutput: 8192,
|
228
248
|
pricing: {
|
229
|
-
|
230
|
-
|
249
|
+
units: [
|
250
|
+
{ name: 'textInput', rate: 1.25, strategy: 'fixed', unit: 'millionTokens' },
|
251
|
+
{ name: 'textOutput', rate: 2.5, strategy: 'fixed', unit: 'millionTokens' },
|
252
|
+
],
|
231
253
|
},
|
232
254
|
releasedAt: '2024-09-24',
|
233
255
|
type: 'chat',
|