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