openai.json

  1{
  2  "name": "OpenAI",
  3  "id": "openai",
  4  "type": "openai",
  5  "api_key": "$OPENAI_API_KEY",
  6  "api_endpoint": "$OPENAI_API_ENDPOINT",
  7  "default_large_model_id": "gpt-5.4",
  8  "default_small_model_id": "gpt-5.4-nano",
  9  "models": [
 10    {
 11      "id": "gpt-5.5",
 12      "name": "GPT-5.5",
 13      "cost_per_1m_in": 5,
 14      "cost_per_1m_out": 30,
 15      "cost_per_1m_in_cached": 0.5,
 16      "cost_per_1m_out_cached": 0,
 17      "context_window": 1050000,
 18      "default_max_tokens": 128000,
 19      "can_reason": true,
 20      "reasoning_levels": ["low", "medium", "high", "xhigh"],
 21      "default_reasoning_effort": "medium",
 22      "supports_attachments": true
 23    },
 24    {
 25      "id": "gpt-5.5-pro",
 26      "name": "GPT-5.5 Pro",
 27      "cost_per_1m_in": 30,
 28      "cost_per_1m_out": 180,
 29      "cost_per_1m_in_cached": 0,
 30      "cost_per_1m_out_cached": 0,
 31      "context_window": 1050000,
 32      "default_max_tokens": 128000,
 33      "can_reason": true,
 34      "reasoning_levels": ["low", "medium", "high", "xhigh"],
 35      "default_reasoning_effort": "medium",
 36      "supports_attachments": true
 37    },
 38    {
 39      "id": "gpt-5.4",
 40      "name": "GPT-5.4",
 41      "cost_per_1m_in": 2.5,
 42      "cost_per_1m_out": 15,
 43      "cost_per_1m_in_cached": 0.25,
 44      "cost_per_1m_out_cached": 0,
 45      "context_window": 1050000,
 46      "default_max_tokens": 128000,
 47      "can_reason": true,
 48      "reasoning_levels": ["low", "medium", "high", "xhigh"],
 49      "default_reasoning_effort": "medium",
 50      "supports_attachments": true
 51    },
 52    {
 53      "id": "gpt-5.4-pro",
 54      "name": "GPT-5.4 Pro",
 55      "cost_per_1m_in": 30,
 56      "cost_per_1m_out": 180,
 57      "cost_per_1m_in_cached": 0,
 58      "cost_per_1m_out_cached": 0,
 59      "context_window": 1050000,
 60      "default_max_tokens": 128000,
 61      "can_reason": true,
 62      "reasoning_levels": ["medium", "high", "xhigh"],
 63      "default_reasoning_effort": "medium",
 64      "supports_attachments": true
 65    },
 66    {
 67      "id": "gpt-5.4-mini",
 68      "name": "GPT-5.4 Mini",
 69      "cost_per_1m_in": 0.75,
 70      "cost_per_1m_out": 180,
 71      "cost_per_1m_in_cached": 0,
 72      "cost_per_1m_out_cached": 0,
 73      "context_window": 400000,
 74      "default_max_tokens": 128000,
 75      "can_reason": true,
 76      "reasoning_levels": ["low", "medium", "high", "xhigh"],
 77      "default_reasoning_effort": "medium",
 78      "supports_attachments": true
 79    },
 80    {
 81      "id": "gpt-5.4-nano",
 82      "name": "GPT-5.4 Nano",
 83      "cost_per_1m_in": 0.20,
 84      "cost_per_1m_out": 1.25,
 85      "cost_per_1m_in_cached": 0.02,
 86      "cost_per_1m_out_cached": 0,
 87      "context_window": 400000,
 88      "default_max_tokens": 128000,
 89      "can_reason": true,
 90      "reasoning_levels": ["low", "medium", "high", "xhigh"],
 91      "default_reasoning_effort": "medium",
 92      "supports_attachments": true
 93    },
 94    {
 95      "id": "gpt-5.3-codex",
 96      "name": "GPT-5.3 Codex",
 97      "cost_per_1m_in": 1.75,
 98      "cost_per_1m_out": 14,
 99      "cost_per_1m_in_cached": 0.175,
100      "cost_per_1m_out_cached": 0.175,
101      "context_window": 400000,
102      "default_max_tokens": 128000,
103      "can_reason": true,
104      "reasoning_levels": ["minimal", "low", "medium", "high"],
105      "default_reasoning_effort": "medium",
106      "supports_attachments": true
107    },
108    {
109      "id": "gpt-5.2",
110      "name": "GPT-5.2",
111      "cost_per_1m_in": 1.75,
112      "cost_per_1m_out": 14,
113      "cost_per_1m_in_cached": 0.175,
114      "cost_per_1m_out_cached": 0.175,
115      "context_window": 400000,
116      "default_max_tokens": 128000,
117      "can_reason": true,
118      "reasoning_levels": ["minimal", "low", "medium", "high"],
119      "default_reasoning_effort": "medium",
120      "supports_attachments": true
121    },
122    {
123      "id": "gpt-5.2-codex",
124      "name": "GPT-5.2 Codex",
125      "cost_per_1m_in": 1.75,
126      "cost_per_1m_out": 14,
127      "cost_per_1m_in_cached": 0.175,
128      "cost_per_1m_out_cached": 0.175,
129      "context_window": 400000,
130      "default_max_tokens": 128000,
131      "can_reason": true,
132      "reasoning_levels": ["minimal", "low", "medium", "high"],
133      "default_reasoning_effort": "medium",
134      "supports_attachments": true
135    },
136    {
137      "id": "gpt-5.1",
138      "name": "GPT-5.1",
139      "cost_per_1m_in": 1.25,
140      "cost_per_1m_out": 10,
141      "cost_per_1m_in_cached": 0.125,
142      "cost_per_1m_out_cached": 0.125,
143      "context_window": 400000,
144      "default_max_tokens": 128000,
145      "can_reason": true,
146      "reasoning_levels": ["minimal", "low", "medium", "high"],
147      "default_reasoning_effort": "medium",
148      "supports_attachments": true
149    },
150    {
151      "id": "gpt-5.1-codex",
152      "name": "GPT-5.1 Codex",
153      "cost_per_1m_in": 1.25,
154      "cost_per_1m_out": 10,
155      "cost_per_1m_in_cached": 0.125,
156      "cost_per_1m_out_cached": 0.125,
157      "context_window": 400000,
158      "default_max_tokens": 128000,
159      "can_reason": true,
160      "reasoning_levels": ["minimal", "low", "medium", "high"],
161      "default_reasoning_effort": "medium",
162      "supports_attachments": true
163    },
164    {
165      "id": "gpt-5.1-codex-max",
166      "name": "GPT-5.1 Codex Max",
167      "cost_per_1m_in": 1.25,
168      "cost_per_1m_out": 10,
169      "cost_per_1m_in_cached": 0.125,
170      "cost_per_1m_out_cached": 0.125,
171      "context_window": 400000,
172      "default_max_tokens": 128000,
173      "can_reason": true,
174      "reasoning_levels": ["minimal", "low", "medium", "high"],
175      "default_reasoning_effort": "medium",
176      "supports_attachments": true
177    },
178    {
179      "id": "gpt-5.1-codex-mini",
180      "name": "GPT-5.1 Codex Mini",
181      "cost_per_1m_in": 0.25,
182      "cost_per_1m_out": 2,
183      "cost_per_1m_in_cached": 0.025,
184      "cost_per_1m_out_cached": 0.025,
185      "context_window": 400000,
186      "default_max_tokens": 128000,
187      "can_reason": true,
188      "reasoning_levels": ["low", "medium", "high"],
189      "default_reasoning_effort": "medium",
190      "supports_attachments": true
191    },
192    {
193      "id": "gpt-5-codex",
194      "name": "GPT-5 Codex",
195      "cost_per_1m_in": 1.25,
196      "cost_per_1m_out": 10,
197      "cost_per_1m_in_cached": 0.125,
198      "cost_per_1m_out_cached": 0.125,
199      "context_window": 400000,
200      "default_max_tokens": 128000,
201      "can_reason": true,
202      "reasoning_levels": ["minimal", "low", "medium", "high"],
203      "default_reasoning_effort": "medium",
204      "supports_attachments": true
205    },
206    {
207      "id": "gpt-5",
208      "name": "GPT-5",
209      "cost_per_1m_in": 1.25,
210      "cost_per_1m_out": 10,
211      "cost_per_1m_in_cached": 0.125,
212      "cost_per_1m_out_cached": 0.125,
213      "context_window": 400000,
214      "default_max_tokens": 128000,
215      "can_reason": true,
216      "reasoning_levels": ["minimal", "low", "medium", "high"],
217      "default_reasoning_effort": "medium",
218      "supports_attachments": true
219    },
220    {
221      "id": "gpt-5-mini",
222      "name": "GPT-5 Mini",
223      "cost_per_1m_in": 0.25,
224      "cost_per_1m_out": 2,
225      "cost_per_1m_in_cached": 0.025,
226      "cost_per_1m_out_cached": 0.025,
227      "context_window": 400000,
228      "default_max_tokens": 128000,
229      "can_reason": true,
230      "reasoning_levels": ["low", "medium", "high"],
231      "default_reasoning_effort": "medium",
232      "supports_attachments": true
233    },
234    {
235      "id": "gpt-5-nano",
236      "name": "GPT-5 Nano",
237      "cost_per_1m_in": 0.05,
238      "cost_per_1m_out": 0.4,
239      "cost_per_1m_in_cached": 0.005,
240      "cost_per_1m_out_cached": 0.005,
241      "context_window": 400000,
242      "default_max_tokens": 128000,
243      "can_reason": true,
244      "reasoning_levels": ["low", "medium", "high"],
245      "default_reasoning_effort": "medium",
246      "supports_attachments": true
247    },
248    {
249      "id": "o4-mini",
250      "name": "o4 Mini",
251      "cost_per_1m_in": 1.1,
252      "cost_per_1m_out": 4.4,
253      "cost_per_1m_in_cached": 0,
254      "cost_per_1m_out_cached": 0.275,
255      "context_window": 200000,
256      "default_max_tokens": 50000,
257      "can_reason": true,
258      "reasoning_levels": ["low", "medium", "high"],
259      "default_reasoning_effort": "medium",
260      "supports_attachments": true
261    },
262    {
263      "id": "o3",
264      "name": "o3",
265      "cost_per_1m_in": 2,
266      "cost_per_1m_out": 8,
267      "cost_per_1m_in_cached": 0,
268      "cost_per_1m_out_cached": 0.5,
269      "context_window": 200000,
270      "default_max_tokens": 50000,
271      "can_reason": true,
272      "reasoning_levels": ["low", "medium", "high"],
273      "default_reasoning_effort": "medium",
274      "supports_attachments": true
275    },
276    {
277      "id": "gpt-4.1",
278      "name": "GPT-4.1",
279      "cost_per_1m_in": 2,
280      "cost_per_1m_out": 8,
281      "cost_per_1m_in_cached": 0,
282      "cost_per_1m_out_cached": 0.5,
283      "context_window": 1047576,
284      "default_max_tokens": 16384,
285      "can_reason": false,
286      "supports_attachments": true
287    },
288    {
289      "id": "gpt-4.1-mini",
290      "name": "GPT-4.1 Mini",
291      "cost_per_1m_in": 0.39999999999999997,
292      "cost_per_1m_out": 1.5999999999999999,
293      "cost_per_1m_in_cached": 0,
294      "cost_per_1m_out_cached": 0.09999999999999999,
295      "context_window": 1047576,
296      "default_max_tokens": 16384,
297      "can_reason": false,
298      "supports_attachments": true
299    },
300    {
301      "id": "gpt-4.1-nano",
302      "name": "GPT-4.1 Nano",
303      "cost_per_1m_in": 0.09999999999999999,
304      "cost_per_1m_out": 0.39999999999999997,
305      "cost_per_1m_in_cached": 0,
306      "cost_per_1m_out_cached": 0.024999999999999998,
307      "context_window": 1047576,
308      "default_max_tokens": 16384,
309      "can_reason": false,
310      "supports_attachments": true
311    },
312    {
313      "id": "o3-mini",
314      "name": "o3 Mini",
315      "cost_per_1m_in": 1.1,
316      "cost_per_1m_out": 4.4,
317      "cost_per_1m_in_cached": 0,
318      "cost_per_1m_out_cached": 0.55,
319      "context_window": 200000,
320      "default_max_tokens": 50000,
321      "can_reason": true,
322      "reasoning_levels": ["low", "medium", "high"],
323      "default_reasoning_effort": "medium",
324      "supports_attachments": false
325    },
326    {
327      "id": "gpt-4o",
328      "name": "GPT-4o",
329      "cost_per_1m_in": 2.5,
330      "cost_per_1m_out": 10,
331      "cost_per_1m_in_cached": 0,
332      "cost_per_1m_out_cached": 1.25,
333      "context_window": 128000,
334      "default_max_tokens": 8192,
335      "can_reason": false,
336      "supports_attachments": true
337    },
338    {
339      "id": "gpt-4o-mini",
340      "name": "GPT-4o-mini",
341      "cost_per_1m_in": 0.15,
342      "cost_per_1m_out": 0.6,
343      "cost_per_1m_in_cached": 0,
344      "cost_per_1m_out_cached": 0.075,
345      "context_window": 128000,
346      "default_max_tokens": 8192,
347      "can_reason": false,
348      "reasoning_effort": "",
349      "supports_attachments": true
350    }
351  ]
352}