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.6.83 0.1.4 1.6.84 0.1.5 1.6.85 0.1.6 1.6.86 0.1.7 1.6.87 0.1.8 1.6.88 0.1.9 1.6.89 0.2.0 1.6.90
ai-engine / constants / models.php
ai-engine / constants Last commit date
engines.php 8 months ago init.php 8 months ago models.php 7 months ago types.php 1 year ago
models.php
1325 lines
1 <?php
2
3 // Price as of June 2024: https://openai.com/api/pricing/
4
5 define( 'MWAI_OPENAI_MODELS', [
6 /*
7 GPT-5.2
8 The best model for coding and agentic tasks across industries
9 https://platform.openai.com/docs/models/gpt-5.2
10 */
11 [
12 'model' => 'gpt-5.2',
13 'name' => 'GPT-5.2',
14 'family' => 'gpt-5',
15 'features' => ['completion'],
16 'price' => [
17 'in' => 1.75,
18 'out' => 14.00,
19 ],
20 'type' => 'token',
21 'unit' => 1 / 1000000,
22 'maxCompletionTokens' => 128000,
23 'maxContextualTokens' => 400000,
24 'finetune' => false,
25 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'json', 'responses', 'mcp', 'reasoning', 'verbosity'],
26 'tools' => ['web_search', 'image_generation', 'file_search', 'code_interpreter'],
27 'params' => [
28 'reasoning' => ['none', 'low', 'medium', 'high', 'xhigh'],
29 'verbosity' => ['low', 'medium', 'high']
30 ]
31 ],
32 /*
33 GPT-5.2 Chat
34 GPT-5.2 model used in ChatGPT
35 https://platform.openai.com/docs/models/gpt-5.2
36 */
37 [
38 'model' => 'gpt-5.2-chat-latest',
39 'name' => 'GPT-5.2 Chat',
40 'family' => 'gpt-5',
41 'features' => ['completion'],
42 'price' => [
43 'in' => 1.75,
44 'out' => 14.00,
45 ],
46 'type' => 'token',
47 'unit' => 1 / 1000000,
48 'maxCompletionTokens' => 128000,
49 'maxContextualTokens' => 400000,
50 'finetune' => false,
51 'tags' => ['core', 'chat', 'vision', 'files', 'responses', 'mcp'],
52 'tools' => ['web_search', 'file_search', 'code_interpreter']
53 ],
54 /*
55 GPT-5.2 Pro
56 Version of GPT-5.2 that produces smarter and more precise responses
57 https://platform.openai.com/docs/models/gpt-5.2-pro
58 */
59 [
60 'model' => 'gpt-5.2-pro',
61 'name' => 'GPT-5.2 Pro',
62 'family' => 'gpt-5',
63 'features' => ['completion'],
64 'price' => [
65 'in' => 21.00,
66 'out' => 168.00,
67 ],
68 'type' => 'token',
69 'unit' => 1 / 1000000,
70 'maxCompletionTokens' => 128000,
71 'maxContextualTokens' => 400000,
72 'finetune' => false,
73 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'json', 'responses', 'mcp', 'reasoning', 'verbosity'],
74 'tools' => ['web_search', 'image_generation', 'file_search', 'code_interpreter'],
75 'params' => [
76 'reasoning' => ['medium', 'high', 'xhigh'],
77 'verbosity' => ['low', 'medium', 'high']
78 ]
79 ],
80 /*
81 GPT-5.1
82 Demo model with enhanced capabilities
83 https://platform.openai.com/docs/models/gpt-5.1
84 */
85 [
86 'model' => 'gpt-5.1',
87 'name' => 'GPT-5.1',
88 'family' => 'gpt-5',
89 'features' => ['completion'],
90 'price' => [
91 'in' => 1.25,
92 'out' => 10.00,
93 ],
94 'type' => 'token',
95 'unit' => 1 / 1000000,
96 'maxCompletionTokens' => 128000,
97 'maxContextualTokens' => 400000,
98 'finetune' => false,
99 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'json', 'responses', 'mcp', 'reasoning', 'verbosity'],
100 'tools' => ['web_search', 'image_generation', 'file_search', 'code_interpreter'],
101 'params' => [
102 'reasoning' => ['none', 'minimal', 'low', 'medium', 'high'],
103 'verbosity' => ['low', 'medium', 'high']
104 ]
105 ],
106 /*
107 GPT-5
108 The best model for coding and agentic tasks across domains
109 https://platform.openai.com/docs/models/gpt-5
110 */
111 [
112 'model' => 'gpt-5',
113 'name' => 'GPT-5',
114 'family' => 'gpt-5',
115 'features' => ['completion'],
116 'price' => [
117 'in' => 1.25,
118 'out' => 10.00,
119 ],
120 'type' => 'token',
121 'unit' => 1 / 1000000,
122 'maxCompletionTokens' => 128000,
123 'maxContextualTokens' => 400000,
124 'finetune' => false,
125 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'json', 'responses', 'mcp', 'reasoning', 'verbosity'],
126 'tools' => ['web_search', 'image_generation', 'file_search', 'code_interpreter'],
127 'params' => [
128 'reasoning' => ['none', 'minimal', 'low', 'medium', 'high'],
129 'verbosity' => ['low', 'medium', 'high']
130 ]
131 ],
132 /*
133 GPT-5 Mini
134 Efficient and cost-effective GPT-5 variant
135 https://platform.openai.com/docs/models/gpt-5-mini
136 */
137 [
138 'model' => 'gpt-5-mini',
139 'name' => 'GPT-5 Mini',
140 'family' => 'gpt-5',
141 'features' => ['completion'],
142 'price' => [
143 'in' => 0.25,
144 'out' => 2.00,
145 ],
146 'type' => 'token',
147 'unit' => 1 / 1000000,
148 'maxCompletionTokens' => 128000,
149 'maxContextualTokens' => 400000,
150 'finetune' => false,
151 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'json', 'responses', 'mcp', 'reasoning', 'verbosity'],
152 'tools' => ['web_search', 'image_generation', 'file_search', 'code_interpreter'],
153 'params' => [
154 'reasoning' => ['none', 'minimal', 'low', 'medium', 'high'],
155 'verbosity' => ['low', 'medium', 'high']
156 ]
157 ],
158 /*
159 GPT-5 Nano
160 Ultra-fast and lightweight GPT-5 model
161 https://platform.openai.com/docs/models/gpt-5-nano
162 */
163 [
164 'model' => 'gpt-5-nano',
165 'name' => 'GPT-5 Nano',
166 'family' => 'gpt-5',
167 'features' => ['completion'],
168 'price' => [
169 'in' => 0.05,
170 'out' => 0.40,
171 ],
172 'type' => 'token',
173 'unit' => 1 / 1000000,
174 'maxCompletionTokens' => 128000,
175 'maxContextualTokens' => 400000,
176 'finetune' => false,
177 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'json', 'responses', 'mcp', 'reasoning', 'verbosity'],
178 'tools' => ['web_search', 'image_generation', 'file_search', 'code_interpreter'],
179 'params' => [
180 'reasoning' => ['none', 'minimal', 'low', 'medium', 'high'],
181 'verbosity' => ['low', 'medium', 'high']
182 ]
183 ],
184 /*
185 GPT-5 Chat
186 GPT-5 model used in ChatGPT
187 https://platform.openai.com/docs/models/gpt-5
188 */
189 [
190 'model' => 'gpt-5-chat-latest',
191 'name' => 'GPT-5 Chat',
192 'family' => 'gpt-5',
193 'features' => ['completion'],
194 'price' => [
195 'in' => 1.25,
196 'out' => 10.00,
197 ],
198 'type' => 'token',
199 'unit' => 1 / 1000000,
200 'maxCompletionTokens' => 16384,
201 'maxContextualTokens' => 128000,
202 'finetune' => false,
203 'tags' => ['core', 'chat', 'vision', 'files', 'responses', 'mcp'],
204 'tools' => ['web_search', 'file_search', 'code_interpreter'],
205 'params' => [
206 'verbosity' => ['low', 'medium', 'high']
207 ]
208 ],
209 /*
210 GPT-5 Pro
211 Version of GPT-5 that produces smarter and more precise responses
212 https://platform.openai.com/docs/models/gpt-5
213 */
214 [
215 'model' => 'gpt-5-pro',
216 'name' => 'GPT-5 Pro',
217 'family' => 'gpt-5',
218 'features' => ['completion'],
219 'price' => [
220 'in' => 15.00,
221 'out' => 120.00,
222 ],
223 'type' => 'token',
224 'unit' => 1 / 1000000,
225 'maxCompletionTokens' => 272000,
226 'maxContextualTokens' => 400000,
227 'finetune' => false,
228 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'json', 'responses', 'mcp', 'reasoning', 'verbosity'],
229 'tools' => ['web_search', 'image_generation', 'file_search', 'code_interpreter'],
230 'params' => [
231 'reasoning' => ['none', 'minimal', 'low', 'medium', 'high'],
232 'verbosity' => ['low', 'medium', 'high']
233 ]
234 ],
235 /*
236 GPT 4.1
237 Flagship GPT model for complex tasks
238 https://platform.openai.com/docs/models/gpt-4.1
239 */
240 [
241 'model' => 'gpt-4.1',
242 'name' => 'GPT-4.1',
243 'family' => 'gpt-4',
244 'features' => ['completion'],
245 'price' => [
246 'in' => 2.00,
247 'out' => 8.00,
248 ],
249 'type' => 'token',
250 'unit' => 1 / 1000000,
251 'maxCompletionTokens' => 32768,
252 'maxContextualTokens' => 1047576,
253 'finetune' => false,
254 'tags' => ['core', 'chat', 'vision', 'functions', 'json', 'finetune', 'responses', 'mcp'],
255 'tools' => ['web_search', 'image_generation', 'code_interpreter']
256 ],
257 /*
258 GPT-4.1 mini
259 Balanced for intelligence, speed, and cost
260 https://platform.openai.com/docs/models/gpt-4.1-mini
261 */
262 [
263 'model' => 'gpt-4.1-mini',
264 'name' => 'GPT-4.1 Mini',
265 'family' => 'gpt-4',
266 'features' => ['completion'],
267 'price' => [
268 'in' => 0.40,
269 'out' => 1.60,
270 ],
271 'type' => 'token',
272 'unit' => 1 / 1000000,
273 'maxCompletionTokens' => 32768,
274 'maxContextualTokens' => 1047576,
275 'finetune' => false,
276 'tags' => ['core', 'chat', 'vision', 'functions', 'json', 'finetune', 'responses', 'mcp'],
277 'tools' => ['web_search', 'image_generation', 'code_interpreter']
278 ],
279 /*
280 GPT-4.1 nano
281 Fastest, most cost-effective GPT-4.1 model
282 https://platform.openai.com/docs/models/gpt-4.1-nano
283 */
284 [
285 'model' => 'gpt-4.1-nano',
286 'name' => 'GPT-4.1 Nano',
287 'family' => 'gpt-4',
288 'features' => ['completion'],
289 'price' => [
290 'in' => 0.10,
291 'out' => 0.40,
292 ],
293 'type' => 'token',
294 'unit' => 1 / 1000000,
295 'maxCompletionTokens' => 32768,
296 'maxContextualTokens' => 1047576,
297 'finetune' => false,
298 'tags' => ['core', 'chat', 'vision', 'functions', 'json', 'finetune', 'responses', 'mcp'],
299 'tools' => ['image_generation']
300 ],
301 /*
302 GPT-4o
303 Fast, intelligent, flexible GPT model
304 https://platform.openai.com/docs/models/gpt-4o
305 */
306 [
307 'model' => 'gpt-4o',
308 'name' => 'GPT-4o',
309 'family' => 'gpt-4',
310 'features' => ['completion'],
311 'price' => [
312 'in' => 2.50,
313 'out' => 10.00,
314 ],
315 'type' => 'token',
316 'unit' => 1 / 1000000,
317 'maxCompletionTokens' => 16384,
318 'maxContextualTokens' => 128000,
319 'finetune' => false,
320 'tags' => ['core', 'chat', 'vision', 'functions', 'json', 'finetune', 'mcp', 'responses'],
321 'tools' => ['web_search', 'image_generation', 'code_interpreter']
322 ],
323 /*
324 GPT-4o mini
325 Fast, affordable small model for focused tasks
326 https://platform.openai.com/docs/models/gpt-4o-mini
327 */
328 [
329 'model' => 'gpt-4o-mini',
330 'name' => 'GPT-4o Mini',
331 'family' => 'gpt-4',
332 'features' => ['completion'],
333 'price' => [
334 'in' => 0.15,
335 'out' => 0.60,
336 ],
337 'type' => 'token',
338 'unit' => 1 / 1000000,
339 'maxCompletionTokens' => 16384,
340 'maxContextualTokens' => 128000,
341 'finetune' => [
342 'in' => 0.15,
343 'out' => 0.60,
344 'train' => 3.00
345 ],
346 'tags' => ['core', 'chat', 'vision', 'functions', 'json', 'finetune', 'mcp', 'responses'],
347 'tools' => ['web_search', 'image_generation', 'code_interpreter']
348 ],
349 /*
350 o1
351 High-intelligence reasoning mode
352 https://platform.openai.com/docs/models/o1
353 */
354 [
355 'model' => 'o1',
356 'name' => 'o1',
357 'family' => 'o1',
358 'features' => ['completion'],
359 'price' => [
360 'in' => 15.00,
361 'out' => 60.00,
362 ],
363 'type' => 'token',
364 'unit' => 1 / 1000000,
365 'maxCompletionTokens' => 100000,
366 'maxContextualTokens' => 200000,
367 'tags' => ['core', 'chat', 'o1-model', 'reasoning', 'mcp']
368 ],
369 [
370 'model' => 'o1-mini',
371 'name' => 'o1 Mini',
372 'family' => 'o1',
373 'features' => ['completion'],
374 'price' => [
375 'in' => 1.10,
376 'out' => 4.40,
377 ],
378 'type' => 'token',
379 'unit' => 1 / 1000000,
380 'maxCompletionTokens' => 65536,
381 'maxContextualTokens' => 128000,
382 'tags' => ['core', 'chat', 'o1-model', 'reasoning', 'mcp']
383 ],
384 /*
385 o3
386 Advanced reasoning model
387 https://platform.openai.com/docs/models/o3
388 */
389 [
390 'model' => 'o3',
391 'name' => 'o3',
392 'family' => 'o3',
393 'features' => ['completion'],
394 'price' => [
395 'in' => 15.00,
396 'out' => 60.00,
397 ],
398 'type' => 'token',
399 'unit' => 1 / 1000000,
400 'maxCompletionTokens' => 100000,
401 'maxContextualTokens' => 200000,
402 'tags' => ['core', 'chat', 'o1-model', 'reasoning', 'responses', 'mcp'],
403 'tools' => ['web_search', 'image_generation', 'code_interpreter']
404 ],
405 /*
406 o3-mini
407 Fast, flexible, intelligent reasoning model
408 https://platform.openai.com/docs/models/o3-mini
409 */
410 [
411 'model' => 'o3-mini',
412 'name' => 'o3 Mini',
413 'family' => 'o3',
414 'features' => ['completion'],
415 'price' => [
416 'in' => 1.10,
417 'out' => 4.40,
418 ],
419 'type' => 'token',
420 'unit' => 1 / 1000000,
421 'maxCompletionTokens' => 100000,
422 'maxContextualTokens' => 200000,
423 'tags' => ['core', 'chat', 'o1-model', 'reasoning', 'responses', 'mcp'],
424 'tools' => ['web_search', 'image_generation', 'code_interpreter']
425 ],
426 /*
427 GPT Realtime
428 Production-ready speech-to-speech model with MCP, image input, and SIP support
429 https://platform.openai.com/docs/models/gpt-realtime
430 */
431 [
432 'model' => 'gpt-realtime',
433 'name' => 'GPT Realtime',
434 'family' => 'realtime',
435 'features' => ['core', 'realtime', 'functions'],
436 'price' => [
437 'text' => [
438 'in' => 4.00,
439 'cache' => 0.40,
440 'out' => 16.00,
441 ],
442 'audio' => [
443 'in' => 32.00,
444 'cache' => 0.40,
445 'out' => 64.00,
446 ],
447 'image' => [
448 'in' => 5.00,
449 'cache' => 0.50,
450 ]
451 ],
452 'type' => 'token',
453 'unit' => 1 / 1000000,
454 'maxCompletionTokens' => 4096,
455 'maxContextualTokens' => 128000,
456 'finetune' => false,
457 'tags' => ['core', 'realtime', 'functions', 'vision', 'mcp']
458 ],
459 /*
460 GPT Realtime Mini
461 Cost-efficient version of GPT Realtime
462 https://platform.openai.com/docs/models/gpt-realtime-mini
463 */
464 [
465 'model' => 'gpt-realtime-mini',
466 'name' => 'GPT Realtime Mini',
467 'family' => 'realtime',
468 'features' => ['core', 'realtime', 'functions'],
469 'price' => [
470 'text' => [
471 'in' => 0.60,
472 'cache' => 0.06,
473 'out' => 2.40,
474 ],
475 'audio' => [
476 'in' => 10.00,
477 'cache' => 0.06,
478 'out' => 20.00,
479 ]
480 ],
481 'type' => 'token',
482 'unit' => 1 / 1000000,
483 'maxCompletionTokens' => 4096,
484 'maxContextualTokens' => 32000,
485 'finetune' => false,
486 'tags' => ['core', 'realtime', 'functions', 'vision']
487 ],
488 /*
489 GPT-4o Realtime
490 Model capable of realtime text and audio inputs and outputs
491 https://platform.openai.com/docs/models/gpt-4o-realtime-preview
492 */
493 [
494 'model' => 'gpt-4o-realtime-preview',
495 'name' => 'GPT-4o Realtime (Preview)',
496 'family' => 'realtime',
497 'features' => ['core', 'realtime', 'functions'],
498 'price' => [
499 'text' => [
500 'in' => 5.00,
501 'cache' => 2.50,
502 'out' => 20.00,
503 ],
504 'audio' => [
505 'in' => 40.00,
506 'cache' => 2.50,
507 'out' => 80.00,
508 ]
509 ],
510 'type' => 'token',
511 'unit' => 1 / 1000000,
512 'maxCompletionTokens' => 4096,
513 'maxContextualTokens' => 128000,
514 'finetune' => false,
515 'tags' => ['core', 'realtime', 'functions', 'vision']
516 ],
517 /*
518 GPT-4o mini Realtime
519 Smaller realtime model for text and audio inputs and outputs
520 https://platform.openai.com/docs/models/gpt-4o-mini-realtime-preview
521 */
522 [
523 'model' => 'gpt-4o-mini-realtime-preview',
524 'name' => 'GPT-4o Mini Realtime (Preview)',
525 'family' => 'realtime',
526 'features' => ['core', 'realtime', 'functions'],
527 'price' => [
528 'text' => [
529 'in' => 0.60,
530 'cache' => 0.30,
531 'out' => 2.40,
532 ],
533 'audio' => [
534 'in' => 10.00,
535 'cache' => 0.30,
536 'out' => 20.00,
537 ]
538 ],
539 'type' => 'token',
540 'unit' => 1 / 1000000,
541 'maxCompletionTokens' => 4096,
542 'maxContextualTokens' => 128000,
543 'finetune' => false,
544 'tags' => ['core', 'realtime', 'functions', 'vision']
545 ],
546 /*
547 GPT-4
548 An older high-intelligence GPT model
549 https://platform.openai.com/docs/models/gpt-4
550 */
551 [
552 'model' => 'gpt-4',
553 'name' => 'GPT-4',
554 'family' => 'gpt-4',
555 'features' => ['completion'],
556 'price' => [
557 'in' => 30.00,
558 'out' => 60.00,
559 ],
560 'type' => 'token',
561 'unit' => 1 / 1000000,
562 'maxCompletionTokens' => 8192,
563 'maxContextualTokens' => 8192,
564 'finetune' => false,
565 'tags' => ['core', 'chat', 'functions']
566 ],
567 /*
568 GPT-4 Turbo
569 An older high-intelligence GPT model
570 https://platform.openai.com/docs/models/gpt-4-turbo
571 */
572 [
573 'model' => 'gpt-4-turbo',
574 'name' => 'GPT-4 Turbo',
575 'family' => 'gpt-4',
576 'features' => ['completion'],
577 'price' => [
578 'in' => 10.00,
579 'out' => 30.00,
580 ],
581 'type' => 'token',
582 'unit' => 1 / 1000000,
583 'maxCompletionTokens' => 4096,
584 'maxContextualTokens' => 128000,
585 'finetune' => false,
586 'tags' => ['core', 'chat', 'vision', 'functions', 'json']
587 ],
588 /*
589 GPT-3.5 Turbo
590 Legacy GPT model for cheaper chat and non-chat tasks
591 https://platform.openai.com/docs/models/gpt-3.5-turbo
592 */
593 [
594 'model' => 'gpt-3.5-turbo',
595 'name' => 'GPT-3.5 Turbo',
596 'family' => 'gpt-3',
597 'features' => ['completion'],
598 'price' => [
599 'in' => 0.50,
600 'out' => 1.50,
601 ],
602 'type' => 'token',
603 'unit' => 1 / 1000000,
604 'maxCompletionTokens' => 4096,
605 'maxContextualTokens' => 16385,
606 'finetune' => [
607 'in' => 3.00,
608 'out' => 6.00,
609 'train' => 8.00
610 ],
611 'tags' => ['core', 'chat', '4k', 'finetune', 'functions']
612 ],
613 /*
614 DALL·E 3
615 Our latest image generation model
616 https://platform.openai.com/docs/models/dall-e-3
617 */
618 [
619 'model' => 'gpt-image-1',
620 'name' => 'GPT Image 1',
621 'family' => 'gpt-image',
622 'features' => ['text-to-image'],
623 'resolutions' => [
624 [
625 'name' => '1024x1024',
626 'label' => '1024x1024'
627 ],
628 [
629 'name' => '1024x1536',
630 'label' => '1024x1536'
631 ],
632 [
633 'name' => '1536x1024',
634 'label' => '1536x1024'
635 ]
636 ],
637 'type' => 'token',
638 'mode' => 'image',
639 'price' => [
640 'in' => 10.00,
641 'out' => 40.00,
642 'cached' => 2.50
643 ],
644 'unit' => 1 / 1000000,
645 'finetune' => false,
646 'tags' => ['core', 'image', 'image-edit', 'responses']
647 ],
648 [
649 'model' => 'gpt-image-1-mini',
650 'name' => 'GPT Image 1 Mini',
651 'family' => 'gpt-image',
652 'features' => ['text-to-image'],
653 'resolutions' => [
654 [
655 'name' => '1024x1024',
656 'label' => '1024x1024'
657 ],
658 [
659 'name' => '1024x1536',
660 'label' => '1024x1536'
661 ],
662 [
663 'name' => '1536x1024',
664 'label' => '1536x1024'
665 ]
666 ],
667 'type' => 'token',
668 'mode' => 'image',
669 'price' => [
670 'in' => 2.50,
671 'out' => 8.00,
672 'cached' => 0.25
673 ],
674 'unit' => 1 / 1000000,
675 'finetune' => false,
676 'tags' => ['core', 'image', 'image-edit', 'responses']
677 ],
678 [
679 'model' => 'dall-e-3',
680 'name' => 'DALL-E 3',
681 'family' => 'dall-e',
682 'features' => ['text-to-image'],
683 'resolutions' => [
684 [
685 'name' => '1024x1024',
686 'label' => '1024x1024',
687 'price' => 0.040
688 ],
689 [
690 'name' => '1024x1792',
691 'label' => '1024x1792',
692 'price' => 0.080
693 ],
694 [
695 'name' => '1792x1024',
696 'label' => '1792x1024',
697 'price' => 0.080
698 ]
699 ],
700 'type' => 'image',
701 'unit' => 1,
702 'finetune' => false,
703 'tags' => ['core', 'image']
704 ],
705 [
706 'model' => 'dall-e-3-hd',
707 'name' => 'DALL-E 3 (HD)',
708 'family' => 'dall-e',
709 'features' => ['text-to-image'],
710 'resolutions' => [
711 [
712 'name' => '1024x1024',
713 'label' => '1024x1024',
714 'price' => 0.080
715 ],
716 [
717 'name' => '1024x1792',
718 'label' => '1024x1792',
719 'price' => 0.120
720 ],
721 [
722 'name' => '1792x1024',
723 'label' => '1792x1024',
724 'price' => 0.120
725 ]
726 ],
727 'type' => 'image',
728 'unit' => 1,
729 'finetune' => false,
730 'tags' => ['core', 'image']
731 ],
732 /*
733 Sora 2
734 Flagship video generation with synced audio
735 https://platform.openai.com/docs/models/sora-2
736 */
737 [
738 'model' => 'sora-2',
739 'name' => 'Sora 2',
740 'family' => 'sora',
741 'features' => ['text-to-video'],
742 'resolutions' => [
743 [
744 'name' => '720x1280',
745 'label' => 'Portrait (720x1280)',
746 'price' => 0.10
747 ],
748 [
749 'name' => '1280x720',
750 'label' => 'Landscape (1280x720)',
751 'price' => 0.10
752 ]
753 ],
754 'durations' => [ 4, 8, 12 ],
755 'type' => 'video',
756 'unit' => 'second',
757 'finetune' => false,
758 'tags' => ['core', 'video']
759 ],
760 [
761 'model' => 'sora-2-pro',
762 'name' => 'Sora 2 Pro',
763 'family' => 'sora',
764 'features' => ['text-to-video'],
765 'resolutions' => [
766 [
767 'name' => '720x1280',
768 'label' => 'Portrait (720x1280)',
769 'price' => 0.30
770 ],
771 [
772 'name' => '1280x720',
773 'label' => 'Landscape (1280x720)',
774 'price' => 0.30
775 ],
776 [
777 'name' => '1024x1792',
778 'label' => 'Portrait High (1024x1792)',
779 'price' => 0.50
780 ],
781 [
782 'name' => '1792x1024',
783 'label' => 'Landscape High (1792x1024)',
784 'price' => 0.50
785 ]
786 ],
787 'durations' => [ 4, 8, 12 ],
788 'type' => 'video',
789 'unit' => 'second',
790 'finetune' => false,
791 'tags' => ['core', 'video']
792 ],
793 // Embedding models:
794 [
795 'model' => 'text-embedding-3-small',
796 'name' => 'Embedding 3-Small',
797 'family' => 'text-embedding',
798 'features' => ['embedding'],
799 'price' => 0.02,
800 'type' => 'token',
801 'unit' => 1 / 1000000,
802 'finetune' => false,
803 'dimensions' => [ 512, 1536 ],
804 'tags' => ['core', 'embedding'],
805 ],
806 [
807 'model' => 'text-embedding-3-large',
808 'name' => 'Embedding 3-Large',
809 'family' => 'text-embedding',
810 'features' => ['embedding'],
811 'price' => 0.13,
812 'type' => 'token',
813 'unit' => 1 / 1000000,
814 'finetune' => false,
815 'dimensions' => [ 256, 1024, 3072 ],
816 'tags' => ['core', 'embedding'],
817 ],
818 [
819 'model' => 'text-embedding-ada-002',
820 'name' => 'Embedding Ada-002',
821 'family' => 'text-embedding',
822 'features' => ['embedding'],
823 'price' => 0.10,
824 'type' => 'token',
825 'unit' => 1 / 1000000,
826 'finetune' => false,
827 'dimensions' => [ 1536 ],
828 'tags' => ['core', 'embedding'],
829 ],
830 // Audio Models:
831 [
832 'model' => 'gpt-4o-transcribe',
833 'name' => 'GPT-4o Transcribe',
834 'family' => 'whisper',
835 'features' => ['speech-to-text'],
836 'price' => 0.006,
837 'type' => 'second',
838 'unit' => 1,
839 'finetune' => false,
840 'tags' => ['core', 'audio'],
841 ],
842 [
843 'model' => 'gpt-4o-mini-transcribe',
844 'name' => 'GPT-4o Mini Transcribe',
845 'family' => 'whisper',
846 'features' => ['speech-to-text'],
847 'price' => 0.003,
848 'type' => 'second',
849 'unit' => 1,
850 'finetune' => false,
851 'tags' => ['core', 'audio'],
852 ],
853 [
854 'model' => 'whisper-1',
855 'name' => 'Whisper',
856 'family' => 'whisper',
857 'features' => ['speech-to-text'],
858 'price' => 0.006,
859 'type' => 'second',
860 'unit' => 1,
861 'finetune' => false,
862 'tags' => ['core', 'audio'],
863 ],
864 /*
865 Depecated Models
866 */
867 [
868 'model' => 'gpt-4.5-preview',
869 'name' => 'GPT-4.5 (Preview)',
870 'family' => 'gpt4.5',
871 'features' => ['completion'],
872 'price' => [
873 'in' => 75.00,
874 'out' => 150.00,
875 ],
876 'type' => 'token',
877 'unit' => 1 / 1000000,
878 'maxCompletionTokens' => 16384,
879 'maxContextualTokens' => 128000,
880 'finetune' => false,
881 'tags' => ['core', 'chat', 'vision', 'functions', 'json', 'deprecated']
882 ],
883 [
884 'model' => 'dall-e',
885 'name' => 'DALL-E 2',
886 'family' => 'dall-e',
887 'features' => ['text-to-image'],
888 'resolutions' => [
889 [
890 'name' => '256x256',
891 'label' => '256x256',
892 'price' => 0.016
893 ],
894 [
895 'name' => '512x512',
896 'label' => '512x512',
897 'price' => 0.018
898 ],
899 [
900 'name' => '1024x1024',
901 'label' => '1024x1024',
902 'price' => 0.020
903 ]
904 ],
905 'type' => 'image',
906 'unit' => 1,
907 'finetune' => false,
908 'tags' => ['core', 'image', 'deprecated']
909 ],
910 // [
911 // "model" => "gpt-3.5-turbo-16k",
912 // "description" => "Offers 4 times the context length of gpt-3.5-turbo at twice the price.",
913 // "name" => "GPT-3.5 Turbo 16k",
914 // "family" => "turbo",
915 // "features" => ['completion'],
916 // "price" => [
917 // "in" => 30.00,
918 // "out" => 40.0,
919 // ],
920 // "type" => "token",
921 // "unit" => 1 / 1000000,
922 // "maxTokens" => 16385,
923 // "finetune" => false,
924 // "tags" => ['core', 'chat', '16k']
925 // ],
926 // [
927 // "model" => "gpt-3.5-turbo-instruct",
928 // "name" => "GPT-3.5 Turbo Instruct",
929 // "family" => "turbo-instruct",
930 // "features" => ['completion'],
931 // "price" => [
932 // "in" => 0.50,
933 // "out" => 2.00,
934 // ],
935 // "type" => "token",
936 // "unit" => 1 / 1000000,
937 // "finetune" => [
938 // "in" => 0.03,
939 // "out" => 0.06,
940 // ],
941 // "maxTokens" => 4096,
942 // "tags" => ['core', 'chat', '4k']
943 // ],
944 ] );
945
946 define( 'MWAI_ANTHROPIC_MODELS', [
947 [
948 'model' => 'claude-sonnet-4-5-20250929',
949 'name' => 'Claude Sonnet 4.5 (2025/09/29)',
950 'family' => 'claude-4',
951 'features' => ['completion'],
952 'price' => [
953 'in' => 3.00,
954 'out' => 15.00,
955 ],
956 'type' => 'token',
957 'unit' => 1 / 1000000,
958 'maxCompletionTokens' => 64000,
959 'maxContextualTokens' => 200000,
960 'finetune' => false,
961 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp'],
962 'tools' => ['code_interpreter', 'thinking']
963 ],
964 [
965 'model' => 'claude-sonnet-4-5',
966 'name' => 'Claude Sonnet 4.5',
967 'family' => 'claude-4',
968 'features' => ['completion'],
969 'price' => [
970 'in' => 3.00,
971 'out' => 15.00,
972 ],
973 'type' => 'token',
974 'unit' => 1 / 1000000,
975 'maxCompletionTokens' => 64000,
976 'maxContextualTokens' => 200000,
977 'finetune' => false,
978 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp', 'latest'],
979 'tools' => ['code_interpreter', 'thinking']
980 ],
981 [
982 'model' => 'claude-opus-4-1-20250805',
983 'name' => 'Claude Opus 4.1 (2025/08/05)',
984 'family' => 'claude-4',
985 'features' => ['completion'],
986 'price' => [
987 'in' => 15.00,
988 'out' => 75.00,
989 ],
990 'type' => 'token',
991 'unit' => 1 / 1000000,
992 'maxCompletionTokens' => 32000,
993 'maxContextualTokens' => 200000,
994 'finetune' => false,
995 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp'],
996 'tools' => ['code_interpreter', 'thinking']
997 ],
998 [
999 'model' => 'claude-opus-4-1',
1000 'name' => 'Claude Opus 4.1',
1001 'family' => 'claude-4',
1002 'features' => ['completion'],
1003 'price' => [
1004 'in' => 15.00,
1005 'out' => 75.00,
1006 ],
1007 'type' => 'token',
1008 'unit' => 1 / 1000000,
1009 'maxCompletionTokens' => 32000,
1010 'maxContextualTokens' => 200000,
1011 'finetune' => false,
1012 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp', 'latest'],
1013 'tools' => ['code_interpreter', 'thinking']
1014 ],
1015 [
1016 'model' => 'claude-opus-4-20250514',
1017 'name' => 'Claude Opus 4 (2025/05/14)',
1018 'family' => 'claude-4',
1019 'features' => ['completion'],
1020 'price' => [
1021 'in' => 15.00,
1022 'out' => 75.00,
1023 ],
1024 'type' => 'token',
1025 'unit' => 1 / 1000000,
1026 'maxCompletionTokens' => 32000,
1027 'maxContextualTokens' => 200000,
1028 'finetune' => false,
1029 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp'],
1030 'tools' => ['code_interpreter', 'thinking']
1031 ],
1032 [
1033 'model' => 'claude-opus-4-0',
1034 'name' => 'Claude Opus 4',
1035 'family' => 'claude-4',
1036 'features' => ['completion'],
1037 'price' => [
1038 'in' => 15.00,
1039 'out' => 75.00,
1040 ],
1041 'type' => 'token',
1042 'unit' => 1 / 1000000,
1043 'maxCompletionTokens' => 32000,
1044 'maxContextualTokens' => 200000,
1045 'finetune' => false,
1046 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp', 'latest'],
1047 'tools' => ['code_interpreter', 'thinking']
1048 ],
1049 [
1050 'model' => 'claude-sonnet-4-20250514',
1051 'name' => 'Claude Sonnet 4 (2025/05/14)',
1052 'family' => 'claude-4',
1053 'features' => ['completion'],
1054 'price' => [
1055 'in' => 3.00,
1056 'out' => 15.00,
1057 ],
1058 'type' => 'token',
1059 'unit' => 1 / 1000000,
1060 'maxCompletionTokens' => 64000,
1061 'maxContextualTokens' => 200000,
1062 'finetune' => false,
1063 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp'],
1064 'tools' => ['code_interpreter', 'thinking']
1065 ],
1066 [
1067 'model' => 'claude-sonnet-4-0',
1068 'name' => 'Claude Sonnet 4',
1069 'family' => 'claude-4',
1070 'features' => ['completion'],
1071 'price' => [
1072 'in' => 3.00,
1073 'out' => 15.00,
1074 ],
1075 'type' => 'token',
1076 'unit' => 1 / 1000000,
1077 'maxCompletionTokens' => 64000,
1078 'maxContextualTokens' => 200000,
1079 'finetune' => false,
1080 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp', 'latest'],
1081 'tools' => ['code_interpreter', 'thinking']
1082 ],
1083 [
1084 'model' => 'claude-haiku-4-5-20251001',
1085 'name' => 'Claude-4.5 Haiku (2025/10/01)',
1086 'family' => 'claude-4',
1087 'features' => ['completion'],
1088 'price' => [
1089 'in' => 1.00,
1090 'out' => 5.00,
1091 ],
1092 'type' => 'token',
1093 'unit' => 1 / 1000000,
1094 'maxCompletionTokens' => 64000,
1095 'maxContextualTokens' => 200000,
1096 'finetune' => false,
1097 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp'],
1098 'tools' => ['code_interpreter', 'thinking']
1099 ],
1100 [
1101 'model' => 'claude-haiku-4-5',
1102 'name' => 'Claude-4.5 Haiku',
1103 'family' => 'claude-4',
1104 'features' => ['completion'],
1105 'price' => [
1106 'in' => 1.00,
1107 'out' => 5.00,
1108 ],
1109 'type' => 'token',
1110 'unit' => 1 / 1000000,
1111 'maxCompletionTokens' => 64000,
1112 'maxContextualTokens' => 200000,
1113 'finetune' => false,
1114 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp', 'latest'],
1115 'tools' => ['code_interpreter', 'thinking']
1116 ],
1117 [
1118 'model' => 'claude-3-7-sonnet-latest',
1119 'name' => 'Claude-3.7 Sonnet',
1120 'family' => 'claude-3',
1121 'features' => ['completion'],
1122 'price' => [
1123 'in' => 3.00,
1124 'out' => 15.00,
1125 ],
1126 'type' => 'token',
1127 'unit' => 1 / 1000000,
1128 'maxCompletionTokens' => 64000,
1129 'maxContextualTokens' => 200000,
1130 'finetune' => false,
1131 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp'],
1132 'tools' => ['code_interpreter', 'thinking']
1133 ],
1134 [
1135 'model' => 'claude-3-5-sonnet-latest',
1136 'name' => 'Claude-3.5 Sonnet',
1137 'family' => 'claude-3',
1138 'features' => ['completion'],
1139 'price' => [
1140 'in' => 3.00,
1141 'out' => 15.00,
1142 ],
1143 'type' => 'token',
1144 'unit' => 1 / 1000000,
1145 'maxCompletionTokens' => 4096,
1146 'maxContextualTokens' => 200000,
1147 'finetune' => false,
1148 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'mcp']
1149 ],
1150 [
1151 'model' => 'claude-3-5-sonnet-20241022',
1152 'name' => 'Claude-3.5 Sonnet (2024/10/22)',
1153 'family' => 'claude-3',
1154 'features' => ['completion'],
1155 'price' => [
1156 'in' => 3.00,
1157 'out' => 15.00,
1158 ],
1159 'type' => 'token',
1160 'unit' => 1 / 1000000,
1161 'maxCompletionTokens' => 4096,
1162 'maxContextualTokens' => 200000,
1163 'finetune' => false,
1164 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'mcp']
1165 ],
1166 [
1167 'model' => 'claude-3-5-sonnet-20240620',
1168 'name' => 'Claude-3.5 Sonnet (2024/06/20)',
1169 'family' => 'claude-3',
1170 'features' => ['completion'],
1171 'price' => [
1172 'in' => 3.00,
1173 'out' => 15.00,
1174 ],
1175 'type' => 'token',
1176 'unit' => 1 / 1000000,
1177 'maxCompletionTokens' => 4096,
1178 'maxContextualTokens' => 200000,
1179 'finetune' => false,
1180 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'mcp']
1181 ],
1182 [
1183 'model' => 'claude-3-sonnet-20240229',
1184 'name' => 'Claude-3 Sonnet (2024/02/29)',
1185 'family' => 'claude-3',
1186 'features' => ['completion'],
1187 'price' => [
1188 'in' => 3.00,
1189 'out' => 15.00,
1190 ],
1191 'type' => 'token',
1192 'unit' => 1 / 1000000,
1193 'maxCompletionTokens' => 4096,
1194 'maxContextualTokens' => 200000,
1195 'finetune' => false,
1196 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'deprecated']
1197 ],
1198 [
1199 'model' => 'claude-3-opus-latest',
1200 'name' => 'Claude-3 Opus (Latest)',
1201 'family' => 'claude-3',
1202 'features' => ['completion'],
1203 'price' => [
1204 'in' => 15.00,
1205 'out' => 75.00,
1206 ],
1207 'type' => 'token',
1208 'unit' => 1 / 1000000,
1209 'maxCompletionTokens' => 4096,
1210 'maxContextualTokens' => 200000,
1211 'finetune' => false,
1212 'tags' => ['core', 'chat', 'vision', 'files', 'functions']
1213 ],
1214 [
1215 // TODO: Starting January 5, 2026 at 9AM PT, Anthropic is retiring and will no longer support Claude Opus 3 (claude-3-opus-20240229) on the API.
1216 'model' => 'claude-3-opus-20240229',
1217 'name' => 'Claude-3 Opus (2024/02/29)',
1218 'family' => 'claude-3',
1219 'features' => ['completion'],
1220 'price' => [
1221 'in' => 15.00,
1222 'out' => 75.00,
1223 ],
1224 'type' => 'token',
1225 'unit' => 1 / 1000000,
1226 'maxCompletionTokens' => 4096,
1227 'maxContextualTokens' => 200000,
1228 'finetune' => false,
1229 'tags' => ['core', 'chat', 'vision', 'files', 'functions']
1230 ],
1231 [
1232 'model' => 'claude-3-5-haiku-20241022',
1233 'name' => 'Claude-3.5 Haiku (2024/10/22)',
1234 'family' => 'claude-3',
1235 'features' => ['completion'],
1236 'price' => [
1237 'in' => 0.80,
1238 'out' => 4.00,
1239 ],
1240 'type' => 'token',
1241 'unit' => 1 / 1000000,
1242 'maxCompletionTokens' => 8192,
1243 'maxContextualTokens' => 200000,
1244 'finetune' => false,
1245 'tags' => ['core', 'chat', 'vision', 'files'],
1246 'tools' => ['code_interpreter']
1247 ],
1248 [
1249 'model' => 'claude-3-5-haiku-latest',
1250 'name' => 'Claude-3.5 Haiku',
1251 'family' => 'claude-3',
1252 'features' => ['completion'],
1253 'price' => [
1254 'in' => 0.80,
1255 'out' => 4.00,
1256 ],
1257 'type' => 'token',
1258 'unit' => 1 / 1000000,
1259 'maxCompletionTokens' => 8192,
1260 'maxContextualTokens' => 200000,
1261 'finetune' => false,
1262 'tags' => ['core', 'chat', 'vision', 'files', 'latest'],
1263 'tools' => ['code_interpreter']
1264 ],
1265 [
1266 'model' => 'claude-3-haiku-20240307',
1267 'name' => 'Claude-3 Haiku (2024/03/07)',
1268 'family' => 'claude-3',
1269 'features' => ['completion'],
1270 'price' => [
1271 'in' => 0.25,
1272 'out' => 1.25,
1273 ],
1274 'type' => 'token',
1275 'unit' => 1 / 1000000,
1276 'maxCompletionTokens' => 4096,
1277 'maxContextualTokens' => 200000,
1278 'finetune' => false,
1279 'tags' => ['core', 'chat', 'vision', 'files', 'functions']
1280 ]
1281 ] );
1282
1283 define( 'MWAI_PERPLEXITY_MODELS', [
1284 [
1285 'model' => 'sonar-pro',
1286 'name' => 'Sonar Pro',
1287 'family' => 'sonar',
1288 'features' => ['completion'],
1289 'price' => [
1290 'in' => 3.00,
1291 'out' => 15.00,
1292 'search' => 5.00,
1293 ],
1294 'type' => 'token',
1295 'unit' => 1 / 1000000,
1296 'searchUnit' => 1 / 1000,
1297 'maxCompletionTokens' => 8192,
1298 'maxContextualTokens' => 200000,
1299 'finetune' => false,
1300 'tags' => ['core', 'chat'],
1301 ],
1302 [
1303 'model' => 'sonar',
1304 'name' => 'Sonar',
1305 'family' => 'sonar',
1306 'features' => ['completion'],
1307 'price' => [
1308 'in' => 1.00,
1309 'out' => 1.00,
1310 'search' => 5.00,
1311 ],
1312 'type' => 'token',
1313 'unit' => 1 / 1000000,
1314 'searchUnit' => 1 / 1000,
1315 'maxCompletionTokens' => 4096,
1316 'maxContextualTokens' => 127000,
1317 'finetune' => false,
1318 'tags' => ['core', 'chat'],
1319 ],
1320 ] );
1321
1322 // Mistral AI Models
1323 // Models are fetched dynamically from the Mistral API
1324 define( 'MWAI_MISTRAL_MODELS', [] );
1325