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 | ]); |