1{
2 "name": "xAI",
3 "id": "xai",
4 "api_key": "$XAI_API_KEY",
5 "api_endpoint": "https://api.x.ai/v1",
6 "type": "openai-compat",
7 "default_large_model_id": "grok-4.20",
8 "default_small_model_id": "grok-4-1-fast",
9 "models": [
10 {
11 "id": "grok-3",
12 "name": "Grok 3",
13 "cost_per_1m_in": 3,
14 "cost_per_1m_out": 15,
15 "cost_per_1m_in_cached": 0,
16 "cost_per_1m_out_cached": 0.75,
17 "context_window": 131072,
18 "default_max_tokens": 13107,
19 "can_reason": false,
20 "supports_attachments": false,
21 "options": {}
22 },
23 {
24 "id": "grok-3-mini",
25 "name": "Grok 3 Mini",
26 "cost_per_1m_in": 0.3,
27 "cost_per_1m_out": 0.5,
28 "cost_per_1m_in_cached": 0,
29 "cost_per_1m_out_cached": 0.075,
30 "context_window": 131072,
31 "default_max_tokens": 13107,
32 "can_reason": true,
33 "supports_attachments": false,
34 "options": {}
35 },
36 {
37 "id": "grok-4",
38 "name": "Grok 4",
39 "cost_per_1m_in": 3,
40 "cost_per_1m_out": 15,
41 "cost_per_1m_in_cached": 0,
42 "cost_per_1m_out_cached": 0.75,
43 "context_window": 200000,
44 "default_max_tokens": 20000,
45 "can_reason": true,
46 "supports_attachments": true,
47 "options": {}
48 },
49 {
50 "id": "grok-4-1-fast",
51 "name": "Grok 4.1 Fast",
52 "cost_per_1m_in": 0.2,
53 "cost_per_1m_out": 0.5,
54 "cost_per_1m_in_cached": 0,
55 "cost_per_1m_out_cached": 0.05,
56 "context_window": 200000,
57 "default_max_tokens": 20000,
58 "can_reason": true,
59 "supports_attachments": true,
60 "options": {}
61 },
62 {
63 "id": "grok-4-1-fast-non-reasoning",
64 "name": "Grok 4.1 Fast Non-Reasoning",
65 "cost_per_1m_in": 0.2,
66 "cost_per_1m_out": 0.5,
67 "cost_per_1m_in_cached": 0,
68 "cost_per_1m_out_cached": 0.05,
69 "context_window": 200000,
70 "default_max_tokens": 20000,
71 "can_reason": false,
72 "supports_attachments": true,
73 "options": {}
74 },
75 {
76 "id": "grok-4-fast",
77 "name": "Grok 4 Fast",
78 "cost_per_1m_in": 0.2,
79 "cost_per_1m_out": 0.5,
80 "cost_per_1m_in_cached": 0,
81 "cost_per_1m_out_cached": 0.05,
82 "context_window": 200000,
83 "default_max_tokens": 20000,
84 "can_reason": true,
85 "supports_attachments": true,
86 "options": {}
87 },
88 {
89 "id": "grok-4-fast-non-reasoning",
90 "name": "Grok 4 Fast Non-Reasoning",
91 "cost_per_1m_in": 0.2,
92 "cost_per_1m_out": 0.5,
93 "cost_per_1m_in_cached": 0,
94 "cost_per_1m_out_cached": 0.05,
95 "context_window": 200000,
96 "default_max_tokens": 20000,
97 "can_reason": false,
98 "supports_attachments": true,
99 "options": {}
100 },
101 {
102 "id": "grok-4.20",
103 "name": "Grok 4.20",
104 "cost_per_1m_in": 2,
105 "cost_per_1m_out": 6,
106 "cost_per_1m_in_cached": 0,
107 "cost_per_1m_out_cached": 0.2,
108 "context_window": 200000,
109 "default_max_tokens": 20000,
110 "can_reason": true,
111 "supports_attachments": true,
112 "options": {}
113 },
114 {
115 "id": "grok-4.20-non-reasoning",
116 "name": "Grok 4.20 Non-Reasoning",
117 "cost_per_1m_in": 2,
118 "cost_per_1m_out": 6,
119 "cost_per_1m_in_cached": 0,
120 "cost_per_1m_out_cached": 0.2,
121 "context_window": 200000,
122 "default_max_tokens": 20000,
123 "can_reason": false,
124 "supports_attachments": true,
125 "options": {}
126 },
127 {
128 "id": "grok-code-fast",
129 "name": "Grok Code Fast",
130 "cost_per_1m_in": 0.2,
131 "cost_per_1m_out": 1.5,
132 "cost_per_1m_in_cached": 0,
133 "cost_per_1m_out_cached": 0.02,
134 "context_window": 131072,
135 "default_max_tokens": 13107,
136 "can_reason": true,
137 "supports_attachments": false,
138 "options": {}
139 }
140 ]
141}