Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

models.ts

148 lines3.4 KB

1// Generated by scripts/sync-model-catalogs.ts from modelschemas. Do not edit.
2import type { ModelRecord } from '@tanstack/ai'
3​
4/** Every xAI chat model on modelschemas.com, sorted by id. */
5export const models: ReadonlyArray<ModelRecord> = [
6 {
7 id: 'grok-4.20-0309-non-reasoning',
8 name: 'Grok 4.20 0309 Non Reasoning',
9 input: ['text', 'image'],
10 reasoning: false,
11 prices: {
12 currency: 'USD',
13 input: 1.25,
14 output: 2.5,
15 cacheRead: 0.2,
16 tiers: [
17 { inputTokensAbove: 199999, input: 2.5, output: 5, cacheRead: 0.4 },
18 ],
19 },
20 contextWindow: 1000000,
21 },
22 {
23 id: 'grok-4.20-0309-reasoning',
24 name: 'Grok 4.20 0309 Reasoning',
25 input: ['text', 'image'],
26 reasoning: { levels: {}, budget: false },
27 prices: {
28 currency: 'USD',
29 input: 1.25,
30 output: 2.5,
31 cacheRead: 0.2,
32 tiers: [
33 { inputTokensAbove: 199999, input: 2.5, output: 5, cacheRead: 0.4 },
34 ],
35 },
36 contextWindow: 1000000,
37 },
38 {
39 id: 'grok-4.20-multi-agent-0309',
40 name: 'Grok 4.20 Multi Agent 0309',
41 input: ['text', 'image'],
42 reasoning: { levels: {}, budget: false },
43 prices: {
44 currency: 'USD',
45 input: 1.25,
46 output: 2.5,
47 cacheRead: 0.2,
48 tiers: [
49 { inputTokensAbove: 199999, input: 2.5, output: 5, cacheRead: 0.4 },
50 ],
51 },
52 contextWindow: 1000000,
53 },
54 {
55 id: 'grok-4.3',
56 name: 'Grok 4.3',
57 input: ['text', 'image'],
58 reasoning: {
59 levels: {
60 off: 'none',
61 low: 'low',
62 medium: 'medium',
63 high: 'high',
64 xhigh: 'xhigh',
65 },
66 budget: false,
67 },
68 prices: {
69 currency: 'USD',
70 input: 1.25,
71 output: 2.5,
72 cacheRead: 0.2,
73 tiers: [
74 { inputTokensAbove: 199999, input: 2.5, output: 5, cacheRead: 0.4 },
75 ],
76 },
77 contextWindow: 1000000,
78 },
79 {
80 id: 'grok-4.5',
81 name: 'Grok 4.5',
82 input: ['text', 'image'],
83 reasoning: {
84 levels: { low: 'low', medium: 'medium', high: 'high', xhigh: 'xhigh' },
85 budget: false,
86 },
87 prices: {
88 currency: 'USD',
89 input: 2,
90 output: 6,
91 cacheRead: 0.3,
92 tiers: [
93 { inputTokensAbove: 199999, input: 4, output: 12, cacheRead: 0.6 },
94 ],
95 },
96 contextWindow: 500000,
97 },
98 {
99 id: 'grok-4.6',
100 name: 'Grok 4.6',
101 input: ['text', 'image'],
102 reasoning: {
103 levels: { low: 'low', medium: 'medium', high: 'high', xhigh: 'xhigh' },
104 budget: false,
105 },
106 prices: {
107 currency: 'USD',
108 input: 2,
109 output: 6,
110 cacheRead: 0.5,
111 tiers: [{ inputTokensAbove: 199999, input: 4, output: 12, cacheRead: 1 }],
112 },
113 contextWindow: 500000,
114 },
115 {
116 id: 'grok-4.7',
117 name: 'Grok 4.7',
118 input: ['text', 'image'],
119 reasoning: {
120 levels: { low: 'low', medium: 'medium', high: 'high', xhigh: 'xhigh' },
121 budget: false,
122 },
123 prices: {
124 currency: 'USD',
125 input: 2,
126 output: 6,
127 cacheRead: 0.5,
128 tiers: [{ inputTokensAbove: 199999, input: 4, output: 12, cacheRead: 1 }],
129 },
130 contextWindow: 500000,
131 },
132 {
133 id: 'grok-build-0.1',
134 name: 'Grok Build 0.1',
135 input: ['text', 'image'],
136 reasoning: { levels: {}, budget: false },
137 prices: {
138 currency: 'USD',
139 input: 1,
140 output: 2,
141 cacheRead: 0.2,
142 tiers: [
143 { inputTokensAbove: 199999, input: 2, output: 4, cacheRead: 0.4 },
144 ],
145 },
146 contextWindow: 256000,
147 },