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.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 1 year ago init.php 9 months ago models.php 10 months ago types.php 1 year ago
models.php
915 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', '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', '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', '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', 'responses', 'mcp'],
104 'tools' => ['web_search', 'image_generation', 'file_search', 'code_interpreter'],
105 'params' => [
106 'verbosity' => ['low', 'medium', 'high']
107 ]
108 ],
109 /*
110 GPT 4.1
111 Flagship GPT model for complex tasks
112 https://platform.openai.com/docs/models/gpt-4.1
113 */
114 [
115 'model' => 'gpt-4.1',
116 'name' => 'GPT-4.1',
117 'family' => 'gpt-4',
118 'features' => ['completion'],
119 'price' => [
120 'in' => 2.00,
121 'out' => 8.00,
122 ],
123 'type' => 'token',
124 'unit' => 1 / 1000000,
125 'maxCompletionTokens' => 32768,
126 'maxContextualTokens' => 1047576,
127 'finetune' => false,
128 'tags' => ['core', 'chat', 'vision', 'functions', 'json', 'finetune', 'responses', 'mcp'],
129 'tools' => ['web_search', 'image_generation', 'code_interpreter']
130 ],
131 /*
132 GPT-4.1 mini
133 Balanced for intelligence, speed, and cost
134 https://platform.openai.com/docs/models/gpt-4.1-mini
135 */
136 [
137 'model' => 'gpt-4.1-mini',
138 'name' => 'GPT-4.1 Mini',
139 'family' => 'gpt-4',
140 'features' => ['completion'],
141 'price' => [
142 'in' => 0.40,
143 'out' => 1.60,
144 ],
145 'type' => 'token',
146 'unit' => 1 / 1000000,
147 'maxCompletionTokens' => 32768,
148 'maxContextualTokens' => 1047576,
149 'finetune' => false,
150 'tags' => ['core', 'chat', 'vision', 'functions', 'json', 'finetune', 'responses', 'mcp'],
151 'tools' => ['web_search', 'image_generation', 'code_interpreter']
152 ],
153 /*
154 GPT-4.1 nano
155 Fastest, most cost-effective GPT-4.1 model
156 https://platform.openai.com/docs/models/gpt-4.1-nano
157 */
158 [
159 'model' => 'gpt-4.1-nano',
160 'name' => 'GPT-4.1 Nano',
161 'family' => 'gpt-4',
162 'features' => ['completion'],
163 'price' => [
164 'in' => 0.10,
165 'out' => 0.40,
166 ],
167 'type' => 'token',
168 'unit' => 1 / 1000000,
169 'maxCompletionTokens' => 32768,
170 'maxContextualTokens' => 1047576,
171 'finetune' => false,
172 'tags' => ['core', 'chat', 'vision', 'functions', 'json', 'finetune', 'responses', 'mcp'],
173 'tools' => ['image_generation']
174 ],
175 /*
176 GPT-4o
177 Fast, intelligent, flexible GPT model
178 https://platform.openai.com/docs/models/gpt-4o
179 */
180 [
181 'model' => 'gpt-4o',
182 'name' => 'GPT-4o',
183 'family' => 'gpt-4',
184 'features' => ['completion'],
185 'price' => [
186 'in' => 2.50,
187 'out' => 10.00,
188 ],
189 'type' => 'token',
190 'unit' => 1 / 1000000,
191 'maxCompletionTokens' => 16384,
192 'maxContextualTokens' => 128000,
193 'finetune' => false,
194 'tags' => ['core', 'chat', 'vision', 'functions', 'json', 'finetune', 'mcp', 'responses'],
195 'tools' => ['web_search', 'image_generation', 'code_interpreter']
196 ],
197 /*
198 GPT-4o mini
199 Fast, affordable small model for focused tasks
200 https://platform.openai.com/docs/models/gpt-4o-mini
201 */
202 [
203 'model' => 'gpt-4o-mini',
204 'name' => 'GPT-4o Mini',
205 'family' => 'gpt-4',
206 'features' => ['completion'],
207 'price' => [
208 'in' => 0.15,
209 'out' => 0.60,
210 ],
211 'type' => 'token',
212 'unit' => 1 / 1000000,
213 'maxCompletionTokens' => 16384,
214 'maxContextualTokens' => 128000,
215 'finetune' => [
216 'in' => 0.15,
217 'out' => 0.60,
218 'train' => 3.00
219 ],
220 'tags' => ['core', 'chat', 'vision', 'functions', 'json', 'finetune', 'mcp', 'responses'],
221 'tools' => ['web_search', 'image_generation', 'code_interpreter']
222 ],
223 /*
224 o1
225 High-intelligence reasoning mode
226 https://platform.openai.com/docs/models/o1
227 */
228 [
229 'model' => 'o1',
230 'name' => 'o1',
231 'family' => 'o1',
232 'features' => ['completion'],
233 'price' => [
234 'in' => 15.00,
235 'out' => 60.00,
236 ],
237 'type' => 'token',
238 'unit' => 1 / 1000000,
239 'maxCompletionTokens' => 100000,
240 'maxContextualTokens' => 200000,
241 'tags' => ['core', 'chat', 'o1-model', 'reasoning', 'mcp']
242 ],
243 [
244 'model' => 'o1-mini',
245 'name' => 'o1 Mini',
246 'family' => 'o1',
247 'features' => ['completion'],
248 'price' => [
249 'in' => 1.10,
250 'out' => 4.40,
251 ],
252 'type' => 'token',
253 'unit' => 1 / 1000000,
254 'maxCompletionTokens' => 65536,
255 'maxContextualTokens' => 128000,
256 'tags' => ['core', 'chat', 'o1-model', 'reasoning', 'mcp']
257 ],
258 /*
259 o3
260 Advanced reasoning model
261 https://platform.openai.com/docs/models/o3
262 */
263 [
264 'model' => 'o3',
265 'name' => 'o3',
266 'family' => 'o3',
267 'features' => ['completion'],
268 'price' => [
269 'in' => 15.00,
270 'out' => 60.00,
271 ],
272 'type' => 'token',
273 'unit' => 1 / 1000000,
274 'maxCompletionTokens' => 100000,
275 'maxContextualTokens' => 200000,
276 'tags' => ['core', 'chat', 'o1-model', 'reasoning', 'responses', 'mcp'],
277 'tools' => ['web_search', 'image_generation', 'code_interpreter']
278 ],
279 /*
280 o3-mini
281 Fast, flexible, intelligent reasoning model
282 https://platform.openai.com/docs/models/o3-mini
283 */
284 [
285 'model' => 'o3-mini',
286 'name' => 'o3 Mini',
287 'family' => 'o3',
288 'features' => ['completion'],
289 'price' => [
290 'in' => 1.10,
291 'out' => 4.40,
292 ],
293 'type' => 'token',
294 'unit' => 1 / 1000000,
295 'maxCompletionTokens' => 100000,
296 'maxContextualTokens' => 200000,
297 'tags' => ['core', 'chat', 'o1-model', 'reasoning', 'responses', 'mcp'],
298 'tools' => ['web_search', 'image_generation', 'code_interpreter']
299 ],
300 /*
301 GPT Realtime
302 Production-ready speech-to-speech model with MCP, image input, and SIP support
303 https://platform.openai.com/docs/models/gpt-realtime
304 */
305 [
306 'model' => 'gpt-realtime',
307 'name' => 'GPT Realtime',
308 'family' => 'realtime',
309 'features' => ['core', 'realtime', 'functions'],
310 'price' => [
311 'text' => [
312 'in' => 4.00,
313 'cache' => 0.40,
314 'out' => 16.00,
315 ],
316 'audio' => [
317 'in' => 32.00,
318 'cache' => 0.40,
319 'out' => 64.00,
320 ],
321 'image' => [
322 'in' => 5.00,
323 'cache' => 0.50,
324 ]
325 ],
326 'type' => 'token',
327 'unit' => 1 / 1000000,
328 'maxCompletionTokens' => 4096,
329 'maxContextualTokens' => 128000,
330 'finetune' => false,
331 'tags' => ['core', 'realtime', 'functions', 'vision', 'mcp']
332 ],
333 /*
334 GPT-4o Realtime
335 Model capable of realtime text and audio inputs and outputs
336 https://platform.openai.com/docs/models/gpt-4o-realtime-preview
337 */
338 [
339 'model' => 'gpt-4o-realtime-preview',
340 'name' => 'GPT-4o Realtime (Preview)',
341 'family' => 'realtime',
342 'features' => ['core', 'realtime', 'functions'],
343 'price' => [
344 'text' => [
345 'in' => 5.00,
346 'cache' => 2.50,
347 'out' => 20.00,
348 ],
349 'audio' => [
350 'in' => 40.00,
351 'cache' => 2.50,
352 'out' => 80.00,
353 ]
354 ],
355 'type' => 'token',
356 'unit' => 1 / 1000000,
357 'maxCompletionTokens' => 4096,
358 'maxContextualTokens' => 128000,
359 'finetune' => false,
360 'tags' => ['core', 'realtime', 'functions']
361 ],
362 /*
363 GPT-4o mini Realtime
364 Smaller realtime model for text and audio inputs and outputs
365 https://platform.openai.com/docs/models/gpt-4o-mini-realtime-preview
366 */
367 [
368 'model' => 'gpt-4o-mini-realtime-preview',
369 'name' => 'GPT-4o Mini Realtime (Preview)',
370 'family' => 'realtime',
371 'features' => ['core', 'realtime', 'functions'],
372 'price' => [
373 'text' => [
374 'in' => 0.60,
375 'cache' => 0.30,
376 'out' => 2.40,
377 ],
378 'audio' => [
379 'in' => 10.00,
380 'cache' => 0.30,
381 'out' => 20.00,
382 ]
383 ],
384 'type' => 'token',
385 'unit' => 1 / 1000000,
386 'maxCompletionTokens' => 4096,
387 'maxContextualTokens' => 128000,
388 'finetune' => false,
389 'tags' => ['core', 'realtime', 'functions']
390 ],
391 /*
392 GPT-4
393 An older high-intelligence GPT model
394 https://platform.openai.com/docs/models/gpt-4
395 */
396 [
397 'model' => 'gpt-4',
398 'name' => 'GPT-4',
399 'family' => 'gpt-4',
400 'features' => ['completion'],
401 'price' => [
402 'in' => 30.00,
403 'out' => 60.00,
404 ],
405 'type' => 'token',
406 'unit' => 1 / 1000000,
407 'maxCompletionTokens' => 8192,
408 'maxContextualTokens' => 8192,
409 'finetune' => false,
410 'tags' => ['core', 'chat', 'functions']
411 ],
412 /*
413 GPT-4 Turbo
414 An older high-intelligence GPT model
415 https://platform.openai.com/docs/models/gpt-4-turbo
416 */
417 [
418 'model' => 'gpt-4-turbo',
419 'name' => 'GPT-4 Turbo',
420 'family' => 'gpt-4',
421 'features' => ['completion'],
422 'price' => [
423 'in' => 10.00,
424 'out' => 30.00,
425 ],
426 'type' => 'token',
427 'unit' => 1 / 1000000,
428 'maxCompletionTokens' => 4096,
429 'maxContextualTokens' => 128000,
430 'finetune' => false,
431 'tags' => ['core', 'chat', 'vision', 'functions', 'json']
432 ],
433 /*
434 GPT-3.5 Turbo
435 Legacy GPT model for cheaper chat and non-chat tasks
436 https://platform.openai.com/docs/models/gpt-3.5-turbo
437 */
438 [
439 'model' => 'gpt-3.5-turbo',
440 'name' => 'GPT-3.5 Turbo',
441 'family' => 'gpt-3',
442 'features' => ['completion'],
443 'price' => [
444 'in' => 0.50,
445 'out' => 1.50,
446 ],
447 'type' => 'token',
448 'unit' => 1 / 1000000,
449 'maxCompletionTokens' => 4096,
450 'maxContextualTokens' => 16385,
451 'finetune' => [
452 'in' => 3.00,
453 'out' => 6.00,
454 'train' => 8.00
455 ],
456 'tags' => ['core', 'chat', '4k', 'finetune', 'functions']
457 ],
458 /*
459 DALL·E 3
460 Our latest image generation model
461 https://platform.openai.com/docs/models/dall-e-3
462 */
463 [
464 'model' => 'gpt-image-1',
465 'name' => 'GPT Image 1 (High)',
466 'family' => 'gpt-image',
467 'features' => ['text-to-image'],
468 'resolutions' => [
469 [
470 'name' => '1024x1024',
471 'label' => '1024x1024',
472 'price' => 0.167
473 ],
474 [
475 'name' => '1024x1536',
476 'label' => '1024x1536',
477 'price' => 0.25
478 ],
479 [
480 'name' => '1536x1024',
481 'label' => '1536x1024',
482 'price' => 0.25
483 ]
484 ],
485 'type' => 'image',
486 'unit' => 1,
487 'finetune' => false,
488 'tags' => ['core', 'image', 'image-edit', 'responses']
489 ],
490 [
491 'model' => 'dall-e-3',
492 'name' => 'DALL-E 3',
493 'family' => 'dall-e',
494 'features' => ['text-to-image'],
495 'resolutions' => [
496 [
497 'name' => '1024x1024',
498 'label' => '1024x1024',
499 'price' => 0.040
500 ],
501 [
502 'name' => '1024x1792',
503 'label' => '1024x1792',
504 'price' => 0.080
505 ],
506 [
507 'name' => '1792x1024',
508 'label' => '1792x1024',
509 'price' => 0.080
510 ]
511 ],
512 'type' => 'image',
513 'unit' => 1,
514 'finetune' => false,
515 'tags' => ['core', 'image']
516 ],
517 [
518 'model' => 'dall-e-3-hd',
519 'name' => 'DALL-E 3 (HD)',
520 'family' => 'dall-e',
521 'features' => ['text-to-image'],
522 'resolutions' => [
523 [
524 'name' => '1024x1024',
525 'label' => '1024x1024',
526 'price' => 0.080
527 ],
528 [
529 'name' => '1024x1792',
530 'label' => '1024x1792',
531 'price' => 0.120
532 ],
533 [
534 'name' => '1792x1024',
535 'label' => '1792x1024',
536 'price' => 0.120
537 ]
538 ],
539 'type' => 'image',
540 'unit' => 1,
541 'finetune' => false,
542 'tags' => ['core', 'image']
543 ],
544 // Embedding models:
545 [
546 'model' => 'text-embedding-3-small',
547 'name' => 'Embedding 3-Small',
548 'family' => 'text-embedding',
549 'features' => ['embedding'],
550 'price' => 0.02,
551 'type' => 'token',
552 'unit' => 1 / 1000000,
553 'finetune' => false,
554 'dimensions' => [ 512, 1536 ],
555 'tags' => ['core', 'embedding'],
556 ],
557 [
558 'model' => 'text-embedding-3-large',
559 'name' => 'Embedding 3-Large',
560 'family' => 'text-embedding',
561 'features' => ['embedding'],
562 'price' => 0.13,
563 'type' => 'token',
564 'unit' => 1 / 1000000,
565 'finetune' => false,
566 'dimensions' => [ 256, 1024, 3072 ],
567 'tags' => ['core', 'embedding'],
568 ],
569 [
570 'model' => 'text-embedding-ada-002',
571 'name' => 'Embedding Ada-002',
572 'family' => 'text-embedding',
573 'features' => ['embedding'],
574 'price' => 0.10,
575 'type' => 'token',
576 'unit' => 1 / 1000000,
577 'finetune' => false,
578 'dimensions' => [ 1536 ],
579 'tags' => ['core', 'embedding'],
580 ],
581 // Audio Models:
582 [
583 'model' => 'gpt-4o-transcribe',
584 'name' => 'GPT-4o Transcribe',
585 'family' => 'whisper',
586 'features' => ['speech-to-text'],
587 'price' => 0.006,
588 'type' => 'second',
589 'unit' => 1,
590 'finetune' => false,
591 'tags' => ['core', 'audio'],
592 ],
593 [
594 'model' => 'gpt-4o-mini-transcribe',
595 'name' => 'GPT-4o Mini Transcribe',
596 'family' => 'whisper',
597 'features' => ['speech-to-text'],
598 'price' => 0.003,
599 'type' => 'second',
600 'unit' => 1,
601 'finetune' => false,
602 'tags' => ['core', 'audio'],
603 ],
604 [
605 'model' => 'whisper-1',
606 'name' => 'Whisper',
607 'family' => 'whisper',
608 'features' => ['speech-to-text'],
609 'price' => 0.006,
610 'type' => 'second',
611 'unit' => 1,
612 'finetune' => false,
613 'tags' => ['core', 'audio'],
614 ],
615 /*
616 Depecated Models
617 */
618 [
619 'model' => 'gpt-4.5-preview',
620 'name' => 'GPT-4.5 (Preview)',
621 'family' => 'gpt4.5',
622 'features' => ['completion'],
623 'price' => [
624 'in' => 75.00,
625 'out' => 150.00,
626 ],
627 'type' => 'token',
628 'unit' => 1 / 1000000,
629 'maxCompletionTokens' => 16384,
630 'maxContextualTokens' => 128000,
631 'finetune' => false,
632 'tags' => ['core', 'chat', 'vision', 'functions', 'json', 'deprecated']
633 ],
634 [
635 'model' => 'dall-e',
636 'name' => 'DALL-E 2',
637 'family' => 'dall-e',
638 'features' => ['text-to-image'],
639 'resolutions' => [
640 [
641 'name' => '256x256',
642 'label' => '256x256',
643 'price' => 0.016
644 ],
645 [
646 'name' => '512x512',
647 'label' => '512x512',
648 'price' => 0.018
649 ],
650 [
651 'name' => '1024x1024',
652 'label' => '1024x1024',
653 'price' => 0.020
654 ]
655 ],
656 'type' => 'image',
657 'unit' => 1,
658 'finetune' => false,
659 'tags' => ['core', 'image', 'deprecated']
660 ],
661 // [
662 // "model" => "gpt-3.5-turbo-16k",
663 // "description" => "Offers 4 times the context length of gpt-3.5-turbo at twice the price.",
664 // "name" => "GPT-3.5 Turbo 16k",
665 // "family" => "turbo",
666 // "features" => ['completion'],
667 // "price" => [
668 // "in" => 30.00,
669 // "out" => 40.0,
670 // ],
671 // "type" => "token",
672 // "unit" => 1 / 1000000,
673 // "maxTokens" => 16385,
674 // "finetune" => false,
675 // "tags" => ['core', 'chat', '16k']
676 // ],
677 // [
678 // "model" => "gpt-3.5-turbo-instruct",
679 // "name" => "GPT-3.5 Turbo Instruct",
680 // "family" => "turbo-instruct",
681 // "features" => ['completion'],
682 // "price" => [
683 // "in" => 0.50,
684 // "out" => 2.00,
685 // ],
686 // "type" => "token",
687 // "unit" => 1 / 1000000,
688 // "finetune" => [
689 // "in" => 0.03,
690 // "out" => 0.06,
691 // ],
692 // "maxTokens" => 4096,
693 // "tags" => ['core', 'chat', '4k']
694 // ],
695 ] );
696
697 define( 'MWAI_ANTHROPIC_MODELS', [
698 [
699 'model' => 'claude-opus-4-20250514',
700 'name' => 'Claude-4 Opus (2025/05/14)',
701 'family' => 'claude-4',
702 'features' => ['completion'],
703 'price' => [
704 'in' => 15.00,
705 'out' => 75.00,
706 ],
707 'type' => 'token',
708 'unit' => 1 / 1000000,
709 'maxCompletionTokens' => 32000,
710 'maxContextualTokens' => 200000,
711 'finetune' => false,
712 'tags' => ['core', 'chat', 'vision', 'functions', 'reasoning', 'mcp']
713 ],
714 [
715 'model' => 'claude-sonnet-4-20250514',
716 'name' => 'Claude-4 Sonnet (2025/05/14)',
717 'family' => 'claude-4',
718 'features' => ['completion'],
719 'price' => [
720 'in' => 3.00,
721 'out' => 15.00,
722 ],
723 'type' => 'token',
724 'unit' => 1 / 1000000,
725 'maxCompletionTokens' => 64000,
726 'maxContextualTokens' => 200000,
727 'finetune' => false,
728 'tags' => ['core', 'chat', 'vision', 'functions', 'reasoning', 'mcp']
729 ],
730 [
731 'model' => 'claude-3-7-sonnet-latest',
732 'name' => 'Claude-3.7 Sonnet',
733 'family' => 'claude-3',
734 'features' => ['completion'],
735 'price' => [
736 'in' => 3.00,
737 'out' => 15.00,
738 ],
739 'type' => 'token',
740 'unit' => 1 / 1000000,
741 'maxCompletionTokens' => 64000,
742 'maxContextualTokens' => 200000,
743 'finetune' => false,
744 'tags' => ['core', 'chat', 'vision', 'functions', 'reasoning', 'mcp']
745 ],
746 [
747 'model' => 'claude-3-5-sonnet-latest',
748 'name' => 'Claude-3.5 Sonnet',
749 'family' => 'claude-3',
750 'features' => ['completion'],
751 'price' => [
752 'in' => 3.00,
753 'out' => 15.00,
754 ],
755 'type' => 'token',
756 'unit' => 1 / 1000000,
757 'maxCompletionTokens' => 4096,
758 'maxContextualTokens' => 200000,
759 'finetune' => false,
760 'tags' => ['core', 'chat', 'vision', 'functions', 'mcp']
761 ],
762 [
763 'model' => 'claude-3-5-sonnet-20241022',
764 'name' => 'Claude-3.5 Sonnet (2024/10/22)',
765 'family' => 'claude-3',
766 'features' => ['completion'],
767 'price' => [
768 'in' => 3.00,
769 'out' => 15.00,
770 ],
771 'type' => 'token',
772 'unit' => 1 / 1000000,
773 'maxCompletionTokens' => 4096,
774 'maxContextualTokens' => 200000,
775 'finetune' => false,
776 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'mcp']
777 ],
778 [
779 'model' => 'claude-3-5-sonnet-20240620',
780 'name' => 'Claude-3.5 Sonnet (2024/06/20)',
781 'family' => 'claude-3',
782 'features' => ['completion'],
783 'price' => [
784 'in' => 3.00,
785 'out' => 15.00,
786 ],
787 'type' => 'token',
788 'unit' => 1 / 1000000,
789 'maxCompletionTokens' => 4096,
790 'maxContextualTokens' => 200000,
791 'finetune' => false,
792 'tags' => ['core', 'chat', 'vision', 'functions', 'mcp']
793 ],
794 [
795 'model' => 'claude-3-sonnet-20240229',
796 'name' => 'Claude-3 Sonnet (2024/02/29)',
797 'family' => 'claude-3',
798 'features' => ['completion'],
799 'price' => [
800 'in' => 3.00,
801 'out' => 15.00,
802 ],
803 'type' => 'token',
804 'unit' => 1 / 1000000,
805 'maxCompletionTokens' => 4096,
806 'maxContextualTokens' => 200000,
807 'finetune' => false,
808 'tags' => ['core', 'chat', 'vision', 'functions', 'deprecated']
809 ],
810 [
811 'model' => 'claude-3-opus-latest',
812 'name' => 'Claude-3 Opus (Latest)',
813 'family' => 'claude-3',
814 'features' => ['completion'],
815 'price' => [
816 'in' => 15.00,
817 'out' => 75.00,
818 ],
819 'type' => 'token',
820 'unit' => 1 / 1000000,
821 'maxCompletionTokens' => 4096,
822 'maxContextualTokens' => 200000,
823 'finetune' => false,
824 'tags' => ['core', 'chat', 'vision', 'functions']
825 ],
826 [
827 // 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.
828 'model' => 'claude-3-opus-20240229',
829 'name' => 'Claude-3 Opus (2024/02/29)',
830 'family' => 'claude-3',
831 'features' => ['completion'],
832 'price' => [
833 'in' => 15.00,
834 'out' => 75.00,
835 ],
836 'type' => 'token',
837 'unit' => 1 / 1000000,
838 'maxCompletionTokens' => 4096,
839 'maxContextualTokens' => 200000,
840 'finetune' => false,
841 'tags' => ['core', 'chat', 'vision', 'functions']
842 ],
843 [
844 'model' => 'claude-3-5-haiku-20241022',
845 'name' => 'Claude-3.5 Haiku (2024/10/22)',
846 'family' => 'claude-3',
847 'features' => ['completion'],
848 'price' => [
849 'in' => 1.00,
850 'out' => 5.00,
851 ],
852 'type' => 'token',
853 'unit' => 1 / 1000000,
854 'maxCompletionTokens' => 8192,
855 'maxContextualTokens' => 200000,
856 'finetune' => false,
857 'tags' => ['core', 'chat']
858 ],
859 [
860 'model' => 'claude-3-haiku-20240307',
861 'name' => 'Claude-3 Haiku (2024/03/07)',
862 'family' => 'claude-3',
863 'features' => ['completion'],
864 'price' => [
865 'in' => 0.25,
866 'out' => 1.25,
867 ],
868 'type' => 'token',
869 'unit' => 1 / 1000000,
870 'maxCompletionTokens' => 4096,
871 'maxContextualTokens' => 200000,
872 'finetune' => false,
873 'tags' => ['core', 'chat', 'vision', 'functions']
874 ]
875 ] );
876
877 define( 'MWAI_PERPLEXITY_MODELS', [
878 [
879 'model' => 'sonar-pro',
880 'name' => 'Sonar Pro',
881 'family' => 'sonar',
882 'features' => ['completion'],
883 'price' => [
884 'in' => 3.00,
885 'out' => 15.00,
886 'search' => 5.00,
887 ],
888 'type' => 'token',
889 'unit' => 1 / 1000000,
890 'searchUnit' => 1 / 1000,
891 'maxCompletionTokens' => 8192,
892 'maxContextualTokens' => 200000,
893 'finetune' => false,
894 'tags' => ['core', 'chat'],
895 ],
896 [
897 'model' => 'sonar',
898 'name' => 'Sonar',
899 'family' => 'sonar',
900 'features' => ['completion'],
901 'price' => [
902 'in' => 1.00,
903 'out' => 1.00,
904 'search' => 5.00,
905 ],
906 'type' => 'token',
907 'unit' => 1 / 1000000,
908 'searchUnit' => 1 / 1000,
909 'maxCompletionTokens' => 4096,
910 'maxContextualTokens' => 127000,
911 'finetune' => false,
912 'tags' => ['core', 'chat'],
913 ],
914 ] );
915