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.
@@ -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: 64000,
8
+ contextWindow: 128000,
9
9
  maxOutputTokens: 8192,
10
- pricing: (0, types_1.createPricing)(0.00028, 0.00042),
10
+ pricing: (0, types_1.createPricing)(0.00027, 0.0011),
11
11
  }),
12
- 'deepseek/deepseek-v3': (0, types_1.createModel)('DeepSeek V3', {
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: 64000,
15
+ contextWindow: 128000,
34
16
  maxOutputTokens: 8192,
35
- pricing: (0, types_1.createPricing)(0.00028, 0.0014),
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,KAAK;QACpB,eAAe,EAAE,IAAI;QACrB,OAAO,EAAE,IAAA,qBAAa,EAAC,OAAO,EAAE,OAAO,CAAC;KAC3C,CAAC;IACF,sBAAsB,EAAE,IAAA,mBAAW,EAAC,aAAa,EAAE;QAC/C,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,KAAK;QACpB,eAAe,EAAE,IAAI;QACrB,OAAO,EAAE,IAAA,qBAAa,EAAC,OAAO,EAAE,OAAO,CAAC;KAC3C,CAAC;IACF,wBAAwB,EAAE,IAAA,mBAAW,EAAC,eAAe,EAAE;QACnD,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,KAAK;QACpB,eAAe,EAAE,IAAI;QACrB,OAAO,EAAE,IAAA,qBAAa,EAAC,OAAO,EAAE,OAAO,CAAC;KAC3C,CAAC;IACF,wBAAwB,EAAE,IAAA,mBAAW,EAAC,eAAe,EAAE;QACnD,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,KAAK;QACpB,eAAe,EAAE,IAAI;QACrB,OAAO,EAAE,IAAA,qBAAa,EAAC,OAAO,EAAE,OAAO,CAAC;KAC3C,CAAC;IAGF,4BAA4B,EAAE,IAAA,mBAAW,EAAC,aAAa,EAAE;QACrD,SAAS,EAAE,IAAI;QACf,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,KAAK;QACpB,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/V3.x series (latest 2026)\n 'deepseek/deepseek-chat': createModel('DeepSeek Chat', {\n releaseDate: '2025-01-20',\n contextWindow: 64000,\n maxOutputTokens: 8192,\n pricing: createPricing(0.00028, 0.00042),\n }),\n 'deepseek/deepseek-v3': createModel('DeepSeek V3', {\n releaseDate: '2024-12-26',\n contextWindow: 64000,\n maxOutputTokens: 8192,\n pricing: createPricing(0.00028, 0.00042),\n }),\n 'deepseek/deepseek-v3-1': createModel('DeepSeek V3.1', {\n releaseDate: '2025-01-10',\n contextWindow: 64000,\n maxOutputTokens: 8192,\n pricing: createPricing(0.00028, 0.00042),\n }),\n 'deepseek/deepseek-v3-2': createModel('DeepSeek V3.2', {\n releaseDate: '2025-01-20',\n contextWindow: 64000,\n maxOutputTokens: 8192,\n pricing: createPricing(0.00028, 0.00042),\n }),\n\n // DeepSeek R1 (Reasoning)\n 'deepseek/deepseek-reasoner': createModel('DeepSeek R1', {\n reasoning: true,\n releaseDate: '2025-01-20',\n contextWindow: 64000,\n maxOutputTokens: 8192,\n pricing: createPricing(0.00028, 0.0014),\n }),\n};\n"]}
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"]}
@@ -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
- releaseDate: '2025-12-19',
19
- contextWindow: 1000000,
20
- maxOutputTokens: 16000,
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
- releaseDate: '2025-12-19',
29
- contextWindow: 1000000,
30
- maxOutputTokens: 16000,
19
+ contextWindow: 65536,
20
+ maxOutputTokens: 32768,
21
+ pricing: (0, types_1.createPricing)(0.002, 0.012),
31
22
  }),
32
- 'google/models/gemini-2.5-flash': (0, types_1.createModel)('Gemini 2.5 Flash', {
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
- reasoning: true,
45
- releaseDate: '2024-06-17',
46
- contextWindow: 1000000,
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
- releaseDate: '2024-12-19',
54
- contextWindow: 1000000,
55
- maxOutputTokens: 8000,
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-pro-exp-03-25': (0, types_1.createModel)('Gemini 2.5 Pro Experimental 03-25', {
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
- releaseDate: '2024-03-25',
63
- contextWindow: 1000000,
64
- maxOutputTokens: 8000,
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.0-flash-lite': (0, types_1.createModel)('Gemini 2.0 Flash-Lite', {
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
- releaseDate: '2024-12-11',
78
- contextWindow: 1000000,
79
- maxOutputTokens: 8000,
49
+ reasoning: true,
50
+ contextWindow: 1048576,
51
+ maxOutputTokens: 65536,
80
52
  }),
