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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 7 months ago init.php 7 months ago models.php 6 months ago types.php 1 year ago
models.php
1322 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.2
8 The best model for coding and agentic tasks across industries
9 https://platform.openai.com/docs/models/gpt-5.2
10 */
11 [
12 'model' => 'gpt-5.2',
13 'name' => 'GPT-5.2',
14 'family' => 'gpt-5',
15 'features' => ['completion'],
16 'price' => [
17 'in' => 1.75,
18 'out' => 14.00,
19 ],
20 'type' => 'token',
21 'unit' => 1 / 1000000,
22 'maxCompletionTokens' => 128000,
23 'maxContextualTokens' => 400000,
24 'finetune' => false,
25 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'json', 'responses', 'mcp', 'reasoning', 'verbosity'],
26 'tools' => ['web_search', 'image_generation', 'file_search', 'code_interpreter'],
27 'params' => [
28 'reasoning' => ['none', 'low', 'medium', 'high', 'xhigh'],
29 'verbosity' => ['low', 'medium', 'high']
30 ]
31 ],
32 /*
33 GPT-5.2 Chat
34 GPT-5.2 model used in ChatGPT
35 https://platform.openai.com/docs/models/gpt-5.2
36 */
37 [
38 'model' => 'gpt-5.2-chat-latest',
39 'name' => 'GPT-5.2 Chat',
40 'family' => 'gpt-5',
41 'features' => ['completion'],
42 'price' => [
43 'in' => 1.75,
44 'out' => 14.00,
45 ],
46 'type' => 'token',
47 'unit' => 1 / 1000000,
48 'maxCompletionTokens' => 128000,
49 'maxContextualTokens' => 400000,
50 'finetune' => false,
51 'tags' => ['core', 'chat', 'vision', 'files', 'responses', 'mcp'],
52 'tools' => ['web_search', 'file_search', 'code_interpreter']
53 ],
54 /*
55 GPT-5.2 Pro
56 Version of GPT-5.2 that produces smarter and more precise responses
57 https://platform.openai.com/docs/models/gpt-5.2-pro
58 */
59 [
60 'model' => 'gpt-5.2-pro',
61 'name' => 'GPT-5.2 Pro',
62 'family' => 'gpt-5',
63 'features' => ['completion'],
64 'price' => [
65 'in' => 21.00,
66 'out' => 168.00,
67 ],
68 'type' => 'token',
69 'unit' => 1 / 1000000,
70 'maxCompletionTokens' => 128000,
71 'maxContextualTokens' => 400000,
72 'finetune' => false,
73 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'json', 'responses', 'mcp', 'reasoning', 'verbosity'],
74 'tools' => ['web_search', 'image_generation', 'file_search', 'code_interpreter'],
75 'params' => [
76 'reasoning' => ['medium', 'high', 'xhigh'],
77 'verbosity' => ['low', 'medium', 'high']
78 ]
79 ],
80 /*
81 GPT-5.1
82 Demo model with enhanced capabilities
83 https://platform.openai.com/docs/models/gpt-5.1
84 */
85 [
86 'model' => 'gpt-5.1',
87 'name' => 'GPT-5.1',
88 'family' => 'gpt-5',
89 'features' => ['completion'],
90 'price' => [
91 'in' => 1.25,
92 'out' => 10.00,
93 ],
94 'type' => 'token',
95 'unit' => 1 / 1000000,
96 'maxCompletionTokens' => 128000,
97 'maxContextualTokens' => 400000,
98 'finetune' => false,
99 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'json', 'responses', 'mcp', 'reasoning', 'verbosity'],
100 'tools' => ['web_search', 'image_generation', 'file_search', 'code_interpreter'],
101 'params' => [
102 'reasoning' => ['none', 'minimal', 'low', 'medium', 'high'],
103 'verbosity' => ['low', 'medium', 'high']
104 ]
105 ],
106 /*
107 GPT-5
108 The best model for coding and agentic tasks across domains
109 https://platform.openai.com/docs/models/gpt-5
110 */
111 [
112 'model' => 'gpt-5',
113 'name' => 'GPT-5',
114 'family' => 'gpt-5',
115 'features' => ['completion'],
116 'price' => [
117 'in' => 1.25,
118 'out' => 10.00,
119 ],
120 'type' => 'token',
121 'unit' => 1 / 1000000,
122 'maxCompletionTokens' => 128000,
123 'maxContextualTokens' => 400000,
124 'finetune' => false,
125 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'json', 'responses', 'mcp', 'reasoning', 'verbosity'],
126 'tools' => ['web_search', 'image_generation', 'file_search', 'code_interpreter'],
127 'params' => [
128 'reasoning' => ['none', 'minimal', 'low', 'medium', 'high'],
129 'verbosity' => ['low', 'medium', 'high']
130 ]
131 ],
132 /*
133 GPT-5 Mini
134 Efficient and cost-effective GPT-5 variant
135 https://platform.openai.com/docs/models/gpt-5-mini
136 */
137 [
138 'model' => 'gpt-5-mini',
139 'name' => 'GPT-5 Mini',
140 'family' => 'gpt-5',
141 'features' => ['completion'],
142 'price' => [
143 'in' => 0.25,
144 'out' => 2.00,
145 ],
146 'type' => 'token',
147 'unit' => 1 / 1000000,
148 'maxCompletionTokens' => 128000,
149 'maxContextualTokens' => 400000,
150 'finetune' => false,
151 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'json', 'responses', 'mcp', 'reasoning', 'verbosity'],
152 'tools' => ['web_search', 'image_generation', 'file_search', 'code_interpreter'],
153 'params' => [
154 'reasoning' => ['none', 'minimal', 'low', 'medium', 'high'],
155 'verbosity' => ['low', 'medium', 'high']
156 ]
157 ],
158 /*
159 GPT-5 Nano
160 Ultra-fast and lightweight GPT-5 model
161 https://platform.openai.com/docs/models/gpt-5-nano
162 */
163 [
164 'model' => 'gpt-5-nano',
165 'name' => 'GPT-5 Nano',
166 'family' => 'gpt-5',
167 'features' => ['completion'],
168 'price' => [
169 'in' => 0.05,
170 'out' => 0.40,
171 ],
172 'type' => 'token',
173 'unit' => 1 / 1000000,
174 'maxCompletionTokens' => 128000,
175 'maxContextualTokens' => 400000,
176 'finetune' => false,
177 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'json', 'responses', 'mcp', 'reasoning', 'verbosity'],
178 'tools' => ['web_search', 'image_generation', 'file_search', 'code_interpreter'],
179 'params' => [
180 'reasoning' => ['none', 'minimal', 'low', 'medium', 'high'],
181 'verbosity' => ['low', 'medium', 'high']
182 ]
183 ],
184 /*
185 GPT-5 Chat
186 GPT-5 model used in ChatGPT
187 https://platform.openai.com/docs/models/gpt-5
188 */
189 [
190 'model' => 'gpt-5-chat-latest',
191 'name' => 'GPT-5 Chat',
192 'family' => 'gpt-5',
193 'features' => ['completion'],
194 'price' => [
195 'in' => 1.25,
196 'out' => 10.00,
197 ],
198 'type' => 'token',
199 'unit' => 1 / 1000000,
200 'maxCompletionTokens' => 16384,
201 'maxContextualTokens' => 128000,
202 'finetune' => false,
203 'tags' => ['core', 'chat', 'vision', 'files', 'responses', 'mcp'],
204 'tools' => ['web_search', 'file_search', 'code_interpreter'],
205 'params' => [
206 'verbosity' => ['low', 'medium', 'high']
207 ]
208 ],
209 /*
210 GPT-5 Pro
211 Version of GPT-5 that produces smarter and more precise responses
212 https://platform.openai.com/docs/models/gpt-5
213 */
214 [
215 'model' => 'gpt-5-pro',
216 'name' => 'GPT-5 Pro',
217 'family' => 'gpt-5',
218 'features' => ['completion'],
219 'price' => [
220 'in' => 15.00,
221 'out' => 120.00,
222 ],
223 'type' => 'token',
224 'unit' => 1 / 1000000,
225 'maxCompletionTokens' => 272000,
226 'maxContextualTokens' => 400000,
227 'finetune' => false,
228 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'json', 'responses', 'mcp', 'reasoning', 'verbosity'],
229 'tools' => ['web_search', 'image_generation', 'file_search', 'code_interpreter'],
230 'params' => [
231 'reasoning' => ['none', 'minimal', 'low', 'medium', 'high'],
232 'verbosity' => ['low', 'medium', 'high']
233 ]
234 ],
235 /*
236 GPT 4.1
237 Flagship GPT model for complex tasks
238 https://platform.openai.com/docs/models/gpt-4.1
239 */
240 [
241 'model' => 'gpt-4.1',
242 'name' => 'GPT-4.1',
243 'family' => 'gpt-4',
244 'features' => ['completion'],
245 'price' => [
246 'in' => 2.00,
247 'out' => 8.00,
248 ],
249 'type' => 'token',
250 'unit' => 1 / 1000000,
251 'maxCompletionTokens' => 32768,
252 'maxContextualTokens' => 1047576,
253 'finetune' => false,
254 'tags' => ['core', 'chat', 'vision', 'functions', 'json', 'finetune', 'responses', 'mcp'],
255 'tools' => ['web_search', 'image_generation', 'code_interpreter']
256 ],
257 /*
258 GPT-4.1 mini
259 Balanced for intelligence, speed, and cost
260 https://platform.openai.com/docs/models/gpt-4.1-mini
261 */
262 [
263 'model' => 'gpt-4.1-mini',
264 'name' => 'GPT-4.1 Mini',
265 'family' => 'gpt-4',
266 'features' => ['completion'],
267 'price' => [
268 'in' => 0.40,
269 'out' => 1.60,
270 ],
271 'type' => 'token',
272 'unit' => 1 / 1000000,
273 'maxCompletionTokens' => 32768,
274 'maxContextualTokens' => 1047576,
275 'finetune' => false,
276 'tags' => ['core', 'chat', 'vision', 'functions', 'json', 'finetune', 'responses', 'mcp'],
277 'tools' => ['web_search', 'image_generation', 'code_interpreter']
278 ],
279 /*
280 GPT-4.1 nano
281 Fastest, most cost-effective GPT-4.1 model
282 https://platform.openai.com/docs/models/gpt-4.1-nano
283 */
284 [
285 'model' => 'gpt-4.1-nano',
286 'name' => 'GPT-4.1 Nano',
287 'family' => 'gpt-4',
288 'features' => ['completion'],
289 'price' => [
290 'in' => 0.10,
291 'out' => 0.40,
292 ],
293 'type' => 'token',
294 'unit' => 1 / 1000000,
295 'maxCompletionTokens' => 32768,
296 'maxContextualTokens' => 1047576,
297 'finetune' => false,
298 'tags' => ['core', 'chat', 'vision', 'functions', 'json', 'finetune', 'responses', 'mcp'],
299 'tools' => ['image_generation']
300 ],
301 /*
302 GPT-4o
303 Fast, intelligent, flexible GPT model
304 https://platform.openai.com/docs/models/gpt-4o
305 */
306 [
307 'model' => 'gpt-4o',
308 'name' => 'GPT-4o',
309 'family' => 'gpt-4',
310 'features' => ['completion'],
311 'price' => [
312 'in' => 2.50,
313 'out' => 10.00,
314 ],
315 'type' => 'token',
316 'unit' => 1 / 1000000,
317 'maxCompletionTokens' => 16384,
318 'maxContextualTokens' => 128000,
319 'finetune' => false,
320 'tags' => ['core', 'chat', 'vision', 'functions', 'json', 'finetune', 'mcp', 'responses'],
321 'tools' => ['web_search', 'image_generation', 'code_interpreter']
322 ],
323 /*
324 GPT-4o mini
325 Fast, affordable small model for focused tasks
326 https://platform.openai.com/docs/models/gpt-4o-mini
327 */
328 [
329 'model' => 'gpt-4o-mini',
330 'name' => 'GPT-4o Mini',
331 'family' => 'gpt-4',
332 'features' => ['completion'],
333 'price' => [
334 'in' => 0.15,
335 'out' => 0.60,
336 ],
337 'type' => 'token',
338 'unit' => 1 / 1000000,
339 'maxCompletionTokens' => 16384,
340 'maxContextualTokens' => 128000,
341 'finetune' => [
342 'in' => 0.15,
343 'out' => 0.60,
344 'train' => 3.00
345 ],
346 'tags' => ['core', 'chat', 'vision', 'functions', 'json', 'finetune', 'mcp', 'responses'],
347 'tools' => ['web_search', 'image_generation', 'code_interpreter']
348 ],
349 /*
350 o1
351 High-intelligence reasoning mode
352 https://platform.openai.com/docs/models/o1
353 */
354 [
355 'model' => 'o1',
356 'name' => 'o1',
357 'family' => 'o1',
358 'features' => ['completion'],
359 'price' => [
360 'in' => 15.00,
361 'out' => 60.00,
362 ],
363 'type' => 'token',
364 'unit' => 1 / 1000000,
365 'maxCompletionTokens' => 100000,
366 'maxContextualTokens' => 200000,
367 'tags' => ['core', 'chat', 'o1-model', 'reasoning', 'mcp']
368 ],
369 [
370 'model' => 'o1-mini',
371 'name' => 'o1 Mini',
372 'family' => 'o1',
373 'features' => ['completion'],
374 'price' => [
375 'in' => 1.10,
376 'out' => 4.40,
377 ],
378 'type' => 'token',
379 'unit' => 1 / 1000000,
380 'maxCompletionTokens' => 65536,
381 'maxContextualTokens' => 128000,
382 'tags' => ['core', 'chat', 'o1-model', 'reasoning', 'mcp']
383 ],
384 /*
385 o3
386 Advanced reasoning model
387 https://platform.openai.com/docs/models/o3
388 */
389 [
390 'model' => 'o3',
391 'name' => 'o3',
392 'family' => 'o3',
393 'features' => ['completion'],
394 'price' => [
395 'in' => 15.00,
396 'out' => 60.00,
397 ],
398 'type' => 'token',
399 'unit' => 1 / 1000000,
400 'maxCompletionTokens' => 100000,
401 'maxContextualTokens' => 200000,
402 'tags' => ['core', 'chat', 'o1-model', 'reasoning', 'responses', 'mcp'],
403 'tools' => ['web_search', 'image_generation', 'code_interpreter']
404 ],
405 /*
406 o3-mini
407 Fast, flexible, intelligent reasoning model
408 https://platform.openai.com/docs/models/o3-mini
409 */
410 [
411 'model' => 'o3-mini',
412 'name' => 'o3 Mini',
413 'family' => 'o3',
414 'features' => ['completion'],
415 'price' => [
416 'in' => 1.10,
417 'out' => 4.40,
418 ],
419 'type' => 'token',
420 'unit' => 1 / 1000000,
421 'maxCompletionTokens' => 100000,
422 'maxContextualTokens' => 200000,
423 'tags' => ['core', 'chat', 'o1-model', 'reasoning', 'responses', 'mcp'],
424 'tools' => ['web_search', 'image_generation', 'code_interpreter']
425 ],
426 /*
427 GPT Realtime
428 Production-ready speech-to-speech model with MCP, image input, and SIP support
429 https://platform.openai.com/docs/models/gpt-realtime
430 */
431 [
432 'model' => 'gpt-realtime',
433 'name' => 'GPT Realtime',
434 'family' => 'realtime',
435 'features' => ['core', 'realtime', 'functions'],
436 'price' => [
437 'text' => [
438 'in' => 4.00,
439 'cache' => 0.40,
440 'out' => 16.00,
441 ],
442 'audio' => [
443 'in' => 32.00,
444 'cache' => 0.40,
445 'out' => 64.00,
446 ],
447 'image' => [
448 'in' => 5.00,
449 'cache' => 0.50,
450 ]
451 ],
452 'type' => 'token',
453 'unit' => 1 / 1000000,
454 'maxCompletionTokens' => 4096,
455 'maxContextualTokens' => 128000,
456 'finetune' => false,
457 'tags' => ['core', 'realtime', 'functions', 'vision', 'mcp']
458 ],
459 /*
460 GPT Realtime Mini
461 Cost-efficient version of GPT Realtime
462 https://platform.openai.com/docs/models/gpt-realtime-mini
463 */
464 [
465 'model' => 'gpt-realtime-mini',
466 'name' => 'GPT Realtime Mini',
467 'family' => 'realtime',
468 'features' => ['core', 'realtime', 'functions'],
469 'price' => [
470 'text' => [
471 'in' => 0.60,
472 'cache' => 0.06,
473 'out' => 2.40,
474 ],
475 'audio' => [
476 'in' => 10.00,
477 'cache' => 0.06,
478 'out' => 20.00,
479 ]
480 ],
481 'type' => 'token',
482 'unit' => 1 / 1000000,
483 'maxCompletionTokens' => 4096,
484 'maxContextualTokens' => 32000,
485 'finetune' => false,
486 'tags' => ['core', 'realtime', 'functions', 'vision']
487 ],
488 /*
489 GPT-4o Realtime
490 Model capable of realtime text and audio inputs and outputs
491 https://platform.openai.com/docs/models/gpt-4o-realtime-preview
492 */
493 [
494 'model' => 'gpt-4o-realtime-preview',
495 'name' => 'GPT-4o Realtime (Preview)',
496 'family' => 'realtime',
497 'features' => ['core', 'realtime', 'functions'],
498 'price' => [
499 'text' => [
500 'in' => 5.00,
501 'cache' => 2.50,
502 'out' => 20.00,
503 ],
504 'audio' => [
505 'in' => 40.00,
506 'cache' => 2.50,
507 'out' => 80.00,
508 ]
509 ],
510 'type' => 'token',
511 'unit' => 1 / 1000000,
512 'maxCompletionTokens' => 4096,
513 'maxContextualTokens' => 128000,
514 'finetune' => false,
515 'tags' => ['core', 'realtime', 'functions', 'vision']
516 ],
517 /*
518 GPT-4o mini Realtime
519 Smaller realtime model for text and audio inputs and outputs
520 https://platform.openai.com/docs/models/gpt-4o-mini-realtime-preview
521 */
522 [
523 'model' => 'gpt-4o-mini-realtime-preview',
524 'name' => 'GPT-4o Mini Realtime (Preview)',
525 'family' => 'realtime',
526 'features' => ['core', 'realtime', 'functions'],
527 'price' => [
528 'text' => [
529 'in' => 0.60,
530 'cache' => 0.30,
531 'out' => 2.40,
532 ],
533 'audio' => [
534 'in' => 10.00,
535 'cache' => 0.30,
536 'out' => 20.00,
537 ]
538 ],
539 'type' => 'token',
540 'unit' => 1 / 1000000,
541 'maxCompletionTokens' => 4096,
542 'maxContextualTokens' => 128000,
543 'finetune' => false,
544 'tags' => ['core', 'realtime', 'functions', 'vision']
545 ],
546 /*
547 GPT-4
548 An older high-intelligence GPT model
549 https://platform.openai.com/docs/models/gpt-4
550 */
551 [
552 'model' => 'gpt-4',
553 'name' => 'GPT-4',
554 'family' => 'gpt-4',
555 'features' => ['completion'],
556 'price' => [
557 'in' => 30.00,
558 'out' => 60.00,
559 ],
560 'type' => 'token',
561 'unit' => 1 / 1000000,
562 'maxCompletionTokens' => 8192,
563 'maxContextualTokens' => 8192,
564 'finetune' => false,
565 'tags' => ['core', 'chat', 'functions']
566 ],
567 /*
568 GPT-4 Turbo
569 An older high-intelligence GPT model
570 https://platform.openai.com/docs/models/gpt-4-turbo
571 */
572 [
573 'model' => 'gpt-4-turbo',
574 'name' => 'GPT-4 Turbo',
575 'family' => 'gpt-4',
576 'features' => ['completion'],
577 'price' => [
578 'in' => 10.00,
579 'out' => 30.00,
580 ],
581 'type' => 'token',
582 'unit' => 1 / 1000000,
583 'maxCompletionTokens' => 4096,
584 'maxContextualTokens' => 128000,
585 'finetune' => false,
586 'tags' => ['core', 'chat', 'vision', 'functions', 'json']
587 ],
588 /*
589 GPT-3.5 Turbo
590 Legacy GPT model for cheaper chat and non-chat tasks
591 https://platform.openai.com/docs/models/gpt-3.5-turbo
592 */
593 [
594 'model' => 'gpt-3.5-turbo',
595 'name' => 'GPT-3.5 Turbo',
596 'family' => 'gpt-3',
597 'features' => ['completion'],
598 'price' => [
599 'in' => 0.50,
600 'out' => 1.50,
601 ],
602 'type' => 'token',
603 'unit' => 1 / 1000000,
604 'maxCompletionTokens' => 4096,
605 'maxContextualTokens' => 16385,
606 'finetune' => [
607 'in' => 3.00,
608 'out' => 6.00,
609 'train' => 8.00
610 ],
611 'tags' => ['core', 'chat', '4k', 'finetune', 'functions']
612 ],
613 /*
614 DALL·E 3
615 Our latest image generation model
616 https://platform.openai.com/docs/models/dall-e-3
617 */
618 [
619 'model' => 'gpt-image-1.5',
620 'name' => 'GPT Image 1.5',
621 'family' => 'gpt-image',
622 'features' => ['text-to-image'],
623 'resolutions' => [
624 [
625 'name' => '1024x1024',
626 'label' => '1024x1024'
627 ],
628 [
629 'name' => '1024x1536',
630 'label' => '1024x1536'
631 ],
632 [
633 'name' => '1536x1024',
634 'label' => '1536x1024'
635 ]
636 ],
637 'type' => 'token',
638 'mode' => 'image',
639 'price' => [
640 'in' => 8.00,
641 'out' => 32.00,
642 'cached' => 2.00
643 ],
644 'unit' => 1 / 1000000,
645 'finetune' => false,
646 'tags' => ['core', 'image', 'image-edit', 'responses']
647 ],
648 [
649 'model' => 'gpt-image-1',
650 'name' => 'GPT Image 1',
651 'family' => 'gpt-image',
652 'features' => ['text-to-image'],
653 'resolutions' => [
654 [
655 'name' => '1024x1024',
656 'label' => '1024x1024'
657 ],
658 [
659 'name' => '1024x1536',
660 'label' => '1024x1536'
661 ],
662 [
663 'name' => '1536x1024',
664 'label' => '1536x1024'
665 ]
666 ],
667 'type' => 'token',
668 'mode' => 'image',
669 'price' => [
670 'in' => 10.00,
671 'out' => 40.00,
672 'cached' => 2.50
673 ],
674 'unit' => 1 / 1000000,
675 'finetune' => false,
676 'tags' => ['core', 'image', 'image-edit', 'responses']
677 ],
678 [
679 'model' => 'gpt-image-1-mini',
680 'name' => 'GPT Image 1 Mini',
681 'family' => 'gpt-image',
682 'features' => ['text-to-image'],
683 'resolutions' => [
684 [
685 'name' => '1024x1024',
686 'label' => '1024x1024'
687 ],
688 [
689 'name' => '1024x1536',
690 'label' => '1024x1536'
691 ],
692 [
693 'name' => '1536x1024',
694 'label' => '1536x1024'
695 ]
696 ],
697 'type' => 'token',
698 'mode' => 'image',
699 'price' => [
700 'in' => 2.50,
701 'out' => 8.00,
702 'cached' => 0.25
703 ],
704 'unit' => 1 / 1000000,
705 'finetune' => false,
706 'tags' => ['core', 'image', 'image-edit', 'responses']
707 ],
708 [
709 'model' => 'dall-e-3',
710 'name' => 'DALL-E 3',
711 'family' => 'dall-e',
712 'features' => ['text-to-image'],
713 'resolutions' => [
714 [
715 'name' => '1024x1024',
716 'label' => '1024x1024',
717 'price' => 0.040
718 ],
719 [
720 'name' => '1024x1792',
721 'label' => '1024x1792',
722 'price' => 0.080
723 ],
724 [
725 'name' => '1792x1024',
726 'label' => '1792x1024',
727 'price' => 0.080
728 ]
729 ],
730 'type' => 'image',
731 'unit' => 1,
732 'finetune' => false,
733 'tags' => ['core', 'image']
734 ],
735 [
736 'model' => 'dall-e-3-hd',
737 'name' => 'DALL-E 3 (HD)',
738 'family' => 'dall-e',
739 'features' => ['text-to-image'],
740 'resolutions' => [
741 [
742 'name' => '1024x1024',
743 'label' => '1024x1024',
744 'price' => 0.080
745 ],
746 [
747 'name' => '1024x1792',
748 'label' => '1024x1792',
749 'price' => 0.120
750 ],
751 [
752 'name' => '1792x1024',
753 'label' => '1792x1024',
754 'price' => 0.120
755 ]
756 ],
757 'type' => 'image',
758 'unit' => 1,
759 'finetune' => false,
760 'tags' => ['core', 'image']
761 ],
762 /*
763 Sora 2
764 Flagship video generation with synced audio
765 https://platform.openai.com/docs/models/sora-2
766 */
767 [
768 'model' => 'sora-2',
769 'name' => 'Sora 2',
770 'family' => 'sora',
771 'features' => ['text-to-video'],
772 'resolutions' => [
773 [
774 'name' => '720x1280',
775 'label' => 'Portrait (720x1280)',
776 'price' => 0.10
777 ],
778 [
779 'name' => '1280x720',
780 'label' => 'Landscape (1280x720)',
781 'price' => 0.10
782 ]
783 ],
784 'durations' => [ 4, 8, 12 ],
785 'type' => 'video',
786 'unit' => 'second',
787 'finetune' => false,
788 'tags' => ['core', 'video']
789 ],
790 [
791 'model' => 'sora-2-pro',
792 'name' => 'Sora 2 Pro',
793 'family' => 'sora',
794 'features' => ['text-to-video'],
795 'resolutions' => [
796 [
797 'name' => '720x1280',
798 'label' => 'Portrait (720x1280)',
799 'price' => 0.30
800 ],
801 [
802 'name' => '1280x720',
803 'label' => 'Landscape (1280x720)',
804 'price' => 0.30
805 ],
806 [
807 'name' => '1024x1792',
808 'label' => 'Portrait High (1024x1792)',
809 'price' => 0.50
810 ],
811 [
812 'name' => '1792x1024',
813 'label' => 'Landscape High (1792x1024)',
814 'price' => 0.50
815 ]
816 ],
817 'durations' => [ 4, 8, 12 ],
818 'type' => 'video',
819 'unit' => 'second',
820 'finetune' => false,
821 'tags' => ['core', 'video']
822 ],
823 // Embedding models:
824 [
825 'model' => 'text-embedding-3-small',
826 'name' => 'Embedding 3-Small',
827 'family' => 'text-embedding',
828 'features' => ['embedding'],
829 'price' => 0.02,
830 'type' => 'token',
831 'unit' => 1 / 1000000,
832 'finetune' => false,
833 'dimensions' => [ 512, 1536 ],
834 'tags' => ['core', 'embedding'],
835 ],
836 [
837 'model' => 'text-embedding-3-large',
838 'name' => 'Embedding 3-Large',
839 'family' => 'text-embedding',
840 'features' => ['embedding'],
841 'price' => 0.13,
842 'type' => 'token',
843 'unit' => 1 / 1000000,
844 'finetune' => false,
845 'dimensions' => [ 256, 1024, 3072 ],
846 'tags' => ['core', 'embedding'],
847 ],
848 [
849 'model' => 'text-embedding-ada-002',
850 'name' => 'Embedding Ada-002',
851 'family' => 'text-embedding',
852 'features' => ['embedding'],
853 'price' => 0.10,
854 'type' => 'token',
855 'unit' => 1 / 1000000,
856 'finetune' => false,
857 'dimensions' => [ 1536 ],
858 'tags' => ['core', 'embedding'],
859 ],
860 // Audio Models:
861 [
862 'model' => 'gpt-4o-transcribe',
863 'name' => 'GPT-4o Transcribe',
864 'family' => 'whisper',
865 'features' => ['speech-to-text'],
866 'price' => 0.006,
867 'type' => 'second',
868 'unit' => 1,
869 'finetune' => false,
870 'tags' => ['core', 'audio'],
871 ],
872 [
873 'model' => 'gpt-4o-mini-transcribe',
874 'name' => 'GPT-4o Mini Transcribe',
875 'family' => 'whisper',
876 'features' => ['speech-to-text'],
877 'price' => 0.003,
878 'type' => 'second',
879 'unit' => 1,
880 'finetune' => false,
881 'tags' => ['core', 'audio'],
882 ],
883 [
884 'model' => 'whisper-1',
885 'name' => 'Whisper',
886 'family' => 'whisper',
887 'features' => ['speech-to-text'],
888 'price' => 0.006,
889 'type' => 'second',
890 'unit' => 1,
891 'finetune' => false,
892 'tags' => ['core', 'audio'],
893 ],
894 /*
895 Depecated Models
896 */
897 [
898 'model' => 'gpt-4.5-preview',
899 'name' => 'GPT-4.5 (Preview)',
900 'family' => 'gpt4.5',
901 'features' => ['completion'],
902 'price' => [
903 'in' => 75.00,
904 'out' => 150.00,
905 ],
906 'type' => 'token',
907 'unit' => 1 / 1000000,
908 'maxCompletionTokens' => 16384,
909 'maxContextualTokens' => 128000,
910 'finetune' => false,
911 'tags' => ['core', 'chat', 'vision', 'functions', 'json', 'deprecated']
912 ],
913 [
914 'model' => 'dall-e',
915 'name' => 'DALL-E 2',
916 'family' => 'dall-e',
917 'features' => ['text-to-image'],
918 'resolutions' => [
919 [
920 'name' => '256x256',
921 'label' => '256x256',
922 'price' => 0.016
923 ],
924 [
925 'name' => '512x512',
926 'label' => '512x512',
927 'price' => 0.018
928 ],
929 [
930 'name' => '1024x1024',
931 'label' => '1024x1024',
932 'price' => 0.020
933 ]
934 ],
935 'type' => 'image',
936 'unit' => 1,
937 'finetune' => false,
938 'tags' => ['core', 'image', 'deprecated']
939 ],
940 ] );
941
942 define( 'MWAI_ANTHROPIC_MODELS', [
943 [
944 'model' => 'claude-sonnet-4-5-20250929',
945 'name' => 'Claude Sonnet 4.5 (2025/09/29)',
946 'family' => 'claude-4',
947 'features' => ['completion'],
948 'price' => [
949 'in' => 3.00,
950 'out' => 15.00,
951 ],
952 'type' => 'token',
953 'unit' => 1 / 1000000,
954 'maxCompletionTokens' => 64000,
955 'maxContextualTokens' => 200000,
956 'finetune' => false,
957 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp'],
958 'tools' => ['code_interpreter', 'thinking']
959 ],
960 [
961 'model' => 'claude-sonnet-4-5',
962 'name' => 'Claude Sonnet 4.5',
963 'family' => 'claude-4',
964 'features' => ['completion'],
965 'price' => [
966 'in' => 3.00,
967 'out' => 15.00,
968 ],
969 'type' => 'token',
970 'unit' => 1 / 1000000,
971 'maxCompletionTokens' => 64000,
972 'maxContextualTokens' => 200000,
973 'finetune' => false,
974 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp', 'latest'],
975 'tools' => ['code_interpreter', 'thinking']
976 ],
977 [
978 'model' => 'claude-opus-4-1-20250805',
979 'name' => 'Claude Opus 4.1 (2025/08/05)',
980 'family' => 'claude-4',
981 'features' => ['completion'],
982 'price' => [
983 'in' => 15.00,
984 'out' => 75.00,
985 ],
986 'type' => 'token',
987 'unit' => 1 / 1000000,
988 'maxCompletionTokens' => 32000,
989 'maxContextualTokens' => 200000,
990 'finetune' => false,
991 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp'],
992 'tools' => ['code_interpreter', 'thinking']
993 ],
994 [
995 'model' => 'claude-opus-4-1',
996 'name' => 'Claude Opus 4.1',
997 'family' => 'claude-4',
998 'features' => ['completion'],
999 'price' => [
1000 'in' => 15.00,
1001 'out' => 75.00,
1002 ],
1003 'type' => 'token',
1004 'unit' => 1 / 1000000,
1005 'maxCompletionTokens' => 32000,
1006 'maxContextualTokens' => 200000,
1007 'finetune' => false,
1008 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp', 'latest'],
1009 'tools' => ['code_interpreter', 'thinking']
1010 ],
1011 [
1012 'model' => 'claude-opus-4-20250514',
1013 'name' => 'Claude Opus 4 (2025/05/14)',
1014 'family' => 'claude-4',
1015 'features' => ['completion'],
1016 'price' => [
1017 'in' => 15.00,
1018 'out' => 75.00,
1019 ],
1020 'type' => 'token',
1021 'unit' => 1 / 1000000,
1022 'maxCompletionTokens' => 32000,
1023 'maxContextualTokens' => 200000,
1024 'finetune' => false,
1025 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp'],
1026 'tools' => ['code_interpreter', 'thinking']
1027 ],
1028 [
1029 'model' => 'claude-opus-4-0',
1030 'name' => 'Claude Opus 4',
1031 'family' => 'claude-4',
1032 'features' => ['completion'],
1033 'price' => [
1034 'in' => 15.00,
1035 'out' => 75.00,
1036 ],
1037 'type' => 'token',
1038 'unit' => 1 / 1000000,
1039 'maxCompletionTokens' => 32000,
1040 'maxContextualTokens' => 200000,
1041 'finetune' => false,
1042 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp', 'latest'],
1043 'tools' => ['code_interpreter', 'thinking']
1044 ],
1045 [
1046 'model' => 'claude-sonnet-4-20250514',
1047 'name' => 'Claude Sonnet 4 (2025/05/14)',
1048 'family' => 'claude-4',
1049 'features' => ['completion'],
1050 'price' => [
1051 'in' => 3.00,
1052 'out' => 15.00,
1053 ],
1054 'type' => 'token',
1055 'unit' => 1 / 1000000,
1056 'maxCompletionTokens' => 64000,
1057 'maxContextualTokens' => 200000,
1058 'finetune' => false,
1059 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp'],
1060 'tools' => ['code_interpreter', 'thinking']
1061 ],
1062 [
1063 'model' => 'claude-sonnet-4-0',
1064 'name' => 'Claude Sonnet 4',
1065 'family' => 'claude-4',
1066 'features' => ['completion'],
1067 'price' => [
1068 'in' => 3.00,
1069 'out' => 15.00,
1070 ],
1071 'type' => 'token',
1072 'unit' => 1 / 1000000,
1073 'maxCompletionTokens' => 64000,
1074 'maxContextualTokens' => 200000,
1075 'finetune' => false,
1076 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp', 'latest'],
1077 'tools' => ['code_interpreter', 'thinking']
1078 ],
1079 [
1080 'model' => 'claude-haiku-4-5-20251001',
1081 'name' => 'Claude-4.5 Haiku (2025/10/01)',
1082 'family' => 'claude-4',
1083 'features' => ['completion'],
1084 'price' => [
1085 'in' => 1.00,
1086 'out' => 5.00,
1087 ],
1088 'type' => 'token',
1089 'unit' => 1 / 1000000,
1090 'maxCompletionTokens' => 64000,
1091 'maxContextualTokens' => 200000,
1092 'finetune' => false,
1093 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp'],
1094 'tools' => ['code_interpreter', 'thinking']
1095 ],
1096 [
1097 'model' => 'claude-haiku-4-5',
1098 'name' => 'Claude-4.5 Haiku',
1099 'family' => 'claude-4',
1100 'features' => ['completion'],
1101 'price' => [
1102 'in' => 1.00,
1103 'out' => 5.00,
1104 ],
1105 'type' => 'token',
1106 'unit' => 1 / 1000000,
1107 'maxCompletionTokens' => 64000,
1108 'maxContextualTokens' => 200000,
1109 'finetune' => false,
1110 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp', 'latest'],
1111 'tools' => ['code_interpreter', 'thinking']
1112 ],
1113 [
1114 'model' => 'claude-3-7-sonnet-latest',
1115 'name' => 'Claude-3.7 Sonnet',
1116 'family' => 'claude-3',
1117 'features' => ['completion'],
1118 'price' => [
1119 'in' => 3.00,
1120 'out' => 15.00,
1121 ],
1122 'type' => 'token',
1123 'unit' => 1 / 1000000,
1124 'maxCompletionTokens' => 64000,
1125 'maxContextualTokens' => 200000,
1126 'finetune' => false,
1127 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp'],
1128 'tools' => ['code_interpreter', 'thinking']
1129 ],
1130 [
1131 'model' => 'claude-3-5-sonnet-latest',
1132 'name' => 'Claude-3.5 Sonnet',
1133 'family' => 'claude-3',
1134 'features' => ['completion'],
1135 'price' => [
1136 'in' => 3.00,
1137 'out' => 15.00,
1138 ],
1139 'type' => 'token',
1140 'unit' => 1 / 1000000,
1141 'maxCompletionTokens' => 4096,
1142 'maxContextualTokens' => 200000,
1143 'finetune' => false,
1144 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'mcp']
1145 ],
1146 [
1147 'model' => 'claude-3-5-sonnet-20241022',
1148 'name' => 'Claude-3.5 Sonnet (2024/10/22)',
1149 'family' => 'claude-3',
1150 'features' => ['completion'],
1151 'price' => [
1152 'in' => 3.00,
1153 'out' => 15.00,
1154 ],
1155 'type' => 'token',
1156 'unit' => 1 / 1000000,
1157 'maxCompletionTokens' => 4096,
1158 'maxContextualTokens' => 200000,
1159 'finetune' => false,
1160 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'mcp']
1161 ],
1162 [
1163 'model' => 'claude-3-5-sonnet-20240620',
1164 'name' => 'Claude-3.5 Sonnet (2024/06/20)',
1165 'family' => 'claude-3',
1166 'features' => ['completion'],
1167 'price' => [
1168 'in' => 3.00,
1169 'out' => 15.00,
1170 ],
1171 'type' => 'token',
1172 'unit' => 1 / 1000000,
1173 'maxCompletionTokens' => 4096,
1174 'maxContextualTokens' => 200000,
1175 'finetune' => false,
1176 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'mcp']
1177 ],
1178 [
1179 'model' => 'claude-3-sonnet-20240229',
1180 'name' => 'Claude-3 Sonnet (2024/02/29)',
1181 'family' => 'claude-3',
1182 'features' => ['completion'],
1183 'price' => [
1184 'in' => 3.00,
1185 'out' => 15.00,
1186 ],
1187 'type' => 'token',
1188 'unit' => 1 / 1000000,
1189 'maxCompletionTokens' => 4096,
1190 'maxContextualTokens' => 200000,
1191 'finetune' => false,
1192 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'deprecated']
1193 ],
1194 [
1195 // Deprecated: Anthropic retired Claude 3 Opus on January 5, 2026.
1196 'model' => 'claude-3-opus-latest',
1197 'name' => 'Claude-3 Opus (Latest)',
1198 'family' => 'claude-3',
1199 'features' => ['completion'],
1200 'price' => [
1201 'in' => 15.00,
1202 'out' => 75.00,
1203 ],
1204 'type' => 'token',
1205 'unit' => 1 / 1000000,
1206 'maxCompletionTokens' => 4096,
1207 'maxContextualTokens' => 200000,
1208 'finetune' => false,
1209 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'deprecated']
1210 ],
1211 [
1212 // Deprecated: Anthropic retired Claude 3 Opus on January 5, 2026.
1213 'model' => 'claude-3-opus-20240229',
1214 'name' => 'Claude-3 Opus (2024/02/29)',
1215 'family' => 'claude-3',
1216 'features' => ['completion'],
1217 'price' => [
1218 'in' => 15.00,
1219 'out' => 75.00,
1220 ],
1221 'type' => 'token',
1222 'unit' => 1 / 1000000,
1223 'maxCompletionTokens' => 4096,
1224 'maxContextualTokens' => 200000,
1225 'finetune' => false,
1226 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'deprecated']
1227 ],
1228 [
1229 'model' => 'claude-3-5-haiku-20241022',
1230 'name' => 'Claude-3.5 Haiku (2024/10/22)',
1231 'family' => 'claude-3',
1232 'features' => ['completion'],
1233 'price' => [
1234 'in' => 0.80,
1235 'out' => 4.00,
1236 ],
1237 'type' => 'token',
1238 'unit' => 1 / 1000000,
1239 'maxCompletionTokens' => 8192,
1240 'maxContextualTokens' => 200000,
1241 'finetune' => false,
1242 'tags' => ['core', 'chat', 'vision', 'files'],
1243 'tools' => ['code_interpreter']
1244 ],
1245 [
1246 'model' => 'claude-3-5-haiku-latest',
1247 'name' => 'Claude-3.5 Haiku',
1248 'family' => 'claude-3',
1249 'features' => ['completion'],
1250 'price' => [
1251 'in' => 0.80,
1252 'out' => 4.00,
1253 ],
1254 'type' => 'token',
1255 'unit' => 1 / 1000000,
1256 'maxCompletionTokens' => 8192,
1257 'maxContextualTokens' => 200000,
1258 'finetune' => false,
1259 'tags' => ['core', 'chat', 'vision', 'files', 'latest'],
1260 'tools' => ['code_interpreter']
1261 ],
1262 [
1263 'model' => 'claude-3-haiku-20240307',
1264 'name' => 'Claude-3 Haiku (2024/03/07)',
1265 'family' => 'claude-3',
1266 'features' => ['completion'],
1267 'price' => [
1268 'in' => 0.25,
1269 'out' => 1.25,
1270 ],
1271 'type' => 'token',
1272 'unit' => 1 / 1000000,
1273 'maxCompletionTokens' => 4096,
1274 'maxContextualTokens' => 200000,
1275 'finetune' => false,
1276 'tags' => ['core', 'chat', 'vision', 'files', 'functions']
1277 ]
1278 ] );
1279
1280 define( 'MWAI_PERPLEXITY_MODELS', [
1281 [
1282 'model' => 'sonar-pro',
1283 'name' => 'Sonar Pro',
1284 'family' => 'sonar',
1285 'features' => ['completion'],
1286 'price' => [
1287 'in' => 3.00,
1288 'out' => 15.00,
1289 'search' => 5.00,
1290 ],
1291 'type' => 'token',
1292 'unit' => 1 / 1000000,
1293 'searchUnit' => 1 / 1000,
1294 'maxCompletionTokens' => 8192,
1295 'maxContextualTokens' => 200000,
1296 'finetune' => false,
1297 'tags' => ['core', 'chat'],
1298 ],
1299 [
1300 'model' => 'sonar',
1301 'name' => 'Sonar',
1302 'family' => 'sonar',
1303 'features' => ['completion'],
1304 'price' => [
1305 'in' => 1.00,
1306 'out' => 1.00,
1307 'search' => 5.00,
1308 ],
1309 'type' => 'token',
1310 'unit' => 1 / 1000000,
1311 'searchUnit' => 1 / 1000,
1312 'maxCompletionTokens' => 4096,
1313 'maxContextualTokens' => 127000,
1314 'finetune' => false,
1315 'tags' => ['core', 'chat'],
1316 ],
1317 ] );
1318
1319 // Mistral AI Models
1320 // Models are fetched dynamically from the Mistral API
1321 define( 'MWAI_MISTRAL_MODELS', [] );
1322