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