81
- 'google/models/gemini-2.0-flash-preview-image-generation': (0, types_1.createModel)('Gemini 2.0 Flash Preview Image Generation', {
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
- releaseDate: '2024-11-28',
87
- contextWindow: 1000000,
88
- maxOutputTokens: 8000,
58
+ contextWindow: 65536,
59
+ maxOutputTokens: 32768,
89
60
  }),
90
- 'google/models/gemini-2.0-pro-exp-02-05': (0, types_1.createModel)('Gemini 2.0 Pro Experimental 02-05', {
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
- releaseDate: '2024-02-05',
94
- contextWindow: 1000000,
95
- maxOutputTokens: 8000,
64
+ contextWindow: 1048576,
65
+ maxOutputTokens: 65536,
66
+ pricing: (0, types_1.createPricing)(0.0001, 0.0004),
96
67
  }),
97
- 'google/models/gemini-2.0-flash-thinking-exp-01-21': (0, types_1.createModel)('Gemini 2.0 Flash Thinking Experimental 01-21', {
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
- reasoning: true,
101
- releaseDate: '2024-01-21',
102
- contextWindow: 1000000,
103
- maxOutputTokens: 8000,
71
+ contextWindow: 1048576,
72
+ maxOutputTokens: 65536,
104
73
  }),
