ai.libx.js 0.2.12 → 0.2.14
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/build/models/deepseek.js +5 -23
- package/build/models/deepseek.js.map +1 -1
- package/build/models/google.js +41 -146
- package/build/models/google.js.map +1 -1
- package/build/models/xai.js +29 -13
- package/build/models/xai.js.map +1 -1
- package/package.json +1 -1
- package/src/models/deepseek.ts +7 -25
- package/src/models/google.ts +54 -168
- package/src/models/xai.ts +37 -17
package/build/models/deepseek.js
CHANGED
|
@@ -5,34 +5,16 @@ const types_1 = require("./types");
|
|
|
5
5
|
exports.deepseekModels = {
|
|
6
6
|
'deepseek/deepseek-chat': (0, types_1.createModel)('DeepSeek Chat', {
|
|
7
7
|
releaseDate: '2025-01-20',
|
|
8
|
-
contextWindow:
|
|
8
|
+
contextWindow: 128000,
|
|
9
9
|
maxOutputTokens: 8192,
|
|
10
|
-
pricing: (0, types_1.createPricing)(0.
|
|
10
|
+
pricing: (0, types_1.createPricing)(0.00027, 0.0011),
|
|
11
11
|
}),
|
|
12
|
-
'deepseek/deepseek-
|
|
13
|
-
releaseDate: '2024-12-26',
|
|
14
|
-
contextWindow: 64000,
|
|
15
|
-
maxOutputTokens: 8192,
|
|
16
|
-
pricing: (0, types_1.createPricing)(0.00028, 0.00042),
|
|
17
|
-
}),
|
|
18
|
-
'deepseek/deepseek-v3-1': (0, types_1.createModel)('DeepSeek V3.1', {
|
|
19
|
-
releaseDate: '2025-01-10',
|
|
20
|
-
contextWindow: 64000,
|
|
21
|
-
maxOutputTokens: 8192,
|
|
22
|
-
pricing: (0, types_1.createPricing)(0.00028, 0.00042),
|
|
23
|
-
}),
|
|
24
|
-
'deepseek/deepseek-v3-2': (0, types_1.createModel)('DeepSeek V3.2', {
|
|
25
|
-
releaseDate: '2025-01-20',
|
|
26
|
-
contextWindow: 64000,
|
|
27
|
-
maxOutputTokens: 8192,
|
|
28
|
-
pricing: (0, types_1.createPricing)(0.00028, 0.00042),
|
|
29
|
-
}),
|
|
30
|
-
'deepseek/deepseek-reasoner': (0, types_1.createModel)('DeepSeek R1', {
|
|
12
|
+
'deepseek/deepseek-reasoner': (0, types_1.createModel)('DeepSeek Reasoner', {
|
|
31
13
|
reasoning: true,
|
|
32
14
|
releaseDate: '2025-01-20',
|
|
33
|
-
contextWindow:
|
|
15
|
+
contextWindow: 128000,
|
|
34
16
|
maxOutputTokens: 8192,
|
|
35
|
-
pricing: (0, types_1.createPricing)(0.
|
|
17
|
+
pricing: (0, types_1.createPricing)(0.00055, 0.0022),
|
|
36
18
|
}),
|
|
37
19
|
};
|
|
38
20
|
//# sourceMappingURL=deepseek.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepseek.js","sourceRoot":"","sources":["../../src/models/deepseek.ts"],"names":[],"mappings":";;;AACA,mCAAqD;AAExC,QAAA,cAAc,GAA8B;IAErD,wBAAwB,EAAE,IAAA,mBAAW,EAAC,eAAe,EAAE;QACnD,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"deepseek.js","sourceRoot":"","sources":["../../src/models/deepseek.ts"],"names":[],"mappings":";;;AACA,mCAAqD;AAExC,QAAA,cAAc,GAA8B;IAErD,wBAAwB,EAAE,IAAA,mBAAW,EAAC,eAAe,EAAE;QACnD,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,MAAM;QACrB,eAAe,EAAE,IAAI;QACrB,OAAO,EAAE,IAAA,qBAAa,EAAC,OAAO,EAAE,MAAM,CAAC;KAC1C,CAAC;IAGF,4BAA4B,EAAE,IAAA,mBAAW,EAAC,mBAAmB,EAAE;QAC3D,SAAS,EAAE,IAAI;QACf,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,MAAM;QACrB,eAAe,EAAE,IAAI;QACrB,OAAO,EAAE,IAAA,qBAAa,EAAC,OAAO,EAAE,MAAM,CAAC;KAC1C,CAAC;CACL,CAAC","sourcesContent":["import { ModelInfo } from '../types';\nimport { createModel, createPricing } from './types';\n\nexport const deepseekModels: Record<string, ModelInfo> = {\n // DeepSeek V3.2 (Chat / Non-thinking mode)\n 'deepseek/deepseek-chat': createModel('DeepSeek Chat', {\n releaseDate: '2025-01-20',\n contextWindow: 128000,\n maxOutputTokens: 8192,\n pricing: createPricing(0.00027, 0.0011),\n }),\n\n // DeepSeek V3.2 (Reasoner / Thinking mode)\n 'deepseek/deepseek-reasoner': createModel('DeepSeek Reasoner', {\n reasoning: true,\n releaseDate: '2025-01-20',\n contextWindow: 128000,\n maxOutputTokens: 8192,\n pricing: createPricing(0.00055, 0.0022),\n }),\n};\n"]}
|
package/build/models/google.js
CHANGED
|
@@ -3,206 +3,101 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.googleModels = void 0;
|
|
4
4
|
const types_1 = require("./types");
|
|
5
5
|
exports.googleModels = {
|
|
6
|
-
'google/models/gemini-3-flash-preview': (0, types_1.createModel)('Gemini 3 Flash Preview', {
|
|
7
|
-
vision: true,
|
|
8
|
-
imageInput: true,
|
|
9
|
-
releaseDate: '2025-12-19',
|
|
10
|
-
contextWindow: 1000000,
|
|
11
|
-
maxOutputTokens: 16000,
|
|
12
|
-
pricing: (0, types_1.createPricing)(0.075, 0.3),
|
|
13
|
-
}),
|
|
14
6
|
'google/models/gemini-3-pro-preview': (0, types_1.createModel)('Gemini 3 Pro Preview', {
|
|
15
7
|
vision: true,
|
|
16
8
|
imageInput: true,
|
|
17
9
|
reasoning: true,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
pricing: (0, types_1.createPricing)(0.0375, 0.15),
|
|
10
|
+
contextWindow: 1048576,
|
|
11
|
+
maxOutputTokens: 65536,
|
|
12
|
+
pricing: (0, types_1.createPricing)(0.002, 0.012),
|
|
22
13
|
}),
|
|
23
14
|
'google/models/gemini-3-pro-image-preview': (0, types_1.createModel)('Gemini 3 Pro Image Preview', {
|
|
24
15
|
vision: true,
|
|
25
16
|
imageInput: true,
|
|
26
17
|
imageGen: true,
|
|
27
18
|
responseModalities: ['Text', 'Image'],
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
19
|
+
contextWindow: 65536,
|
|
20
|
+
maxOutputTokens: 32768,
|
|
21
|
+
pricing: (0, types_1.createPricing)(0.002, 0.012),
|
|
31
22
|
}),
|
|
32
|
-
'google/models/gemini-
|
|
33
|
-
vision: true,
|
|
34
|
-
imageInput: true,
|
|
35
|
-
reasoning: true,
|
|
36
|
-
releaseDate: '2024-12-19',
|
|
37
|
-
contextWindow: 1000000,
|
|
38
|
-
maxOutputTokens: 8000,
|
|
39
|
-
pricing: (0, types_1.createPricing)(0.075, 0.3),
|
|
40
|
-
}),
|
|
41
|
-
'google/models/gemini-2.5-flash-lite-preview-06-17': (0, types_1.createModel)('Gemini 2.5 Flash-Lite Preview 06-17', {
|
|
23
|
+
'google/models/gemini-3-flash-preview': (0, types_1.createModel)('Gemini 3 Flash Preview', {
|
|
42
24
|
vision: true,
|
|
43
25
|
imageInput: true,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
maxOutputTokens: 8000,
|
|
26
|
+
contextWindow: 1048576,
|
|
27
|
+
maxOutputTokens: 65536,
|
|
28
|
+
pricing: (0, types_1.createPricing)(0.0005, 0.003),
|
|
48
29
|
}),
|
|
49
30
|
'google/models/gemini-2.5-pro': (0, types_1.createModel)('Gemini 2.5 Pro', {
|
|
50
31
|
vision: true,
|
|
51
32
|
imageInput: true,
|
|
52
33
|
reasoning: true,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
pricing: (0, types_1.createPricing)(0.0375, 0.15),
|
|
34
|
+
contextWindow: 1048576,
|
|
35
|
+
maxOutputTokens: 65536,
|
|
36
|
+
pricing: (0, types_1.createPricing)(0.00125, 0.01),
|
|
57
37
|
}),
|
|
58
|
-
'google/models/gemini-2.5-
|
|
38
|
+
'google/models/gemini-2.5-flash': (0, types_1.createModel)('Gemini 2.5 Flash', {
|
|
59
39
|
vision: true,
|
|
60
40
|
imageInput: true,
|
|
61
41
|
reasoning: true,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}),
|
|
66
|
-
'google/models/gemini-2.0-flash': (0, types_1.createModel)('Gemini 2.0 Flash', {
|
|
67
|
-
vision: true,
|
|
68
|
-
imageInput: true,
|
|
69
|
-
releaseDate: '2024-12-11',
|
|
70
|
-
contextWindow: 1000000,
|
|
71
|
-
maxOutputTokens: 8000,
|
|
72
|
-
pricing: (0, types_1.createPricing)(0.075, 0.3),
|
|
42
|
+
contextWindow: 1048576,
|
|
43
|
+
maxOutputTokens: 65536,
|
|
44
|
+
pricing: (0, types_1.createPricing)(0.0003, 0.0025),
|
|
73
45
|
}),
|
|
74
|
-
'google/models/gemini-2.
|
|
46
|
+
'google/models/gemini-2.5-flash-preview-09-2025': (0, types_1.createModel)('Gemini 2.5 Flash Preview 09-2025', {
|
|
75
47
|
vision: true,
|
|
76
48
|
imageInput: true,
|
|
77
|
-
|
|
78
|
-
contextWindow:
|
|
79
|
-
maxOutputTokens:
|
|
49
|
+
reasoning: true,
|
|
50
|
+
contextWindow: 1048576,
|
|
51
|
+
maxOutputTokens: 65536,
|
|
80
52
|
}),
|
|
81
|
-
'google/models/gemini-2.
|
|
53
|
+
'google/models/gemini-2.5-flash-image': (0, types_1.createModel)('Gemini 2.5 Flash Image', {
|
|
82
54
|
vision: true,
|
|
83
55
|
imageInput: true,
|
|
84
56
|
imageGen: true,
|
|
85
57
|
responseModalities: ['Text', 'Image'],
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
maxOutputTokens: 8000,
|
|
58
|
+
contextWindow: 65536,
|
|
59
|
+
maxOutputTokens: 32768,
|
|
89
60
|
}),
|
|
90
|
-
'google/models/gemini-2.
|
|
61
|
+
'google/models/gemini-2.5-flash-lite': (0, types_1.createModel)('Gemini 2.5 Flash-Lite', {
|
|
91
62
|
vision: true,
|
|
92
63
|
imageInput: true,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
64
|
+
contextWindow: 1048576,
|
|
65
|
+
maxOutputTokens: 65536,
|
|
66
|
+
pricing: (0, types_1.createPricing)(0.0001, 0.0004),
|
|
96
67
|
}),
|
|
97
|
-
'google/models/gemini-2.
|
|
68
|
+
'google/models/gemini-2.5-flash-lite-preview-09-2025': (0, types_1.createModel)('Gemini 2.5 Flash-Lite Preview 09-2025', {
|
|
98
69
|
vision: true,
|
|
99
70
|
imageInput: true,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
contextWindow: 1000000,
|
|
103
|
-
maxOutputTokens: 8000,
|
|
71
|
+
contextWindow: 1048576,
|
|
72
|
+
maxOutputTokens: 65536,
|
|
104
73
|
}),
|
|
105
|
-
'google/models/gemini-2.0-flash
|
|
74
|
+
'google/models/gemini-2.0-flash': (0, types_1.createModel)('Gemini 2.0 Flash', {
|
|
106
75
|
vision: true,
|
|
107
76
|
imageInput: true,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
maxOutputTokens: 8000,
|
|
77
|
+
contextWindow: 1048576,
|
|
78
|
+
maxOutputTokens: 8192,
|
|
79
|
+
deprecationDate: '2026-03-31',
|
|
80
|
+
pricing: (0, types_1.createPricing)(0.0001, 0.0004),
|
|
113
81
|
}),
|
|
114
|
-
'google/models/gemini-2.0-flash-
|
|
82
|
+
'google/models/gemini-2.0-flash-lite': (0, types_1.createModel)('Gemini 2.0 Flash-Lite', {
|
|
115
83
|
vision: true,
|
|
116
84
|
imageInput: true,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
85
|
+
contextWindow: 1048576,
|
|
86
|
+
maxOutputTokens: 8192,
|
|
87
|
+
deprecationDate: '2026-03-31',
|
|
88
|
+
pricing: (0, types_1.createPricing)(0.000075, 0.0003),
|
|
121
89
|
}),
|
|
122
90
|
'google/models/gemma-3n-e4b-it': (0, types_1.createModel)('Gemma 3n E4B', {
|
|
123
|
-
releaseDate: '2025-01-01',
|
|
124
91
|
contextWindow: 8192,
|
|
125
92
|
maxOutputTokens: 8192,
|
|
126
93
|
}),
|
|
127
94
|
'google/models/gemma-3n-e2b-it': (0, types_1.createModel)('Gemma 3n E2B', {
|
|
128
|
-
releaseDate: '2025-01-01',
|
|
129
95
|
contextWindow: 8192,
|
|
130
96
|
maxOutputTokens: 8192,
|
|
131
97
|
}),
|
|
132
98
|
'google/models/gemma-3-27b-it': (0, types_1.createModel)('Gemma 3 27B', {
|
|
133
|
-
releaseDate: '2025-01-01',
|
|
134
99
|
contextWindow: 8192,
|
|
135
100
|
maxOutputTokens: 8192,
|
|
136
101
|
}),
|
|
137
|
-
'google/models/learnlm-1.5-pro-experimental': (0, types_1.createModel)('LearnLM 1.5 Pro Experimental', {
|
|
138
|
-
releaseDate: '2024-08-07',
|
|
139
|
-
contextWindow: 100000,
|
|
140
|
-
maxOutputTokens: 8000,
|
|
141
|
-
}),
|
|
142
|
-
'google/models/gemini-exp-1206': (0, types_1.createModel)('Gemini (exp-1206)', {
|
|
143
|
-
vision: true,
|
|
144
|
-
imageInput: true,
|
|
145
|
-
releaseDate: '2024-12-06',
|
|
146
|
-
contextWindow: 1000000,
|
|
147
|
-
maxOutputTokens: 8000,
|
|
148
|
-
}),
|
|
149
|
-
'google/models/gemini-1.5-flash-8b': (0, types_1.createModel)('Gemini 1.5 Flash-8B', {
|
|
150
|
-
vision: true,
|
|
151
|
-
imageInput: true,
|
|
152
|
-
releaseDate: '2024-07-23',
|
|
153
|
-
contextWindow: 1000000,
|
|
154
|
-
maxOutputTokens: 8000,
|
|
155
|
-
pricing: (0, types_1.createPricing)(0.075, 0.3),
|
|
156
|
-
}),
|
|
157
|
-
'google/models/gemini-1.5-pro-002': (0, types_1.createModel)('Gemini 1.5 Pro 2', {
|
|
158
|
-
vision: true,
|
|
159
|
-
imageInput: true,
|
|
160
|
-
releaseDate: '2024-12-03',
|
|
161
|
-
contextWindow: 1000000,
|
|
162
|
-
maxOutputTokens: 8000,
|
|
163
|
-
pricing: (0, types_1.createPricing)(0.0375, 0.15),
|
|
164
|
-
}),
|
|
165
|
-
'google/models/gemini-1.5-flash-002': (0, types_1.createModel)('Gemini 1.5 Flash 2', {
|
|
166
|
-
vision: true,
|
|
167
|
-
imageInput: true,
|
|
168
|
-
releaseDate: '2024-12-03',
|
|
169
|
-
contextWindow: 1000000,
|
|
170
|
-
maxOutputTokens: 8000,
|
|
171
|
-
}),
|
|
172
|
-
'google/models/gemini-1.5-flash-latest': (0, types_1.createModel)('Gemini 1.5 Flash', {
|
|
173
|
-
vision: true,
|
|
174
|
-
imageInput: true,
|
|
175
|
-
releaseDate: '2024-05-14',
|
|
176
|
-
contextWindow: 1000000,
|
|
177
|
-
maxOutputTokens: 8000,
|
|
178
|
-
pricing: (0, types_1.createPricing)(0.075, 0.3),
|
|
179
|
-
}),
|
|
180
|
-
'google/models/gemini-1.5-pro-latest': (0, types_1.createModel)('Gemini 1.5 Pro', {
|
|
181
|
-
vision: true,
|
|
182
|
-
imageInput: true,
|
|
183
|
-
releaseDate: '2024-05-14',
|
|
184
|
-
contextWindow: 1000000,
|
|
185
|
-
maxOutputTokens: 8000,
|
|
186
|
-
pricing: (0, types_1.createPricing)(0.0375, 0.15),
|
|
187
|
-
}),
|
|
188
|
-
'google/models/gemini-1.0-pro-latest': (0, types_1.createModel)('Gemini 1.0 Pro', {
|
|
189
|
-
releaseDate: '2023-12-13',
|
|
190
|
-
contextWindow: 32000,
|
|
191
|
-
maxOutputTokens: 8000,
|
|
192
|
-
pricing: (0, types_1.createPricing)(0.0005, 0.0015),
|
|
193
|
-
}),
|
|
194
|
-
'google/models/gemini-pro-vision': (0, types_1.createModel)('Gemini 1.0 Pro Vision', {
|
|
195
|
-
vision: true,
|
|
196
|
-
imageInput: true,
|
|
197
|
-
releaseDate: '2023-12-13',
|
|
198
|
-
contextWindow: 16000,
|
|
199
|
-
maxOutputTokens: 4096,
|
|
200
|
-
}),
|
|
201
|
-
'google/models/chat-bison-001': (0, types_1.createModel)('PaLM 2 Chat (Legacy)', {
|
|
202
|
-
releaseDate: '2023-03-31',
|
|
203
|
-
contextWindow: 8192,
|
|
204
|
-
maxOutputTokens: 2048,
|
|
205
|
-
deprecationDate: '2024-07-01',
|
|
206
|
-
}),
|
|
207
102
|
};
|
|
208
103
|
//# sourceMappingURL=google.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google.js","sourceRoot":"","sources":["../../src/models/google.ts"],"names":[],"mappings":";;;AACA,mCAAqD;AAExC,QAAA,YAAY,GAA8B;IAEtD,sCAAsC,EAAE,IAAA,mBAAW,EAAC,wBAAwB,EAAE;QAC7E,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,IAAI;QAChB,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,OAAO;QACtB,eAAe,EAAE,KAAK;QACtB,OAAO,EAAE,IAAA,qBAAa,EAAC,KAAK,EAAE,GAAG,CAAC;KAClC,CAAC;IACF,oCAAoC,EAAE,IAAA,mBAAW,EAAC,sBAAsB,EAAE;QACzE,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,IAAI;QACf,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,OAAO;QACtB,eAAe,EAAE,KAAK;QACtB,OAAO,EAAE,IAAA,qBAAa,EAAC,MAAM,EAAE,IAAI,CAAC;KACpC,CAAC;IACF,0CAA0C,EAAE,IAAA,mBAAW,EAAC,4BAA4B,EAAE;QACrF,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,IAAI;QACd,kBAAkB,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;QACrC,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,OAAO;QACtB,eAAe,EAAE,KAAK;KACtB,CAAC;IAGF,gCAAgC,EAAE,IAAA,mBAAW,EAAC,kBAAkB,EAAE;QACjE,MAAM,EAAE,IA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'../types';\nimport { createModel, createPricing } from './types';\n\nexport const googleModels: Record<string, ModelInfo> = {\n\t// Gemini 3 series (latest 2026)\n\t'google/models/gemini-3-flash-preview': createModel('Gemini 3 Flash Preview', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treleaseDate: '2025-12-19',\n\t\tcontextWindow: 1000000,\n\t\tmaxOutputTokens: 16000,\n\t\tpricing: createPricing(0.075, 0.3),\n\t}),\n\t'google/models/gemini-3-pro-preview': createModel('Gemini 3 Pro Preview', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treasoning: true,\n\t\treleaseDate: '2025-12-19',\n\t\tcontextWindow: 1000000,\n\t\tmaxOutputTokens: 16000,\n\t\tpricing: createPricing(0.0375, 0.15),\n\t}),\n\t'google/models/gemini-3-pro-image-preview': createModel('Gemini 3 Pro Image Preview', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\timageGen: true,\n\t\tresponseModalities: ['Text', 'Image'],\n\t\treleaseDate: '2025-12-19',\n\t\tcontextWindow: 1000000,\n\t\tmaxOutputTokens: 16000,\n\t}),\n\n\t// Gemini 2.5 series\n\t'google/models/gemini-2.5-flash': createModel('Gemini 2.5 Flash', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treasoning: true,\n\t\treleaseDate: '2024-12-19',\n\t\tcontextWindow: 1000000,\n\t\tmaxOutputTokens: 8000,\n\t\tpricing: createPricing(0.075, 0.3),\n\t}),\n\t'google/models/gemini-2.5-flash-lite-preview-06-17': createModel('Gemini 2.5 Flash-Lite Preview 06-17', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treasoning: true,\n\t\treleaseDate: '2024-06-17',\n\t\tcontextWindow: 1000000,\n\t\tmaxOutputTokens: 8000,\n\t}),\n\t'google/models/gemini-2.5-pro': createModel('Gemini 2.5 Pro', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treasoning: true,\n\t\treleaseDate: '2024-12-19',\n\t\tcontextWindow: 1000000,\n\t\tmaxOutputTokens: 8000,\n\t\tpricing: createPricing(0.0375, 0.15),\n\t}),\n\t'google/models/gemini-2.5-pro-exp-03-25': createModel('Gemini 2.5 Pro Experimental 03-25', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treasoning: true,\n\t\treleaseDate: '2024-03-25',\n\t\tcontextWindow: 1000000,\n\t\tmaxOutputTokens: 8000,\n\t}),\n\n\t// Gemini 2.0 series\n\t'google/models/gemini-2.0-flash': createModel('Gemini 2.0 Flash', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treleaseDate: '2024-12-11',\n\t\tcontextWindow: 1000000,\n\t\tmaxOutputTokens: 8000,\n\t\tpricing: createPricing(0.075, 0.3),\n\t}),\n\t'google/models/gemini-2.0-flash-lite': createModel('Gemini 2.0 Flash-Lite', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treleaseDate: '2024-12-11',\n\t\tcontextWindow: 1000000,\n\t\tmaxOutputTokens: 8000,\n\t}),\n\t'google/models/gemini-2.0-flash-preview-image-generation': createModel(\n\t\t'Gemini 2.0 Flash Preview Image Generation',\n\t\t{\n\t\t\tvision: true,\n\t\t\timageInput: true,\n\t\t\timageGen: true,\n\t\t\tresponseModalities: ['Text', 'Image'],\n\t\t\treleaseDate: '2024-11-28',\n\t\t\tcontextWindow: 1000000,\n\t\t\tmaxOutputTokens: 8000,\n\t\t}\n\t),\n\t'google/models/gemini-2.0-pro-exp-02-05': createModel('Gemini 2.0 Pro Experimental 02-05', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treleaseDate: '2024-02-05',\n\t\tcontextWindow: 1000000,\n\t\tmaxOutputTokens: 8000,\n\t}),\n\t'google/models/gemini-2.0-flash-thinking-exp-01-21': createModel(\n\t\t'Gemini 2.0 Flash Thinking Experimental 01-21',\n\t\t{\n\t\t\tvision: true,\n\t\t\timageInput: true,\n\t\t\treasoning: true,\n\t\t\treleaseDate: '2024-01-21',\n\t\t\tcontextWindow: 1000000,\n\t\t\tmaxOutputTokens: 8000,\n\t\t}\n\t),\n\t'google/models/gemini-2.0-flash-exp': createModel('Gemini 2.0 Flash Experimental', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\timageGen: true,\n\t\tresponseModalities: ['Text', 'Image'],\n\t\treleaseDate: '2024-12-11',\n\t\tcontextWindow: 1000000,\n\t\tmaxOutputTokens: 8000,\n\t}),\n\t'google/models/gemini-2.0-flash-thinking-exp-1219': createModel('Gemini 2.0 Flash Thinking Mode', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treasoning: true,\n\t\treleaseDate: '2024-12-19',\n\t\tcontextWindow: 1000000,\n\t\tmaxOutputTokens: 8000,\n\t}),\n\n\t// Gemma 3 series\n\t'google/models/gemma-3n-e4b-it': createModel('Gemma 3n E4B', {\n\t\treleaseDate: '2025-01-01',\n\t\tcontextWindow: 8192,\n\t\tmaxOutputTokens: 8192,\n\t}),\n\t'google/models/gemma-3n-e2b-it': createModel('Gemma 3n E2B', {\n\t\treleaseDate: '2025-01-01',\n\t\tcontextWindow: 8192,\n\t\tmaxOutputTokens: 8192,\n\t}),\n\t'google/models/gemma-3-27b-it': createModel('Gemma 3 27B', {\n\t\treleaseDate: '2025-01-01',\n\t\tcontextWindow: 8192,\n\t\tmaxOutputTokens: 8192,\n\t}),\n\n\t// LearnLM\n\t'google/models/learnlm-1.5-pro-experimental': createModel('LearnLM 1.5 Pro Experimental', {\n\t\treleaseDate: '2024-08-07',\n\t\tcontextWindow: 100000,\n\t\tmaxOutputTokens: 8000,\n\t}),\n\n\t// Gemini experimental\n\t'google/models/gemini-exp-1206': createModel('Gemini (exp-1206)', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treleaseDate: '2024-12-06',\n\t\tcontextWindow: 1000000,\n\t\tmaxOutputTokens: 8000,\n\t}),\n\n\t// Gemini 1.5 series\n\t'google/models/gemini-1.5-flash-8b': createModel('Gemini 1.5 Flash-8B', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treleaseDate: '2024-07-23',\n\t\tcontextWindow: 1000000,\n\t\tmaxOutputTokens: 8000,\n\t\tpricing: createPricing(0.075, 0.3),\n\t}),\n\t'google/models/gemini-1.5-pro-002': createModel('Gemini 1.5 Pro 2', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treleaseDate: '2024-12-03',\n\t\tcontextWindow: 1000000,\n\t\tmaxOutputTokens: 8000,\n\t\tpricing: createPricing(0.0375, 0.15),\n\t}),\n\t'google/models/gemini-1.5-flash-002': createModel('Gemini 1.5 Flash 2', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treleaseDate: '2024-12-03',\n\t\tcontextWindow: 1000000,\n\t\tmaxOutputTokens: 8000,\n\t}),\n\t'google/models/gemini-1.5-flash-latest': createModel('Gemini 1.5 Flash', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treleaseDate: '2024-05-14',\n\t\tcontextWindow: 1000000,\n\t\tmaxOutputTokens: 8000,\n\t\tpricing: createPricing(0.075, 0.3),\n\t}),\n\t'google/models/gemini-1.5-pro-latest': createModel('Gemini 1.5 Pro', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treleaseDate: '2024-05-14',\n\t\tcontextWindow: 1000000,\n\t\tmaxOutputTokens: 8000,\n\t\tpricing: createPricing(0.0375, 0.15),\n\t}),\n\n\t// Gemini 1.0 series\n\t'google/models/gemini-1.0-pro-latest': createModel('Gemini 1.0 Pro', {\n\t\treleaseDate: '2023-12-13',\n\t\tcontextWindow: 32000,\n\t\tmaxOutputTokens: 8000,\n\t\tpricing: createPricing(0.0005, 0.0015),\n\t}),\n\t'google/models/gemini-pro-vision': createModel('Gemini 1.0 Pro Vision', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treleaseDate: '2023-12-13',\n\t\tcontextWindow: 16000,\n\t\tmaxOutputTokens: 4096,\n\t}),\n\n\t// Legacy PaLM\n\t'google/models/chat-bison-001': createModel('PaLM 2 Chat (Legacy)', {\n\t\treleaseDate: '2023-03-31',\n\t\tcontextWindow: 8192,\n\t\tmaxOutputTokens: 2048,\n\t\tdeprecationDate: '2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,EAAE,IAAA,mBAAW,EAAC,uBAAuB,EAAE;QAC3E,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,IAAI;QAChB,aAAa,EAAE,OAAO;QACtB,eAAe,EAAE,IAAI;QACrB,eAAe,EAAE,YAAY;QAC7B,OAAO,EAAE,IAAA,qBAAa,EAAC,QAAQ,EAAE,MAAM,CAAC;KACxC,CAAC;IAIF,+BAA+B,EAAE,IAAA,mBAAW,EAAC,cAAc,EAAE;QAC5D,aAAa,EAAE,IAAI;QACnB,eAAe,EAAE,IAAI;KACrB,CAAC;IACF,+BAA+B,EAAE,IAAA,mBAAW,EAAC,cAAc,EAAE;QAC5D,aAAa,EAAE,IAAI;QACnB,eAAe,EAAE,IAAI;KACrB,CAAC;IACF,8BAA8B,EAAE,IAAA,mBAAW,EAAC,aAAa,EAAE;QAC1D,aAAa,EAAE,IAAI;QACnB,eAAe,EAAE,IAAI;KACrB,CAAC;CACF,CAAC","sourcesContent":["import { ModelInfo } from '../types';\nimport { createModel, createPricing } from './types';\n\nexport const googleModels: Record<string, ModelInfo> = {\n\t// --- Gemini 3 series (Preview) ---\n\n\t'google/models/gemini-3-pro-preview': createModel('Gemini 3 Pro Preview', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treasoning: true,\n\t\tcontextWindow: 1048576,\n\t\tmaxOutputTokens: 65536,\n\t\tpricing: createPricing(0.002, 0.012),\n\t}),\n\t'google/models/gemini-3-pro-image-preview': createModel('Gemini 3 Pro Image Preview', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\timageGen: true,\n\t\tresponseModalities: ['Text', 'Image'],\n\t\tcontextWindow: 65536,\n\t\tmaxOutputTokens: 32768,\n\t\tpricing: createPricing(0.002, 0.012),\n\t}),\n\t'google/models/gemini-3-flash-preview': createModel('Gemini 3 Flash Preview', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\tcontextWindow: 1048576,\n\t\tmaxOutputTokens: 65536,\n\t\tpricing: createPricing(0.0005, 0.003),\n\t}),\n\n\t// --- Gemini 2.5 series ---\n\n\t'google/models/gemini-2.5-pro': createModel('Gemini 2.5 Pro', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treasoning: true,\n\t\tcontextWindow: 1048576,\n\t\tmaxOutputTokens: 65536,\n\t\tpricing: createPricing(0.00125, 0.01),\n\t}),\n\t'google/models/gemini-2.5-flash': createModel('Gemini 2.5 Flash', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treasoning: true,\n\t\tcontextWindow: 1048576,\n\t\tmaxOutputTokens: 65536,\n\t\tpricing: createPricing(0.0003, 0.0025),\n\t}),\n\t'google/models/gemini-2.5-flash-preview-09-2025': createModel('Gemini 2.5 Flash Preview 09-2025', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treasoning: true,\n\t\tcontextWindow: 1048576,\n\t\tmaxOutputTokens: 65536,\n\t}),\n\t'google/models/gemini-2.5-flash-image': createModel('Gemini 2.5 Flash Image', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\timageGen: true,\n\t\tresponseModalities: ['Text', 'Image'],\n\t\tcontextWindow: 65536,\n\t\tmaxOutputTokens: 32768,\n\t}),\n\t'google/models/gemini-2.5-flash-lite': createModel('Gemini 2.5 Flash-Lite', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\tcontextWindow: 1048576,\n\t\tmaxOutputTokens: 65536,\n\t\tpricing: createPricing(0.0001, 0.0004),\n\t}),\n\t'google/models/gemini-2.5-flash-lite-preview-09-2025': createModel(\n\t\t'Gemini 2.5 Flash-Lite Preview 09-2025',\n\t\t{\n\t\t\tvision: true,\n\t\t\timageInput: true,\n\t\t\tcontextWindow: 1048576,\n\t\t\tmaxOutputTokens: 65536,\n\t\t}\n\t),\n\n\t// --- Gemini 2.0 series (deprecated, shutdown March 2026) ---\n\n\t'google/models/gemini-2.0-flash': createModel('Gemini 2.0 Flash', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\tcontextWindow: 1048576,\n\t\tmaxOutputTokens: 8192,\n\t\tdeprecationDate: '2026-03-31',\n\t\tpricing: createPricing(0.0001, 0.0004),\n\t}),\n\t'google/models/gemini-2.0-flash-lite': createModel('Gemini 2.0 Flash-Lite', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\tcontextWindow: 1048576,\n\t\tmaxOutputTokens: 8192,\n\t\tdeprecationDate: '2026-03-31',\n\t\tpricing: createPricing(0.000075, 0.0003),\n\t}),\n\n\t// --- Gemma 3 series (open models) ---\n\n\t'google/models/gemma-3n-e4b-it': createModel('Gemma 3n E4B', {\n\t\tcontextWindow: 8192,\n\t\tmaxOutputTokens: 8192,\n\t}),\n\t'google/models/gemma-3n-e2b-it': createModel('Gemma 3n E2B', {\n\t\tcontextWindow: 8192,\n\t\tmaxOutputTokens: 8192,\n\t}),\n\t'google/models/gemma-3-27b-it': createModel('Gemma 3 27B', {\n\t\tcontextWindow: 8192,\n\t\tmaxOutputTokens: 8192,\n\t}),\n};\n"]}
|
package/build/models/xai.js
CHANGED
|
@@ -3,34 +3,50 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.xaiModels = void 0;
|
|
4
4
|
const types_1 = require("./types");
|
|
5
5
|
exports.xaiModels = {
|
|
6
|
-
'xai/grok-
|
|
6
|
+
'xai/grok-4': (0, types_1.createModel)('Grok 4', {
|
|
7
7
|
vision: true,
|
|
8
8
|
imageInput: true,
|
|
9
|
-
releaseDate: '2025-01
|
|
10
|
-
contextWindow:
|
|
11
|
-
maxOutputTokens:
|
|
12
|
-
|
|
9
|
+
releaseDate: '2025-07-01',
|
|
10
|
+
contextWindow: 131072,
|
|
11
|
+
maxOutputTokens: 16384,
|
|
12
|
+
reasoning: true,
|
|
13
|
+
pricing: (0, types_1.createPricing)(0.006, 0.018),
|
|
13
14
|
}),
|
|
14
|
-
'xai/grok-
|
|
15
|
+
'xai/grok-3': (0, types_1.createModel)('Grok 3', {
|
|
15
16
|
vision: true,
|
|
16
17
|
imageInput: true,
|
|
17
|
-
releaseDate: '
|
|
18
|
-
contextWindow:
|
|
18
|
+
releaseDate: '2025-02-01',
|
|
19
|
+
contextWindow: 131072,
|
|
19
20
|
maxOutputTokens: 8192,
|
|
20
|
-
pricing: (0, types_1.createPricing)(0.
|
|
21
|
+
pricing: (0, types_1.createPricing)(0.003, 0.015),
|
|
21
22
|
}),
|
|
22
|
-
'xai/grok-
|
|
23
|
+
'xai/grok-3-fast': (0, types_1.createModel)('Grok 3 Fast', {
|
|
23
24
|
vision: true,
|
|
24
25
|
imageInput: true,
|
|
25
|
-
releaseDate: '
|
|
26
|
-
contextWindow:
|
|
26
|
+
releaseDate: '2025-02-01',
|
|
27
|
+
contextWindow: 131072,
|
|
28
|
+
maxOutputTokens: 8192,
|
|
29
|
+
pricing: (0, types_1.createPricing)(0.005, 0.025),
|
|
30
|
+
}),
|
|
31
|
+
'xai/grok-3-mini': (0, types_1.createModel)('Grok 3 Mini', {
|
|
32
|
+
reasoning: true,
|
|
33
|
+
releaseDate: '2025-02-01',
|
|
34
|
+
contextWindow: 131072,
|
|
35
|
+
maxOutputTokens: 8192,
|
|
36
|
+
pricing: (0, types_1.createPricing)(0.0003, 0.0005),
|
|
37
|
+
}),
|
|
38
|
+
'xai/grok-3-mini-fast': (0, types_1.createModel)('Grok 3 Mini Fast', {
|
|
39
|
+
reasoning: true,
|
|
40
|
+
releaseDate: '2025-02-01',
|
|
41
|
+
contextWindow: 131072,
|
|
27
42
|
maxOutputTokens: 8192,
|
|
43
|
+
pricing: (0, types_1.createPricing)(0.0006, 0.004),
|
|
28
44
|
}),
|
|
29
45
|
'xai/grok-2-1212': (0, types_1.createModel)('Grok 2 (12-12)', {
|
|
30
46
|
vision: true,
|
|
31
47
|
imageInput: true,
|
|
32
48
|
releaseDate: '2024-12-12',
|
|
33
|
-
contextWindow:
|
|
49
|
+
contextWindow: 131072,
|
|
34
50
|
maxOutputTokens: 8192,
|
|
35
51
|
pricing: (0, types_1.createPricing)(0.002, 0.01),
|
|
36
52
|
}),
|
package/build/models/xai.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xai.js","sourceRoot":"","sources":["../../src/models/xai.ts"],"names":[],"mappings":";;;AACA,mCAAqD;AAExC,QAAA,SAAS,GAA8B;IAEnD,YAAY,EAAE,IAAA,mBAAW,EAAC,QAAQ,EAAE;QACnC,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,IAAI;QAChB,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,MAAM;QACrB,eAAe,EAAE,IAAI;
|
|
1
|
+
{"version":3,"file":"xai.js","sourceRoot":"","sources":["../../src/models/xai.ts"],"names":[],"mappings":";;;AACA,mCAAqD;AAExC,QAAA,SAAS,GAA8B;IAEnD,YAAY,EAAE,IAAA,mBAAW,EAAC,QAAQ,EAAE;QACnC,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,IAAI;QAChB,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,MAAM;QACrB,eAAe,EAAE,KAAK;QACtB,SAAS,EAAE,IAAI;QACf,OAAO,EAAE,IAAA,qBAAa,EAAC,KAAK,EAAE,KAAK,CAAC;KACpC,CAAC;IAGF,YAAY,EAAE,IAAA,mBAAW,EAAC,QAAQ,EAAE;QACnC,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,IAAI;QAChB,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,MAAM;QACrB,eAAe,EAAE,IAAI;QACrB,OAAO,EAAE,IAAA,qBAAa,EAAC,KAAK,EAAE,KAAK,CAAC;KACpC,CAAC;IAGF,iBAAiB,EAAE,IAAA,mBAAW,EAAC,aAAa,EAAE;QAC7C,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,IAAI;QAChB,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,MAAM;QACrB,eAAe,EAAE,IAAI;QACrB,OAAO,EAAE,IAAA,qBAAa,EAAC,KAAK,EAAE,KAAK,CAAC;KACpC,CAAC;IAGF,iBAAiB,EAAE,IAAA,mBAAW,EAAC,aAAa,EAAE;QAC7C,SAAS,EAAE,IAAI;QACf,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,MAAM;QACrB,eAAe,EAAE,IAAI;QACrB,OAAO,EAAE,IAAA,qBAAa,EAAC,MAAM,EAAE,MAAM,CAAC;KACtC,CAAC;IAGF,sBAAsB,EAAE,IAAA,mBAAW,EAAC,kBAAkB,EAAE;QACvD,SAAS,EAAE,IAAI;QACf,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,MAAM;QACrB,eAAe,EAAE,IAAI;QACrB,OAAO,EAAE,IAAA,qBAAa,EAAC,MAAM,EAAE,KAAK,CAAC;KACrC,CAAC;IAGF,iBAAiB,EAAE,IAAA,mBAAW,EAAC,gBAAgB,EAAE;QAChD,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,IAAI;QAChB,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,MAAM;QACrB,eAAe,EAAE,IAAI;QACrB,OAAO,EAAE,IAAA,qBAAa,EAAC,KAAK,EAAE,IAAI,CAAC;KACnC,CAAC;CACF,CAAC","sourcesContent":["import { ModelInfo } from '../types';\nimport { createModel, createPricing } from './types';\n\nexport const xaiModels: Record<string, ModelInfo> = {\n\t// Grok 4\n\t'xai/grok-4': createModel('Grok 4', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treleaseDate: '2025-07-01',\n\t\tcontextWindow: 131072,\n\t\tmaxOutputTokens: 16384,\n\t\treasoning: true,\n\t\tpricing: createPricing(0.006, 0.018),\n\t}),\n\n\t// Grok 3\n\t'xai/grok-3': createModel('Grok 3', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treleaseDate: '2025-02-01',\n\t\tcontextWindow: 131072,\n\t\tmaxOutputTokens: 8192,\n\t\tpricing: createPricing(0.003, 0.015),\n\t}),\n\n\t// Grok 3 Fast\n\t'xai/grok-3-fast': createModel('Grok 3 Fast', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treleaseDate: '2025-02-01',\n\t\tcontextWindow: 131072,\n\t\tmaxOutputTokens: 8192,\n\t\tpricing: createPricing(0.005, 0.025),\n\t}),\n\n\t// Grok 3 Mini\n\t'xai/grok-3-mini': createModel('Grok 3 Mini', {\n\t\treasoning: true,\n\t\treleaseDate: '2025-02-01',\n\t\tcontextWindow: 131072,\n\t\tmaxOutputTokens: 8192,\n\t\tpricing: createPricing(0.0003, 0.0005),\n\t}),\n\n\t// Grok 3 Mini Fast\n\t'xai/grok-3-mini-fast': createModel('Grok 3 Mini Fast', {\n\t\treasoning: true,\n\t\treleaseDate: '2025-02-01',\n\t\tcontextWindow: 131072,\n\t\tmaxOutputTokens: 8192,\n\t\tpricing: createPricing(0.0006, 0.004),\n\t}),\n\n\t// Legacy\n\t'xai/grok-2-1212': createModel('Grok 2 (12-12)', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treleaseDate: '2024-12-12',\n\t\tcontextWindow: 131072,\n\t\tmaxOutputTokens: 8192,\n\t\tpricing: createPricing(0.002, 0.01),\n\t}),\n};\n"]}
|
package/package.json
CHANGED
package/src/models/deepseek.ts
CHANGED
|
@@ -2,38 +2,20 @@ import { ModelInfo } from '../types';
|
|
|
2
2
|
import { createModel, createPricing } from './types';
|
|
3
3
|
|
|
4
4
|
export const deepseekModels: Record<string, ModelInfo> = {
|
|
5
|
-
// DeepSeek V3
|
|
5
|
+
// DeepSeek V3.2 (Chat / Non-thinking mode)
|
|
6
6
|
'deepseek/deepseek-chat': createModel('DeepSeek Chat', {
|
|
7
7
|
releaseDate: '2025-01-20',
|
|
8
|
-
contextWindow:
|
|
8
|
+
contextWindow: 128000,
|
|
9
9
|
maxOutputTokens: 8192,
|
|
10
|
-
pricing: createPricing(0.
|
|
11
|
-
}),
|
|
12
|
-
'deepseek/deepseek-v3': createModel('DeepSeek V3', {
|
|
13
|
-
releaseDate: '2024-12-26',
|
|
14
|
-
contextWindow: 64000,
|
|
15
|
-
maxOutputTokens: 8192,
|
|
16
|
-
pricing: createPricing(0.00028, 0.00042),
|
|
17
|
-
}),
|
|
18
|
-
'deepseek/deepseek-v3-1': createModel('DeepSeek V3.1', {
|
|
19
|
-
releaseDate: '2025-01-10',
|
|
20
|
-
contextWindow: 64000,
|
|
21
|
-
maxOutputTokens: 8192,
|
|
22
|
-
pricing: createPricing(0.00028, 0.00042),
|
|
23
|
-
}),
|
|
24
|
-
'deepseek/deepseek-v3-2': createModel('DeepSeek V3.2', {
|
|
25
|
-
releaseDate: '2025-01-20',
|
|
26
|
-
contextWindow: 64000,
|
|
27
|
-
maxOutputTokens: 8192,
|
|
28
|
-
pricing: createPricing(0.00028, 0.00042),
|
|
10
|
+
pricing: createPricing(0.00027, 0.0011),
|
|
29
11
|
}),
|
|
30
12
|
|
|
31
|
-
// DeepSeek
|
|
32
|
-
'deepseek/deepseek-reasoner': createModel('DeepSeek
|
|
13
|
+
// DeepSeek V3.2 (Reasoner / Thinking mode)
|
|
14
|
+
'deepseek/deepseek-reasoner': createModel('DeepSeek Reasoner', {
|
|
33
15
|
reasoning: true,
|
|
34
16
|
releaseDate: '2025-01-20',
|
|
35
|
-
contextWindow:
|
|
17
|
+
contextWindow: 128000,
|
|
36
18
|
maxOutputTokens: 8192,
|
|
37
|
-
pricing: createPricing(0.
|
|
19
|
+
pricing: createPricing(0.00055, 0.0022),
|
|
38
20
|
}),
|
|
39
21
|
};
|
package/src/models/google.ts
CHANGED
|
@@ -2,228 +2,114 @@ import { ModelInfo } from '../types';
|
|
|
2
2
|
import { createModel, createPricing } from './types';
|
|
3
3
|
|
|
4
4
|
export const googleModels: Record<string, ModelInfo> = {
|
|
5
|
-
// Gemini 3 series (
|
|
6
|
-
|
|
7
|
-
vision: true,
|
|
8
|
-
imageInput: true,
|
|
9
|
-
releaseDate: '2025-12-19',
|
|
10
|
-
contextWindow: 1000000,
|
|
11
|
-
maxOutputTokens: 16000,
|
|
12
|
-
pricing: createPricing(0.075, 0.3),
|
|
13
|
-
}),
|
|
5
|
+
// --- Gemini 3 series (Preview) ---
|
|
6
|
+
|
|
14
7
|
'google/models/gemini-3-pro-preview': createModel('Gemini 3 Pro Preview', {
|
|
15
8
|
vision: true,
|
|
16
9
|
imageInput: true,
|
|
17
10
|
reasoning: true,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
pricing: createPricing(0.0375, 0.15),
|
|
11
|
+
contextWindow: 1048576,
|
|
12
|
+
maxOutputTokens: 65536,
|
|
13
|
+
pricing: createPricing(0.002, 0.012),
|
|
22
14
|
}),
|
|
23
15
|
'google/models/gemini-3-pro-image-preview': createModel('Gemini 3 Pro Image Preview', {
|
|
24
16
|
vision: true,
|
|
25
17
|
imageInput: true,
|
|
26
18
|
imageGen: true,
|
|
27
19
|
responseModalities: ['Text', 'Image'],
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
20
|
+
contextWindow: 65536,
|
|
21
|
+
maxOutputTokens: 32768,
|
|
22
|
+
pricing: createPricing(0.002, 0.012),
|
|
31
23
|
}),
|
|
32
|
-
|
|
33
|
-
// Gemini 2.5 series
|
|
34
|
-
'google/models/gemini-2.5-flash': createModel('Gemini 2.5 Flash', {
|
|
35
|
-
vision: true,
|
|
36
|
-
imageInput: true,
|
|
37
|
-
reasoning: true,
|
|
38
|
-
releaseDate: '2024-12-19',
|
|
39
|
-
contextWindow: 1000000,
|
|
40
|
-
maxOutputTokens: 8000,
|
|
41
|
-
pricing: createPricing(0.075, 0.3),
|
|
42
|
-
}),
|
|
43
|
-
'google/models/gemini-2.5-flash-lite-preview-06-17': createModel('Gemini 2.5 Flash-Lite Preview 06-17', {
|
|
24
|
+
'google/models/gemini-3-flash-preview': createModel('Gemini 3 Flash Preview', {
|
|
44
25
|
vision: true,
|
|
45
26
|
imageInput: true,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
maxOutputTokens: 8000,
|
|
27
|
+
contextWindow: 1048576,
|
|
28
|
+
maxOutputTokens: 65536,
|
|
29
|
+
pricing: createPricing(0.0005, 0.003),
|
|
50
30
|
}),
|
|
31
|
+
|
|
32
|
+
// --- Gemini 2.5 series ---
|
|
33
|
+
|
|
51
34
|
'google/models/gemini-2.5-pro': createModel('Gemini 2.5 Pro', {
|
|
52
35
|
vision: true,
|
|
53
36
|
imageInput: true,
|
|
54
37
|
reasoning: true,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
pricing: createPricing(0.0375, 0.15),
|
|
38
|
+
contextWindow: 1048576,
|
|
39
|
+
maxOutputTokens: 65536,
|
|
40
|
+
pricing: createPricing(0.00125, 0.01),
|
|
59
41
|
}),
|
|
60
|
-
'google/models/gemini-2.5-
|
|
42
|
+
'google/models/gemini-2.5-flash': createModel('Gemini 2.5 Flash', {
|
|
61
43
|
vision: true,
|
|
62
44
|
imageInput: true,
|
|
63
45
|
reasoning: true,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
46
|
+
contextWindow: 1048576,
|
|
47
|
+
maxOutputTokens: 65536,
|
|
48
|
+
pricing: createPricing(0.0003, 0.0025),
|
|
67
49
|
}),
|
|
68
|
-
|
|
69
|
-
// Gemini 2.0 series
|
|
70
|
-
'google/models/gemini-2.0-flash': createModel('Gemini 2.0 Flash', {
|
|
50
|
+
'google/models/gemini-2.5-flash-preview-09-2025': createModel('Gemini 2.5 Flash Preview 09-2025', {
|
|
71
51
|
vision: true,
|
|
72
52
|
imageInput: true,
|
|
73
|
-
|
|
74
|
-
contextWindow:
|
|
75
|
-
maxOutputTokens:
|
|
76
|
-
pricing: createPricing(0.075, 0.3),
|
|
53
|
+
reasoning: true,
|
|
54
|
+
contextWindow: 1048576,
|
|
55
|
+
maxOutputTokens: 65536,
|
|
77
56
|
}),
|
|
78
|
-
'google/models/gemini-2.
|
|
57
|
+
'google/models/gemini-2.5-flash-image': createModel('Gemini 2.5 Flash Image', {
|
|
79
58
|
vision: true,
|
|
80
59
|
imageInput: true,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
60
|
+
imageGen: true,
|
|
61
|
+
responseModalities: ['Text', 'Image'],
|
|
62
|
+
contextWindow: 65536,
|
|
63
|
+
maxOutputTokens: 32768,
|
|
84
64
|
}),
|
|
85
|
-
'google/models/gemini-2.
|
|
86
|
-
'Gemini 2.0 Flash Preview Image Generation',
|
|
87
|
-
{
|
|
88
|
-
vision: true,
|
|
89
|
-
imageInput: true,
|
|
90
|
-
imageGen: true,
|
|
91
|
-
responseModalities: ['Text', 'Image'],
|
|
92
|
-
releaseDate: '2024-11-28',
|
|
93
|
-
contextWindow: 1000000,
|
|
94
|
-
maxOutputTokens: 8000,
|
|
95
|
-
}
|
|
96
|
-
),
|
|
97
|
-
'google/models/gemini-2.0-pro-exp-02-05': createModel('Gemini 2.0 Pro Experimental 02-05', {
|
|
65
|
+
'google/models/gemini-2.5-flash-lite': createModel('Gemini 2.5 Flash-Lite', {
|
|
98
66
|
vision: true,
|
|
99
67
|
imageInput: true,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
68
|
+
contextWindow: 1048576,
|
|
69
|
+
maxOutputTokens: 65536,
|
|
70
|
+
pricing: createPricing(0.0001, 0.0004),
|
|
103
71
|
}),
|
|
104
|
-
'google/models/gemini-2.
|
|
105
|
-
'Gemini 2.
|
|
72
|
+
'google/models/gemini-2.5-flash-lite-preview-09-2025': createModel(
|
|
73
|
+
'Gemini 2.5 Flash-Lite Preview 09-2025',
|
|
106
74
|
{
|
|
107
75
|
vision: true,
|
|
108
76
|
imageInput: true,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
contextWindow: 1000000,
|
|
112
|
-
maxOutputTokens: 8000,
|
|
77
|
+
contextWindow: 1048576,
|
|
78
|
+
maxOutputTokens: 65536,
|
|
113
79
|
}
|
|
114
80
|
),
|
|
115
|
-
|
|
81
|
+
|
|
82
|
+
// --- Gemini 2.0 series (deprecated, shutdown March 2026) ---
|
|
83
|
+
|
|
84
|
+
'google/models/gemini-2.0-flash': createModel('Gemini 2.0 Flash', {
|
|
116
85
|
vision: true,
|
|
117
86
|
imageInput: true,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
maxOutputTokens: 8000,
|
|
87
|
+
contextWindow: 1048576,
|
|
88
|
+
maxOutputTokens: 8192,
|
|
89
|
+
deprecationDate: '2026-03-31',
|
|
90
|
+
pricing: createPricing(0.0001, 0.0004),
|
|
123
91
|
}),
|
|
124
|
-
'google/models/gemini-2.0-flash-
|
|
92
|
+
'google/models/gemini-2.0-flash-lite': createModel('Gemini 2.0 Flash-Lite', {
|
|
125
93
|
vision: true,
|
|
126
94
|
imageInput: true,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
95
|
+
contextWindow: 1048576,
|
|
96
|
+
maxOutputTokens: 8192,
|
|
97
|
+
deprecationDate: '2026-03-31',
|
|
98
|
+
pricing: createPricing(0.000075, 0.0003),
|
|
131
99
|
}),
|
|
132
100
|
|
|
133
|
-
// Gemma 3 series
|
|
101
|
+
// --- Gemma 3 series (open models) ---
|
|
102
|
+
|
|
134
103
|
'google/models/gemma-3n-e4b-it': createModel('Gemma 3n E4B', {
|
|
135
|
-
releaseDate: '2025-01-01',
|
|
136
104
|
contextWindow: 8192,
|
|
137
105
|
maxOutputTokens: 8192,
|
|
138
106
|
}),
|
|
139
107
|
'google/models/gemma-3n-e2b-it': createModel('Gemma 3n E2B', {
|
|
140
|
-
releaseDate: '2025-01-01',
|
|
141
108
|
contextWindow: 8192,
|
|
142
109
|
maxOutputTokens: 8192,
|
|
143
110
|
}),
|
|
144
111
|
'google/models/gemma-3-27b-it': createModel('Gemma 3 27B', {
|
|
145
|
-
releaseDate: '2025-01-01',
|
|
146
112
|
contextWindow: 8192,
|
|
147
113
|
maxOutputTokens: 8192,
|
|
148
114
|
}),
|
|
149
|
-
|
|
150
|
-
// LearnLM
|
|
151
|
-
'google/models/learnlm-1.5-pro-experimental': createModel('LearnLM 1.5 Pro Experimental', {
|
|
152
|
-
releaseDate: '2024-08-07',
|
|
153
|
-
contextWindow: 100000,
|
|
154
|
-
maxOutputTokens: 8000,
|
|
155
|
-
}),
|
|
156
|
-
|
|
157
|
-
// Gemini experimental
|
|
158
|
-
'google/models/gemini-exp-1206': createModel('Gemini (exp-1206)', {
|
|
159
|
-
vision: true,
|
|
160
|
-
imageInput: true,
|
|
161
|
-
releaseDate: '2024-12-06',
|
|
162
|
-
contextWindow: 1000000,
|
|
163
|
-
maxOutputTokens: 8000,
|
|
164
|
-
}),
|
|
165
|
-
|
|
166
|
-
// Gemini 1.5 series
|
|
167
|
-
'google/models/gemini-1.5-flash-8b': createModel('Gemini 1.5 Flash-8B', {
|
|
168
|
-
vision: true,
|
|
169
|
-
imageInput: true,
|
|
170
|
-
releaseDate: '2024-07-23',
|
|
171
|
-
contextWindow: 1000000,
|
|
172
|
-
maxOutputTokens: 8000,
|
|
173
|
-
pricing: createPricing(0.075, 0.3),
|
|
174
|
-
}),
|
|
175
|
-
'google/models/gemini-1.5-pro-002': createModel('Gemini 1.5 Pro 2', {
|
|
176
|
-
vision: true,
|
|
177
|
-
imageInput: true,
|
|
178
|
-
releaseDate: '2024-12-03',
|
|
179
|
-
contextWindow: 1000000,
|
|
180
|
-
maxOutputTokens: 8000,
|
|
181
|
-
pricing: createPricing(0.0375, 0.15),
|
|
182
|
-
}),
|
|
183
|
-
'google/models/gemini-1.5-flash-002': createModel('Gemini 1.5 Flash 2', {
|
|
184
|
-
vision: true,
|
|
185
|
-
imageInput: true,
|
|
186
|
-
releaseDate: '2024-12-03',
|
|
187
|
-
contextWindow: 1000000,
|
|
188
|
-
maxOutputTokens: 8000,
|
|
189
|
-
}),
|
|
190
|
-
'google/models/gemini-1.5-flash-latest': createModel('Gemini 1.5 Flash', {
|
|
191
|
-
vision: true,
|
|
192
|
-
imageInput: true,
|
|
193
|
-
releaseDate: '2024-05-14',
|
|
194
|
-
contextWindow: 1000000,
|
|
195
|
-
maxOutputTokens: 8000,
|
|
196
|
-
pricing: createPricing(0.075, 0.3),
|
|
197
|
-
}),
|
|
198
|
-
'google/models/gemini-1.5-pro-latest': createModel('Gemini 1.5 Pro', {
|
|
199
|
-
vision: true,
|
|
200
|
-
imageInput: true,
|
|
201
|
-
releaseDate: '2024-05-14',
|
|
202
|
-
contextWindow: 1000000,
|
|
203
|
-
maxOutputTokens: 8000,
|
|
204
|
-
pricing: createPricing(0.0375, 0.15),
|
|
205
|
-
}),
|
|
206
|
-
|
|
207
|
-
// Gemini 1.0 series
|
|
208
|
-
'google/models/gemini-1.0-pro-latest': createModel('Gemini 1.0 Pro', {
|
|
209
|
-
releaseDate: '2023-12-13',
|
|
210
|
-
contextWindow: 32000,
|
|
211
|
-
maxOutputTokens: 8000,
|
|
212
|
-
pricing: createPricing(0.0005, 0.0015),
|
|
213
|
-
}),
|
|
214
|
-
'google/models/gemini-pro-vision': createModel('Gemini 1.0 Pro Vision', {
|
|
215
|
-
vision: true,
|
|
216
|
-
imageInput: true,
|
|
217
|
-
releaseDate: '2023-12-13',
|
|
218
|
-
contextWindow: 16000,
|
|
219
|
-
maxOutputTokens: 4096,
|
|
220
|
-
}),
|
|
221
|
-
|
|
222
|
-
// Legacy PaLM
|
|
223
|
-
'google/models/chat-bison-001': createModel('PaLM 2 Chat (Legacy)', {
|
|
224
|
-
releaseDate: '2023-03-31',
|
|
225
|
-
contextWindow: 8192,
|
|
226
|
-
maxOutputTokens: 2048,
|
|
227
|
-
deprecationDate: '2024-07-01',
|
|
228
|
-
}),
|
|
229
115
|
};
|
package/src/models/xai.ts
CHANGED
|
@@ -2,41 +2,61 @@ import { ModelInfo } from '../types';
|
|
|
2
2
|
import { createModel, createPricing } from './types';
|
|
3
3
|
|
|
4
4
|
export const xaiModels: Record<string, ModelInfo> = {
|
|
5
|
-
// Grok
|
|
6
|
-
'xai/grok-
|
|
5
|
+
// Grok 4
|
|
6
|
+
'xai/grok-4': createModel('Grok 4', {
|
|
7
7
|
vision: true,
|
|
8
8
|
imageInput: true,
|
|
9
|
-
releaseDate: '2025-01
|
|
10
|
-
contextWindow:
|
|
11
|
-
maxOutputTokens:
|
|
12
|
-
|
|
9
|
+
releaseDate: '2025-07-01',
|
|
10
|
+
contextWindow: 131072,
|
|
11
|
+
maxOutputTokens: 16384,
|
|
12
|
+
reasoning: true,
|
|
13
|
+
pricing: createPricing(0.006, 0.018),
|
|
13
14
|
}),
|
|
14
15
|
|
|
15
|
-
// Grok
|
|
16
|
-
'xai/grok-
|
|
16
|
+
// Grok 3
|
|
17
|
+
'xai/grok-3': createModel('Grok 3', {
|
|
17
18
|
vision: true,
|
|
18
19
|
imageInput: true,
|
|
19
|
-
releaseDate: '
|
|
20
|
-
contextWindow:
|
|
20
|
+
releaseDate: '2025-02-01',
|
|
21
|
+
contextWindow: 131072,
|
|
21
22
|
maxOutputTokens: 8192,
|
|
22
|
-
pricing: createPricing(0.
|
|
23
|
+
pricing: createPricing(0.003, 0.015),
|
|
23
24
|
}),
|
|
24
25
|
|
|
25
|
-
// Grok
|
|
26
|
-
'xai/grok-
|
|
26
|
+
// Grok 3 Fast
|
|
27
|
+
'xai/grok-3-fast': createModel('Grok 3 Fast', {
|
|
27
28
|
vision: true,
|
|
28
29
|
imageInput: true,
|
|
29
|
-
releaseDate: '
|
|
30
|
-
contextWindow:
|
|
30
|
+
releaseDate: '2025-02-01',
|
|
31
|
+
contextWindow: 131072,
|
|
32
|
+
maxOutputTokens: 8192,
|
|
33
|
+
pricing: createPricing(0.005, 0.025),
|
|
34
|
+
}),
|
|
35
|
+
|
|
36
|
+
// Grok 3 Mini
|
|
37
|
+
'xai/grok-3-mini': createModel('Grok 3 Mini', {
|
|
38
|
+
reasoning: true,
|
|
39
|
+
releaseDate: '2025-02-01',
|
|
40
|
+
contextWindow: 131072,
|
|
41
|
+
maxOutputTokens: 8192,
|
|
42
|
+
pricing: createPricing(0.0003, 0.0005),
|
|
43
|
+
}),
|
|
44
|
+
|
|
45
|
+
// Grok 3 Mini Fast
|
|
46
|
+
'xai/grok-3-mini-fast': createModel('Grok 3 Mini Fast', {
|
|
47
|
+
reasoning: true,
|
|
48
|
+
releaseDate: '2025-02-01',
|
|
49
|
+
contextWindow: 131072,
|
|
31
50
|
maxOutputTokens: 8192,
|
|
51
|
+
pricing: createPricing(0.0006, 0.004),
|
|
32
52
|
}),
|
|
33
53
|
|
|
34
|
-
// Legacy
|
|
54
|
+
// Legacy
|
|
35
55
|
'xai/grok-2-1212': createModel('Grok 2 (12-12)', {
|
|
36
56
|
vision: true,
|
|
37
57
|
imageInput: true,
|
|
38
58
|
releaseDate: '2024-12-12',
|
|
39
|
-
contextWindow:
|
|
59
|
+
contextWindow: 131072,
|
|
40
60
|
maxOutputTokens: 8192,
|
|
41
61
|
pricing: createPricing(0.002, 0.01),
|
|
42
62
|
}),
|