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