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.6.83 0.1.4 1.6.84 0.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 1 year ago models.php 1 year ago
models.php
669 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" => "dall-e-3",
302 "name" => "DALL-E 3",
303 "family" => "dall-e",
304 "features" => ['text-to-image'],
305 "resolutions" => [
306 [
307 "name" => "1024x1024",
308 "label" => "1024x1024",
309 "price" => 0.040
310 ],
311 [
312 "name" => "1024x1792",
313 "label" => "1024x1792",
314 "price" => 0.080
315 ],
316 [
317 "name" => "1792x1024",
318 "label" => "1792x1024",
319 "price" => 0.080
320 ]
321 ],
322 "type" => "image",
323 "unit" => 1,
324 "finetune" => false,
325 "tags" => ['core', 'image']
326 ],
327 [
328 "model" => "dall-e-3-hd",
329 "name" => "DALL-E 3 (HD)",
330 "family" => "dall-e",
331 "features" => ['text-to-image'],
332 "resolutions" => [
333 [
334 "name" => "1024x1024",
335 "label" => "1024x1024",
336 "price" => 0.080
337 ],
338 [
339 "name" => "1024x1792",
340 "label" => "1024x1792",
341 "price" => 0.120
342 ],
343 [
344 "name" => "1792x1024",
345 "label" => "1792x1024",
346 "price" => 0.120
347 ]
348 ],
349 "type" => "image",
350 "unit" => 1,
351 "finetune" => false,
352 "tags" => ['core', 'image']
353 ],
354 // Embedding models:
355 [
356 "model" => "text-embedding-3-small",
357 "name" => "Embedding 3-Small",
358 "family" => "text-embedding",
359 "features" => ['embedding'],
360 "price" => 0.02,
361 "type" => "token",
362 "unit" => 1 / 1000000,
363 "finetune" => false,
364 "dimensions" => [ 512, 1536 ],
365 "tags" => ['core', 'embedding'],
366 ],
367 [
368 "model" => "text-embedding-3-large",
369 "name" => "Embedding 3-Large",
370 "family" => "text-embedding",
371 "features" => ['embedding'],
372 "price" => 0.13,
373 "type" => "token",
374 "unit" => 1 / 1000000,
375 "finetune" => false,
376 "dimensions" => [ 256, 1024, 3072 ],
377 "tags" => ['core', 'embedding'],
378 ],
379 [
380 "model" => "text-embedding-ada-002",
381 "name" => "Embedding Ada-002",
382 "family" => "text-embedding",
383 "features" => ['embedding'],
384 "price" => 0.10,
385 "type" => "token",
386 "unit" => 1 / 1000000,
387 "finetune" => false,
388 "dimensions" => [ 1536 ],
389 "tags" => ['core', 'embedding'],
390 ],
391 // Audio Models:
392 [
393 "model" => "whisper-1",
394 "name" => "Whisper",
395 "family" => "whisper",
396 "features" => ['speech-to-text'],
397 "price" => 0.006,
398 "type" => "second",
399 "unit" => 1,
400 "finetune" => false,
401 "tags" => ['core', 'audio'],
402 ],
403 /*
404 Depecated Models
405 */
406 [
407 "model" => "gpt-4.5-preview",
408 "name" => "GPT-4.5 (Preview)",
409 "family" => "gpt4.5",
410 "features" => ['completion'],
411 "price" => [
412 "in" => 75.00,
413 "out" => 150.00,
414 ],
415 "type" => "token",
416 "unit" => 1 / 1000000,
417 "maxCompletionTokens" => 16384,
418 "maxContextualTokens" => 128000,
419 "finetune" => false,
420 "tags" => ['core', 'chat', 'vision', 'functions', 'json', 'deprecated']
421 ],
422 [
423 "model" => "dall-e",
424 "name" => "DALL-E 2",
425 "family" => "dall-e",
426 "features" => ['text-to-image'],
427 "resolutions" => [
428 [
429 "name" => "256x256",
430 "label" => "256x256",
431 "price" => 0.016
432 ],
433 [
434 "name" => "512x512",
435 "label" => "512x512",
436 "price" => 0.018
437 ],
438 [
439 "name" => "1024x1024",
440 "label" => "1024x1024",
441 "price" => 0.020
442 ]
443 ],
444 "type" => "image",
445 "unit" => 1,
446 "finetune" => false,
447 "tags" => ['core', 'image', 'deprecated']
448 ],
449 // [
450 // "model" => "gpt-3.5-turbo-16k",
451 // "description" => "Offers 4 times the context length of gpt-3.5-turbo at twice the price.",
452 // "name" => "GPT-3.5 Turbo 16k",
453 // "family" => "turbo",
454 // "features" => ['completion'],
455 // "price" => [
456 // "in" => 30.00,
457 // "out" => 40.0,
458 // ],
459 // "type" => "token",
460 // "unit" => 1 / 1000000,
461 // "maxTokens" => 16385,
462 // "finetune" => false,
463 // "tags" => ['core', 'chat', '16k']
464 // ],
465 // [
466 // "model" => "gpt-3.5-turbo-instruct",
467 // "name" => "GPT-3.5 Turbo Instruct",
468 // "family" => "turbo-instruct",
469 // "features" => ['completion'],
470 // "price" => [
471 // "in" => 0.50,
472 // "out" => 2.00,
473 // ],
474 // "type" => "token",
475 // "unit" => 1 / 1000000,
476 // "finetune" => [
477 // "in" => 0.03,
478 // "out" => 0.06,
479 // ],
480 // "maxTokens" => 4096,
481 // "tags" => ['core', 'chat', '4k']
482 // ],
483 ]);
484
485 define ( 'MWAI_ANTHROPIC_MODELS', [
486 [
487 "model" => "claude-3-7-sonnet-latest",
488 "name" => "Claude-3.7 Sonnet (Latest)",
489 "family" => "claude",
490 "features" => ['completion'],
491 "price" => [
492 "in" => 3.00,
493 "out" => 15.00,
494 ],
495 "type" => "token",
496 "unit" => 1 / 1000000,
497 "maxCompletionTokens" => 64000,
498 "maxContextualTokens" => 200000,
499 "finetune" => false,
500 "tags" => ['core', 'chat', 'vision', 'functions', 'reasoning']
501 ],
502 [
503 "model" => "claude-3-5-sonnet-latest",
504 "name" => "Claude-3.5 Sonnet (Latest)",
505 "family" => "claude",
506 "features" => ['completion'],
507 "price" => [
508 "in" => 3.00,
509 "out" => 15.00,
510 ],
511 "type" => "token",
512 "unit" => 1 / 1000000,
513 "maxCompletionTokens" => 4096,
514 "maxContextualTokens" => 200000,
515 "finetune" => false,
516 "tags" => ['core', 'chat', 'vision', 'functions']
517 ],
518 [
519 "model" => "claude-3-5-sonnet-20241022",
520 "name" => "Claude-3.5 Sonnet (2024/10/22)",
521 "family" => "claude",
522 "features" => ['completion'],
523 "price" => [
524 "in" => 3.00,
525 "out" => 15.00,
526 ],
527 "type" => "token",
528 "unit" => 1 / 1000000,
529 "maxCompletionTokens" => 4096,
530 "maxContextualTokens" => 200000,
531 "finetune" => false,
532 "tags" => ['core', 'chat', 'vision', 'files', 'functions']
533 ],
534 [
535 "model" => "claude-3-5-sonnet-20240620",
536 "name" => "Claude-3.5 Sonnet (2024/06/20)",
537 "family" => "claude",
538 "features" => ['completion'],
539 "price" => [
540 "in" => 3.00,
541 "out" => 15.00,
542 ],
543 "type" => "token",
544 "unit" => 1 / 1000000,
545 "maxCompletionTokens" => 4096,
546 "maxContextualTokens" => 200000,
547 "finetune" => false,
548 "tags" => ['core', 'chat', 'vision', 'functions']
549 ],
550 [
551 "model" => "claude-3-sonnet-20240229",
552 "name" => "Claude-3 Sonnet (2024/02/29)",
553 "family" => "claude",
554 "features" => ['completion'],
555 "price" => [
556 "in" => 3.00,
557 "out" => 15.00,
558 ],
559 "type" => "token",
560 "unit" => 1 / 1000000,
561 "maxCompletionTokens" => 4096,
562 "maxContextualTokens" => 200000,
563 "finetune" => false,
564 "tags" => ['core', 'chat', 'vision', 'functions', 'deprecated']
565 ],
566 [
567 "model" => "claude-3-opus-latest",
568 "name" => "Claude-3 Opus (Latest)",
569 "family" => "claude",
570 "features" => ['completion'],
571 "price" => [
572 "in" => 15.00,
573 "out" => 75.00,
574 ],
575 "type" => "token",
576 "unit" => 1 / 1000000,
577 "maxCompletionTokens" => 4096,
578 "maxContextualTokens" => 200000,
579 "finetune" => false,
580 "tags" => ['core', 'chat', 'vision', 'functions']
581 ],
582 [
583 "model" => "claude-3-opus-20240229",
584 "name" => "Claude-3 Opus (2024/02/29)",
585 "family" => "claude",
586 "features" => ['completion'],
587 "price" => [
588 "in" => 15.00,
589 "out" => 75.00,
590 ],
591 "type" => "token",
592 "unit" => 1 / 1000000,
593 "maxCompletionTokens" => 4096,
594 "maxContextualTokens" => 200000,
595 "finetune" => false,
596 "tags" => ['core', 'chat', 'vision', 'functions']
597 ],
598 [
599 "model" => "claude-3-5-haiku-20241022",
600 "name" => "Claude-3.5 Haiku (2024/10/22)",
601 "family" => "claude",
602 "features" => ['completion'],
603 "price" => [
604 "in" => 1.00,
605 "out" => 5.00,
606 ],
607 "type" => "token",
608 "unit" => 1 / 1000000,
609 "maxCompletionTokens" => 8192,
610 "maxContextualTokens" => 200000,
611 "finetune" => false,
612 "tags" => ['core', 'chat']
613 ],
614 [
615 "model" => "claude-3-haiku-20240307",
616 "name" => "Claude-3 Haiku (2024/03/07)",
617 "family" => "claude",
618 "features" => ['completion'],
619 "price" => [
620 "in" => 0.25,
621 "out" => 1.25,
622 ],
623 "type" => "token",
624 "unit" => 1 / 1000000,
625 "maxCompletionTokens" => 4096,
626 "maxContextualTokens" => 200000,
627 "finetune" => false,
628 "tags" => ['core', 'chat', 'vision', 'functions']
629 ]
630 ]);
631
632 define('MWAI_PERPLEXITY_MODELS', [
633 [
634 "model" => "sonar-pro",
635 "name" => "Sonar Pro",
636 "family" => "sonar",
637 "features" => ['completion'],
638 "price" => [
639 "in" => 3.00,
640 "out" => 15.00,
641 "search" => 5.00,
642 ],
643 "type" => "token",
644 "unit" => 1 / 1000000,
645 "searchUnit" => 1 / 1000,
646 "maxCompletionTokens" => 8192,
647 "maxContextualTokens" => 200000,
648 "finetune" => false,
649 "tags" => ['core', 'chat'],
650 ],
651 [
652 "model" => "sonar",
653 "name" => "Sonar",
654 "family" => "sonar",
655 "features" => ['completion'],
656 "price" => [
657 "in" => 1.00,
658 "out" => 1.00,
659 "search" => 5.00,
660 ],
661 "type" => "token",
662 "unit" => 1 / 1000000,
663 "searchUnit" => 1 / 1000,
664 "maxCompletionTokens" => 4096,
665 "maxContextualTokens" => 127000,
666 "finetune" => false,
667 "tags" => ['core', 'chat'],
668 ],
669 ]);