105
- 'google/models/gemini-2.0-flash-exp': (0, types_1.createModel)('Gemini 2.0 Flash Experimental', {
74
+ 'google/models/gemini-2.0-flash': (0, types_1.createModel)('Gemini 2.0 Flash', {
106
75
  vision: true,
107
76
  imageInput: true,
108
- imageGen: true,
109
- responseModalities: ['Text', 'Image'],
110
- releaseDate: '2024-12-11',
111
- contextWindow: 1000000,
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-thinking-exp-1219': (0, types_1.createModel)('Gemini 2.0 Flash Thinking Mode', {
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
- reasoning: true,
118
- releaseDate: '2024-12-19',
119
- contextWindow: 1000000,
120
- maxOutputTokens: 8000,
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,QAA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Ae,EAAE,IAAI;KACrB,CAAC;IAGF,8BAA8B,EAAE,IAAA,mBAAW,EAAC,sBAAsB,EAAE;QACnE,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,IAAI;QACnB,eAAe,EAAE,IAAI;QACrB,eAAe,EAAE,YAAY;KAC7B,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 (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: '2024-07-01',\n\t}),\n};\n"]}
1
+ {"version":3,"file":"google.js","sourceRoot":"","sources":["../../src/models/google.ts"],"names":[],"mappings":";;;AACA,mCAAqD;AAExC,QAAA,YAAY,GAA8B;IAGtD,oCAAoC,EAAE,IAAA,mBAAW,EAAC,sBAAsB,EAAE;QACzE,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,IAAI;QACf,aAAa,EAAE,OAAO;QACtB,eAAe,EAAE,KAAK;QACtB,OAAO,EAAE,IAAA,qBAAa,EAAC,KAAK,EAAE,KAAK,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,aAAa,EAAE,KAAK;QACpB,eAAe,EAAE,KAAK;QACtB,OAAO,EAAE,IAAA,qBAAa,EAAC,KAAK,EAAE,KAAK,CAAC;KACpC,CAAC;IACF,sCAAsC,EAAE,IAAA,mBAAW,EAAC,wBAAwB,EAAE;QAC7E,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,IAAI;QAChB,aAAa,EAAE,OAAO;QACtB,eAAe,EAAE,KAAK;QACtB,OAAO,EAAE,IAAA,qBAAa,EAAC,MAAM,EAAE,KAAK,CAAC;KACrC,CAAC;IAIF,8BAA8B,EAAE,IAAA,mBAAW,EAAC,gBAAgB,EAAE;QAC7D,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,IAAI;QAChB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kB,EAAE;QACjE,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,MAAM,EAAE,MAAM,CAAC;KACtC,CAAC;IACF,qCAAqC,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"]}
@@ -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-3': (0, types_1.createModel)('Grok 3', {
6
+ 'xai/grok-4': (0, types_1.createModel)('Grok 4', {
7
7
  vision: true,
8
8
  imageInput: true,
9
- releaseDate: '2025-01-31',
10
- contextWindow: 128000,
11
- maxOutputTokens: 8192,
12
- pricing: (0, types_1.createPricing)(0.005, 0.015),
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-4-1': (0, types_1.createModel)('Grok 4.1', {
15
+ 'xai/grok-3': (0, types_1.createModel)('Grok 3', {
15
16
  vision: true,
16
17
  imageInput: true,
17
- releaseDate: '2024-12-20',
18
- contextWindow: 128000,
18
+ releaseDate: '2025-02-01',
19
+ contextWindow: 131072,
19
20
  maxOutputTokens: 8192,
20
- pricing: (0, types_1.createPricing)(0.005, 0.015),
21
+ pricing: (0, types_1.createPricing)(0.003, 0.015),
21
22
  }),
22
- 'xai/grok-beta': (0, types_1.createModel)('Grok Beta', {
23
+ 'xai/grok-3-fast': (0, types_1.createModel)('Grok 3 Fast', {
23
24
  vision: true,
24
25
  imageInput: true,
25
- releaseDate: '2024-12-05',
26
- contextWindow: 128000,
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: 128000,
49
+ contextWindow: 131072,
34
50
  maxOutputTokens: 8192,
35
51
  pricing: (0, types_1.createPricing)(0.002, 0.01),
36
52
  }),
@@ -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;QACrB,OAAO,EAAE,IAAA,qBAAa,EAAC,KAAK,EAAE,KAAK,CAAC;KACpC,CAAC;IAGF,cAAc,EAAE,IAAA,mBAAW,EAAC,UAAU,EAAE;QACvC,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,eAAe,EAAE,IAAA,mBAAW,EAAC,WAAW,EAAE;QACzC,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,IAAI;QAChB,WAAW,EAAE,YAAY;QACzB,aAAa,EAAE,MAAM;QACrB,eAAe,EAAE,IAAI;KACrB,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 3 (latest 2026)\n\t'xai/grok-3': createModel('Grok 3', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treleaseDate: '2025-01-31',\n\t\tcontextWindow: 128000,\n\t\tmaxOutputTokens: 8192,\n\t\tpricing: createPricing(0.005, 0.015),\n\t}),\n\n\t// Grok 4.1\n\t'xai/grok-4-1': createModel('Grok 4.1', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treleaseDate: '2024-12-20',\n\t\tcontextWindow: 128000,\n\t\tmaxOutputTokens: 8192,\n\t\tpricing: createPricing(0.005, 0.015),\n\t}),\n\n\t// Grok Beta\n\t'xai/grok-beta': createModel('Grok Beta', {\n\t\tvision: true,\n\t\timageInput: true,\n\t\treleaseDate: '2024-12-05',\n\t\tcontextWindow: 128000,\n\t\tmaxOutputTokens: 8192,\n\t}),\n\n\t// Legacy/Alternative model names\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: 128000,\n\t\tmaxOutputTokens: 8192,\n\t\tpricing: createPricing(0.002, 0.01),\n\t}),\n};\n"]}
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai.libx.js",
3
- "version": "0.2.12",
3
+ "version": "0.2.14",
4
4
  "description": "Unified API bridge for various AI models (LLMs, image/video generation, TTS, STT) - stateless, edge-compatible",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -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/V3.x series (latest 2026)
5
+ // DeepSeek V3.2 (Chat / Non-thinking mode)
6
6
  'deepseek/deepseek-chat': createModel('DeepSeek Chat', {
7
7
  releaseDate: '2025-01-20',
8
- contextWindow: 64000,
8
+ contextWindow: 128000,
9
9
  maxOutputTokens: 8192,
10
- pricing: createPricing(0.00028, 0.00042),
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 R1 (Reasoning)
32
- 'deepseek/deepseek-reasoner': createModel('DeepSeek R1', {
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: 64000,
17
+ contextWindow: 128000,
36
18
  maxOutputTokens: 8192,
37
- pricing: createPricing(0.00028, 0.0014),
19
+ pricing: createPricing(0.00055, 0.0022),
38
20
  }),
39
21
  };
@@ -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 (latest 2026)
6
- 'google/models/gemini-3-flash-preview': createModel('Gemini 3 Flash Preview', {
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
- releaseDate: '2025-12-19',
19
- contextWindow: 1000000,
20
- maxOutputTokens: 16000,
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
- releaseDate: '2025-12-19',
29
- contextWindow: 1000000,
30
- maxOutputTokens: 16000,
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
- reasoning: true,
47
- releaseDate: '2024-06-17',
48
- contextWindow: 1000000,
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
- releaseDate: '2024-12-19',
56
- contextWindow: 1000000,
57
- maxOutputTokens: 8000,
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-pro-exp-03-25': createModel('Gemini 2.5 Pro Experimental 03-25', {
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
- releaseDate: '2024-03-25',
65
- contextWindow: 1000000,
66
- maxOutputTokens: 8000,
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
- releaseDate: '2024-12-11',
74
- contextWindow: 1000000,
75
- maxOutputTokens: 8000,
76
- pricing: createPricing(0.075, 0.3),
53
+ reasoning: true,
54
+ contextWindow: 1048576,
55
+ maxOutputTokens: 65536,
77
56
  }),
78
- 'google/models/gemini-2.0-flash-lite': createModel('Gemini 2.0 Flash-Lite', {
57
+ 'google/models/gemini-2.5-flash-image': createModel('Gemini 2.5 Flash Image', {
79
58
  vision: true,
80
59
  imageInput: true,
81
- releaseDate: '2024-12-11',
82
- contextWindow: 1000000,
83
- maxOutputTokens: 8000,
60
+ imageGen: true,
61
+ responseModalities: ['Text', 'Image'],
62
+ contextWindow: 65536,
63
+ maxOutputTokens: 32768,
84
64
  }),
85
- 'google/models/gemini-2.0-flash-preview-image-generation': createModel(
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
- releaseDate: '2024-02-05',
101
- contextWindow: 1000000,
102
- maxOutputTokens: 8000,
68
+ contextWindow: 1048576,
69
+ maxOutputTokens: 65536,
70
+ pricing: createPricing(0.0001, 0.0004),
103
71
  }),
104
- 'google/models/gemini-2.0-flash-thinking-exp-01-21': createModel(
105
- 'Gemini 2.0 Flash Thinking Experimental 01-21',
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
- reasoning: true,
110
- releaseDate: '2024-01-21',
111
- contextWindow: 1000000,
112
- maxOutputTokens: 8000,
77
+ contextWindow: 1048576,
78
+ maxOutputTokens: 65536,
113
79
  }
114
80
  ),
115
- 'google/models/gemini-2.0-flash-exp': createModel('Gemini 2.0 Flash Experimental', {
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
- imageGen: true,
119
- responseModalities: ['Text', 'Image'],
120
- releaseDate: '2024-12-11',
121
- contextWindow: 1000000,
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-thinking-exp-1219': createModel('Gemini 2.0 Flash Thinking Mode', {
92
+ 'google/models/gemini-2.0-flash-lite': createModel('Gemini 2.0 Flash-Lite', {
125
93
  vision: true,
126
94
  imageInput: true,
127
- reasoning: true,
128
- releaseDate: '2024-12-19',
129
- contextWindow: 1000000,
130
- maxOutputTokens: 8000,
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 3 (latest 2026)
6
- 'xai/grok-3': createModel('Grok 3', {
5
+ // Grok 4
6
+ 'xai/grok-4': createModel('Grok 4', {
7
7
  vision: true,
8
8
  imageInput: true,
9
- releaseDate: '2025-01-31',
10
- contextWindow: 128000,
11
- maxOutputTokens: 8192,
12
- pricing: createPricing(0.005, 0.015),
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 4.1
16
- 'xai/grok-4-1': createModel('Grok 4.1', {
16
+ // Grok 3
17
+ 'xai/grok-3': createModel('Grok 3', {
17
18
  vision: true,
18
19
  imageInput: true,
19
- releaseDate: '2024-12-20',
20
- contextWindow: 128000,
20
+ releaseDate: '2025-02-01',
21
+ contextWindow: 131072,
21
22
  maxOutputTokens: 8192,
22
- pricing: createPricing(0.005, 0.015),
23
+ pricing: createPricing(0.003, 0.015),
23
24
  }),
24
25
 
25
- // Grok Beta
26
- 'xai/grok-beta': createModel('Grok Beta', {
26
+ // Grok 3 Fast
27
+ 'xai/grok-3-fast': createModel('Grok 3 Fast', {
27
28
  vision: true,
28
29
  imageInput: true,
29
- releaseDate: '2024-12-05',
30
- contextWindow: 128000,
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/Alternative model names
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: 128000,
59
+ contextWindow: 131072,
40
60
  maxOutputTokens: 8192,
41
61
  pricing: createPricing(0.002, 0.01),
42
62
  }),