ai.libx.js 0.2.13 → 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,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.13",
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
  };
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
  }),