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