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