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