aimodels 0.5.2 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -68,7 +68,7 @@ interface Provider extends Organization {
68
68
  /**
69
69
  * Defines all possible model capabilities
70
70
  */
71
- type Capability = "chat" | "reason" | "txt-in" | "txt-out" | "img-in" | "img-out" | "audio-in" | "audio-out" | "json-out" | "fn-out" | "vec-out";
71
+ type Capability = "chat" | "reason" | "txt-in" | "txt-out" | "img-in" | "img-out" | "audio-in" | "audio-out" | "video-in" | "video-out" | "json-out" | "fn-out" | "vec-out";
72
72
 
73
73
  interface BaseContext {
74
74
  /** The type discriminator */
package/dist/index.js CHANGED
@@ -619,13 +619,13 @@ var models = {
619
619
  "context": {
620
620
  "type": "token",
621
621
  "total": 131072,
622
- "maxOutput": 8192
622
+ "maxOutput": 65536
623
623
  },
624
624
  "creatorId": "deepseek"
625
625
  },
626
- "gemini-2.5-pro-preview-03-25": {
627
- "id": "gemini-2.5-pro-preview-03-25",
628
- "name": "Gemini 2.5 Pro (Preview)",
626
+ "gemini-3-pro-preview": {
627
+ "id": "gemini-3-pro-preview",
628
+ "name": "Gemini 3 Pro Preview",
629
629
  "license": "proprietary",
630
630
  "capabilities": [
631
631
  "chat",
@@ -635,21 +635,19 @@ var models = {
635
635
  "fn-out",
636
636
  "img-in",
637
637
  "audio-in",
638
+ "video-in",
638
639
  "reason"
639
640
  ],
640
641
  "context": {
641
642
  "type": "token",
642
- "total": 1114112,
643
+ "total": 1048576,
643
644
  "maxOutput": 65536
644
645
  },
645
- "aliases": [
646
- "gemini-2.5"
647
- ],
648
646
  "creatorId": "google"
649
647
  },
650
- "gemini-2.5-pro-exp-03-25": {
651
- "id": "gemini-2.5-pro-exp-03-25",
652
- "name": "Gemini 2.5 Pro (Experimental)",
648
+ "gemini-3-flash-preview": {
649
+ "id": "gemini-3-flash-preview",
650
+ "name": "Gemini 3 Flash Preview",
653
651
  "license": "proprietary",
654
652
  "capabilities": [
655
653
  "chat",
@@ -659,240 +657,228 @@ var models = {
659
657
  "fn-out",
660
658
  "img-in",
661
659
  "audio-in",
660
+ "video-in",
662
661
  "reason"
663
662
  ],
664
663
  "context": {
665
664
  "type": "token",
666
- "total": 1114112,
665
+ "total": 1048576,
667
666
  "maxOutput": 65536
668
667
  },
669
- "aliases": [
670
- "gemini-2.5-exp"
671
- ],
672
668
  "creatorId": "google"
673
669
  },
674
- "gemini-2.5-flash-preview": {
675
- "id": "gemini-2.5-flash-preview",
676
- "name": "Gemini 2.5 Flash Preview",
670
+ "gemini-2.5-pro": {
671
+ "id": "gemini-2.5-pro",
672
+ "name": "Gemini 2.5 Pro",
677
673
  "license": "proprietary",
678
674
  "capabilities": [
679
675
  "chat",
680
676
  "txt-in",
681
677
  "txt-out",
678
+ "img-in",
679
+ "audio-in",
680
+ "video-in",
682
681
  "json-out",
683
682
  "fn-out",
684
- "img-in",
685
683
  "reason"
686
684
  ],
687
685
  "context": {
688
686
  "type": "token",
689
687
  "total": 1048576,
690
- "maxOutput": 32768
688
+ "maxOutput": 65536
691
689
  },
690
+ "aliases": [
691
+ "gemini-2.5"
692
+ ],
692
693
  "creatorId": "google"
693
694
  },
694
- "gemma-3-1b": {
695
- "id": "gemma-3-1b",
696
- "name": "Gemma 3 1B",
697
- "license": "apache-2.0",
698
- "capabilities": [
699
- "chat",
700
- "txt-in",
701
- "txt-out",
702
- "json-out",
703
- "fn-out"
704
- ],
705
- "context": {
706
- "type": "token",
707
- "total": 40960,
708
- "maxOutput": 8192
695
+ "gemini-2.5-pro-preview-06-05": {
696
+ "id": "gemini-2.5-pro-preview-06-05",
697
+ "extends": "gemini-2.5-pro",
698
+ "overrides": {
699
+ "name": "Gemini 2.5 Pro Preview 06-05"
709
700
  },
710
701
  "creatorId": "google"
711
702
  },
712
- "gemma-3-4b": {
713
- "id": "gemma-3-4b",
714
- "name": "Gemma 3 4B",
715
- "license": "apache-2.0",
703
+ "gemini-2.5-flash": {
704
+ "id": "gemini-2.5-flash",
705
+ "name": "Gemini 2.5 Flash",
706
+ "license": "proprietary",
716
707
  "capabilities": [
717
708
  "chat",
718
709
  "txt-in",
719
710
  "txt-out",
711
+ "img-in",
712
+ "audio-in",
713
+ "video-in",
720
714
  "json-out",
721
715
  "fn-out",
722
- "img-in"
716
+ "reason"
723
717
  ],
724
718
  "context": {
725
719
  "type": "token",
726
- "total": 40960,
727
- "maxOutput": 8192
720
+ "total": 1048576,
721
+ "maxOutput": 65536
728
722
  },
723
+ "aliases": [
724
+ "gemini-flash-latest"
725
+ ],
729
726
  "creatorId": "google"
730
727
  },
731
- "gemma-3-12b": {
732
- "id": "gemma-3-12b",
733
- "name": "Gemma 3 12B",
734
- "license": "apache-2.0",
728
+ "gemini-2.5-flash-preview-09-2025": {
729
+ "id": "gemini-2.5-flash-preview-09-2025",
730
+ "extends": "gemini-2.5-flash",
731
+ "overrides": {
732
+ "name": "Gemini 2.5 Flash Preview 09-25"
733
+ },
734
+ "creatorId": "google"
735
+ },
736
+ "gemini-2.5-flash-lite": {
737
+ "id": "gemini-2.5-flash-lite",
738
+ "name": "Gemini 2.5 Flash Lite",
739
+ "license": "proprietary",
735
740
  "capabilities": [
736
741
  "chat",
737
742
  "txt-in",
738
743
  "txt-out",
744
+ "img-in",
745
+ "audio-in",
746
+ "video-in",
739
747
  "json-out",
740
748
  "fn-out",
741
- "img-in"
749
+ "reason"
742
750
  ],
743
751
  "context": {
744
752
  "type": "token",
745
- "total": 40960,
746
- "maxOutput": 8192
753
+ "total": 1048576,
754
+ "maxOutput": 65536
747
755
  },
756
+ "aliases": [
757
+ "gemini-flash-lite-latest"
758
+ ],
748
759
  "creatorId": "google"
749
760
  },
750
- "gemma-3-27b": {
751
- "id": "gemma-3-27b",
752
- "name": "Gemma 3 27B",
753
- "license": "apache-2.0",
761
+ "gemini-2.5-flash-lite-preview-09-2025": {
762
+ "id": "gemini-2.5-flash-lite-preview-09-2025",
763
+ "extends": "gemini-2.5-flash-lite",
764
+ "overrides": {
765
+ "name": "Gemini 2.5 Flash Lite Preview 09-25"
766
+ },
767
+ "creatorId": "google"
768
+ },
769
+ "gemini-2.0-flash": {
770
+ "id": "gemini-2.0-flash",
771
+ "name": "Gemini 2.0 Flash",
772
+ "license": "proprietary",
754
773
  "capabilities": [
755
774
  "chat",
756
775
  "txt-in",
757
776
  "txt-out",
777
+ "img-in",
778
+ "audio-in",
779
+ "video-in",
758
780
  "json-out",
759
- "fn-out",
760
- "img-in"
781
+ "fn-out"
761
782
  ],
762
783
  "context": {
763
784
  "type": "token",
764
- "total": 40960,
785
+ "total": 1048576,
765
786
  "maxOutput": 8192
766
787
  },
767
788
  "creatorId": "google"
768
789
  },
769
- "text-embedding-004": {
770
- "id": "text-embedding-004",
771
- "name": "Text Embedding 004",
790
+ "gemini-2.0-flash-lite": {
791
+ "id": "gemini-2.0-flash-lite",
792
+ "name": "Gemini 2.0 Flash Lite",
772
793
  "license": "proprietary",
773
794
  "capabilities": [
795
+ "chat",
774
796
  "txt-in",
775
- "vec-out"
797
+ "txt-out",
798
+ "img-in",
799
+ "audio-in",
800
+ "video-in",
801
+ "json-out",
802
+ "fn-out"
776
803
  ],
777
804
  "context": {
778
805
  "type": "token",
779
- "total": 2048,
780
- "maxOutput": 768
806
+ "total": 1048576,
807
+ "maxOutput": 8192
781
808
  },
782
809
  "creatorId": "google"
783
810
  },
784
- "aqa": {
785
- "id": "aqa",
786
- "name": "Attributed Question Answering",
787
- "license": "proprietary",
811
+ "gemma-3-1b": {
812
+ "id": "gemma-3-1b",
813
+ "name": "Gemma 3 1B",
814
+ "license": "apache-2.0",
788
815
  "capabilities": [
816
+ "chat",
789
817
  "txt-in",
790
- "txt-out"
818
+ "txt-out",
819
+ "json-out",
820
+ "fn-out"
791
821
  ],
792
822
  "context": {
793
823
  "type": "token",
794
- "total": 7168,
795
- "maxOutput": 1024
824
+ "total": 40960,
825
+ "maxOutput": 8192
796
826
  },
797
827
  "creatorId": "google"
798
828
  },
799
- "gemini-2.5-pro-preview-06-05": {
800
- "id": "gemini-2.5-pro-preview-06-05",
801
- "name": "Gemini 2.5 Pro Preview",
802
- "license": "proprietary",
829
+ "gemma-3-4b": {
830
+ "id": "gemma-3-4b",
831
+ "name": "Gemma 3 4B",
832
+ "license": "apache-2.0",
803
833
  "capabilities": [
804
834
  "chat",
805
835
  "txt-in",
806
836
  "txt-out",
807
- "img-in",
808
837
  "json-out",
809
838
  "fn-out",
810
- "reason"
839
+ "img-in"
811
840
  ],
812
841
  "context": {
813
842
  "type": "token",
814
- "total": 1048576,
815
- "maxOutput": 65536
816
- },
817
- "creatorId": "google"
818
- },
819
- "gemini-2.5-pro-preview-05-06": {
820
- "id": "gemini-2.5-pro-preview-05-06",
821
- "extends": "gemini-2.5-pro-preview-06-05",
822
- "overrides": {
823
- "name": "Gemini 2.5 Pro Preview 05-06"
824
- },
825
- "creatorId": "google"
826
- },
827
- "gemini-2.5-flash-preview-05-20": {
828
- "id": "gemini-2.5-flash-preview-05-20",
829
- "extends": "gemini-2.5-flash-preview",
830
- "overrides": {
831
- "name": "Gemini 2.5 Flash Preview 05-20"
832
- },
833
- "creatorId": "google"
834
- },
835
- "gemini-2.5-flash-preview-04-17-thinking": {
836
- "id": "gemini-2.5-flash-preview-04-17-thinking",
837
- "extends": "gemini-2.5-flash-preview",
838
- "overrides": {
839
- "name": "Gemini 2.5 Flash Preview (Thinking)",
840
- "capabilities": [
841
- "chat",
842
- "txt-in",
843
- "txt-out",
844
- "img-in",
845
- "json-out",
846
- "fn-out",
847
- "reason"
848
- ],
849
- "context": {
850
- "type": "token",
851
- "total": 1048576,
852
- "maxOutput": 65536
853
- }
843
+ "total": 40960,
844
+ "maxOutput": 8192
854
845
  },
855
846
  "creatorId": "google"
856
847
  },
857
- "gemini-2.5-flash-preview-tts": {
858
- "id": "gemini-2.5-flash-preview-tts",
859
- "name": "Gemini 2.5 Flash Preview TTS",
860
- "license": "proprietary",
848
+ "gemma-3-12b": {
849
+ "id": "gemma-3-12b",
850
+ "name": "Gemma 3 12B",
851
+ "license": "apache-2.0",
861
852
  "capabilities": [
862
853
  "chat",
863
854
  "txt-in",
864
855
  "txt-out",
865
- "audio-out"
856
+ "json-out",
857
+ "fn-out",
858
+ "img-in"
866
859
  ],
867
860
  "context": {
868
861
  "type": "token",
869
- "total": 8192,
870
- "maxOutput": 16384
871
- },
872
- "creatorId": "google"
873
- },
874
- "gemini-2.5-pro-preview-tts": {
875
- "id": "gemini-2.5-pro-preview-tts",
876
- "extends": "gemini-2.5-flash-preview-tts",
877
- "overrides": {
878
- "name": "Gemini 2.5 Pro Preview TTS"
862
+ "total": 40960,
863
+ "maxOutput": 8192
879
864
  },
880
865
  "creatorId": "google"
881
866
  },
882
- "gemini-2.5-flash-preview-native-audio-dialog": {
883
- "id": "gemini-2.5-flash-preview-native-audio-dialog",
884
- "name": "Gemini 2.5 Flash Preview Native Audio Dialog",
885
- "license": "proprietary",
867
+ "gemma-3-27b": {
868
+ "id": "gemma-3-27b",
869
+ "name": "Gemma 3 27B",
870
+ "license": "apache-2.0",
886
871
  "capabilities": [
887
872
  "chat",
888
873
  "txt-in",
889
874
  "txt-out",
890
- "audio-in",
891
- "audio-out"
875
+ "json-out",
876
+ "fn-out",
877
+ "img-in"
892
878
  ],
893
879
  "context": {
894
880
  "type": "token",
895
- "total": 131072,
881
+ "total": 40960,
896
882
  "maxOutput": 8192
897
883
  },
898
884
  "creatorId": "google"
@@ -959,6 +945,53 @@ var models = {
959
945
  },
960
946
  "creatorId": "google"
961
947
  },
948
+ "text-embedding-004": {
949
+ "id": "text-embedding-004",
950
+ "name": "Text Embedding 004",
951
+ "license": "proprietary",
952
+ "capabilities": [
953
+ "txt-in",
954
+ "vec-out"
955
+ ],
956
+ "context": {
957
+ "type": "token",
958
+ "total": 2048,
959
+ "maxOutput": 768
960
+ },
961
+ "creatorId": "google"
962
+ },
963
+ "gemini-embedding-001": {
964
+ "id": "gemini-embedding-001",
965
+ "name": "Gemini Embedding 001",
966
+ "license": "proprietary",
967
+ "capabilities": [
968
+ "txt-in",
969
+ "vec-out"
970
+ ],
971
+ "context": {
972
+ "type": "embedding",
973
+ "total": 2048,
974
+ "unit": "tokens",
975
+ "dimensions": 3072,
976
+ "embeddingType": "text"
977
+ },
978
+ "creatorId": "google"
979
+ },
980
+ "aqa": {
981
+ "id": "aqa",
982
+ "name": "Attributed Question Answering",
983
+ "license": "proprietary",
984
+ "capabilities": [
985
+ "txt-in",
986
+ "txt-out"
987
+ ],
988
+ "context": {
989
+ "type": "token",
990
+ "total": 7168,
991
+ "maxOutput": 1024
992
+ },
993
+ "creatorId": "google"
994
+ },
962
995
  "gemini-2.5-flash-image": {
963
996
  "id": "gemini-2.5-flash-image",
964
997
  "name": "Gemini 2.5 Flash Image (Nano Banana)",
@@ -998,12 +1031,110 @@ var models = {
998
1031
  },
999
1032
  "creatorId": "google"
1000
1033
  },
1001
- "veo-2.0-generate-001": {
1002
- "id": "veo-2.0-generate-001",
1003
- "name": "Veo 2",
1034
+ "imagen-4.0-generate-001": {
1035
+ "id": "imagen-4.0-generate-001",
1036
+ "name": "Imagen 4.0",
1037
+ "license": "proprietary",
1038
+ "capabilities": [
1039
+ "txt-in",
1040
+ "img-out"
1041
+ ],
1042
+ "context": {
1043
+ "maxOutput": 4,
1044
+ "sizes": [
1045
+ "1024x1024",
1046
+ "896x1280",
1047
+ "1280x896",
1048
+ "768x1408",
1049
+ "1408x768",
1050
+ "2048x2048",
1051
+ "1792x2560",
1052
+ "2560x1792",
1053
+ "1536x2816",
1054
+ "2816x1536"
1055
+ ]
1056
+ },
1057
+ "creatorId": "google"
1058
+ },
1059
+ "imagen-4.0-ultra-generate-001": {
1060
+ "id": "imagen-4.0-ultra-generate-001",
1061
+ "name": "Imagen 4.0 Ultra",
1062
+ "license": "proprietary",
1063
+ "capabilities": [
1064
+ "txt-in",
1065
+ "img-out"
1066
+ ],
1067
+ "context": {
1068
+ "maxOutput": 4,
1069
+ "sizes": [
1070
+ "1024x1024",
1071
+ "896x1280",
1072
+ "1280x896",
1073
+ "768x1408",
1074
+ "1408x768",
1075
+ "2048x2048",
1076
+ "1792x2560",
1077
+ "2560x1792",
1078
+ "1536x2816",
1079
+ "2816x1536"
1080
+ ]
1081
+ },
1082
+ "creatorId": "google"
1083
+ },
1084
+ "veo-2.0-generate-001": {
1085
+ "id": "veo-2.0-generate-001",
1086
+ "name": "Veo 2",
1087
+ "license": "proprietary",
1088
+ "capabilities": [
1089
+ "txt-in",
1090
+ "video-out"
1091
+ ],
1092
+ "context": {
1093
+ "type": "token",
1094
+ "total": 480,
1095
+ "maxOutput": 8192
1096
+ },
1097
+ "creatorId": "google"
1098
+ },
1099
+ "veo-3.0-generate-preview": {
1100
+ "id": "veo-3.0-generate-preview",
1101
+ "name": "Veo 3.0 Generate",
1102
+ "license": "proprietary",
1103
+ "capabilities": [
1104
+ "txt-in",
1105
+ "img-in",
1106
+ "video-out"
1107
+ ],
1108
+ "context": {
1109
+ "type": "token",
1110
+ "total": 480,
1111
+ "maxOutput": 8192
1112
+ },
1113
+ "creatorId": "google"
1114
+ },
1115
+ "veo-3.1-generate-preview": {
1116
+ "id": "veo-3.1-generate-preview",
1117
+ "name": "Veo 3.1 Generate",
1118
+ "license": "proprietary",
1119
+ "capabilities": [
1120
+ "txt-in",
1121
+ "img-in",
1122
+ "video-out"
1123
+ ],
1124
+ "context": {
1125
+ "type": "token",
1126
+ "total": 480,
1127
+ "maxOutput": 8192
1128
+ },
1129
+ "creatorId": "google"
1130
+ },
1131
+ "veo-3.1-fast-generate-preview": {
1132
+ "id": "veo-3.1-fast-generate-preview",
1133
+ "name": "Veo 3.1 Fast Generate",
1004
1134
  "license": "proprietary",
1005
1135
  "capabilities": [
1006
1136
  "txt-in",
1137
+ "img-in",
1007
1138
  "video-out"
1008
1139
  ],
1009
1140
  "context": {
@@ -1147,6 +1278,151 @@ var models = {
1147
1278
  },
1148
1279
  "creatorId": "meta"
1149
1280
  },
1281
+ "llama-3.1-8b-instant": {
1282
+ "id": "llama-3.1-8b-instant",
1283
+ "name": "Llama 3.1 8B",
1284
+ "license": "llama-3-community",
1285
+ "capabilities": [
1286
+ "chat",
1287
+ "txt-in",
1288
+ "txt-out",
1289
+ "json-out",
1290
+ "fn-out"
1291
+ ],
1292
+ "context": {
1293
+ "type": "token",
1294
+ "total": 131072,
1295
+ "maxOutput": 131072
1296
+ },
1297
+ "aliases": [
1298
+ "llama-3.1-8b"
1299
+ ],
1300
+ "creatorId": "meta"
1301
+ },
1302
+ "llama-3.3-70b-versatile": {
1303
+ "id": "llama-3.3-70b-versatile",
1304
+ "name": "Llama 3.3 70B",
1305
+ "license": "llama-3-community",
1306
+ "capabilities": [
1307
+ "chat",
1308
+ "txt-in",
1309
+ "txt-out",
1310
+ "json-out",
1311
+ "fn-out"
1312
+ ],
1313
+ "context": {
1314
+ "type": "token",
1315
+ "total": 131072,
1316
+ "maxOutput": 32768
1317
+ },
1318
+ "aliases": [
1319
+ "llama-3.3-70b"
1320
+ ],
1321
+ "creatorId": "meta"
1322
+ },
1323
+ "meta-llama/llama-guard-4-12b": {
1324
+ "id": "meta-llama/llama-guard-4-12b",
1325
+ "name": "LlamaGuard 4 12B",
1326
+ "license": "llama-4-community",
1327
+ "capabilities": [
1328
+ "chat",
1329
+ "txt-in",
1330
+ "txt-out"
1331
+ ],
1332
+ "context": {
1333
+ "type": "token",
1334
+ "total": 131072,
1335
+ "maxOutput": 1024
1336
+ },
1337
+ "aliases": [
1338
+ "llama-guard-4-12b"
1339
+ ],
1340
+ "creatorId": "meta"
1341
+ },
1342
+ "meta-llama/llama-4-maverick-17b-128e-instruct": {
1343
+ "id": "meta-llama/llama-4-maverick-17b-128e-instruct",
1344
+ "name": "Llama 4 Maverick 17B 128E",
1345
+ "license": "llama-4-community",
1346
+ "capabilities": [
1347
+ "chat",
1348
+ "txt-in",
1349
+ "txt-out",
1350
+ "json-out",
1351
+ "fn-out",
1352
+ "img-in",
1353
+ "reason"
1354
+ ],
1355
+ "context": {
1356
+ "type": "token",
1357
+ "total": 131072,
1358
+ "maxOutput": 8192
1359
+ },
1360
+ "aliases": [
1361
+ "llama-4-maverick-17b-128e"
1362
+ ],
1363
+ "creatorId": "meta"
1364
+ },
1365
+ "meta-llama/llama-4-scout-17b-16e-instruct": {
1366
+ "id": "meta-llama/llama-4-scout-17b-16e-instruct",
1367
+ "name": "Llama 4 Scout 17B 16E",
1368
+ "license": "llama-4-community",
1369
+ "capabilities": [
1370
+ "chat",
1371
+ "txt-in",
1372
+ "txt-out",
1373
+ "json-out",
1374
+ "fn-out",
1375
+ "img-in",
1376
+ "reason"
1377
+ ],
1378
+ "context": {
1379
+ "type": "token",
1380
+ "total": 131072,
1381
+ "maxOutput": 8192
1382
+ },
1383
+ "aliases": [
1384
+ "llama-4-scout-17b-16e"
1385
+ ],
1386
+ "creatorId": "meta"
1387
+ },
1388
+ "meta-llama/llama-prompt-guard-2-22m": {
1389
+ "id": "meta-llama/llama-prompt-guard-2-22m",
1390
+ "name": "Llama Prompt Guard 2 22M",
1391
+ "license": "llama-3-community",
1392
+ "capabilities": [
1393
+ "chat",
1394
+ "txt-in",
1395
+ "txt-out"
1396
+ ],
1397
+ "context": {
1398
+ "type": "token",
1399
+ "total": 512,
1400
+ "maxOutput": 512
1401
+ },
1402
+ "aliases": [
1403
+ "llama-prompt-guard-2-22m"
1404
+ ],
1405
+ "creatorId": "meta"
1406
+ },
1407
+ "meta-llama/llama-prompt-guard-2-86m": {
1408
+ "id": "meta-llama/llama-prompt-guard-2-86m",
1409
+ "name": "Llama Prompt Guard 2 86M",
1410
+ "license": "llama-3-community",
1411
+ "capabilities": [
1412
+ "chat",
1413
+ "txt-in",
1414
+ "txt-out"
1415
+ ],
1416
+ "context": {
1417
+ "type": "token",
1418
+ "total": 512,
1419
+ "maxOutput": 512
1420
+ },
1421
+ "aliases": [
1422
+ "llama-prompt-guard-2-86m"
1423
+ ],
1424
+ "creatorId": "meta"
1425
+ },
1150
1426
  "mistral-medium-3-2025-05-07": {
1151
1427
  "id": "mistral-medium-3-2025-05-07",
1152
1428
  "name": "Mistral Medium 3",
@@ -1381,6 +1657,42 @@ var models = {
1381
1657
  ],
1382
1658
  "creatorId": "openai"
1383
1659
  },
1660
+ "gpt-oss-120b": {
1661
+ "id": "gpt-oss-120b",
1662
+ "name": "GPT OSS 120B",
1663
+ "license": "proprietary",
1664
+ "capabilities": [
1665
+ "chat",
1666
+ "txt-in",
1667
+ "txt-out",
1668
+ "fn-out",
1669
+ "reason"
1670
+ ],
1671
+ "context": {
1672
+ "type": "token",
1673
+ "total": 131072,
1674
+ "maxOutput": 65536
1675
+ },
1676
+ "creatorId": "openai"
1677
+ },
1678
+ "gpt-oss-20b": {
1679
+ "id": "gpt-oss-20b",
1680
+ "name": "GPT OSS 20B",
1681
+ "license": "proprietary",
1682
+ "capabilities": [
1683
+ "chat",
1684
+ "txt-in",
1685
+ "txt-out",
1686
+ "fn-out",
1687
+ "reason"
1688
+ ],
1689
+ "context": {
1690
+ "type": "token",
1691
+ "total": 131072,
1692
+ "maxOutput": 65536
1693
+ },
1694
+ "creatorId": "openai"
1695
+ },
1384
1696
  "whisper-1": {
1385
1697
  "id": "whisper-1",
1386
1698
  "name": "Whisper",
@@ -1939,6 +2251,113 @@ var models = {
1939
2251
  "grok-4-heavy-latest"
1940
2252
  ],
1941
2253
  "creatorId": "xai"
2254
+ },
2255
+ "grok-code-fast-1": {
2256
+ "id": "grok-code-fast-1",
2257
+ "name": "Grok Code Fast 1",
2258
+ "creator": "xai",
2259
+ "license": "proprietary",
2260
+ "capabilities": [
2261
+ "chat",
2262
+ "txt-in",
2263
+ "txt-out",
2264
+ "reason",
2265
+ "fn-out",
2266
+ "json-out"
2267
+ ],
2268
+ "context": {
2269
+ "type": "token",
2270
+ "total": 256e3,
2271
+ "maxOutput": 1e4
2272
+ },
2273
+ "releasedAt": "2025-08-28",
2274
+ "creatorId": "xai"
2275
+ },
2276
+ "grok-4-fast": {
2277
+ "id": "grok-4-fast",
2278
+ "name": "Grok 4 Fast",
2279
+ "creator": "xai",
2280
+ "license": "proprietary",
2281
+ "capabilities": [
2282
+ "chat",
2283
+ "txt-in",
2284
+ "txt-out",
2285
+ "img-in",
2286
+ "reason",
2287
+ "fn-out",
2288
+ "json-out"
2289
+ ],
2290
+ "context": {
2291
+ "type": "token",
2292
+ "total": 2e6,
2293
+ "maxOutput": 3e4
2294
+ },
2295
+ "releasedAt": "2025-09-19",
2296
+ "creatorId": "xai"
2297
+ },
2298
+ "grok-4-fast-non-reasoning": {
2299
+ "id": "grok-4-fast-non-reasoning",
2300
+ "name": "Grok 4 Fast (Non-Reasoning)",
2301
+ "creator": "xai",
2302
+ "license": "proprietary",
2303
+ "capabilities": [
2304
+ "chat",
2305
+ "txt-in",
2306
+ "txt-out",
2307
+ "img-in",
2308
+ "fn-out",
2309
+ "json-out"
2310
+ ],
2311
+ "context": {
2312
+ "type": "token",
2313
+ "total": 2e6,
2314
+ "maxOutput": 3e4
2315
+ },
2316
+ "releasedAt": "2025-09-19",
2317
+ "creatorId": "xai"
2318
+ },
2319
+ "grok-4-1-fast": {
2320
+ "id": "grok-4-1-fast",
2321
+ "name": "Grok 4.1 Fast",
2322
+ "creator": "xai",
2323
+ "license": "proprietary",
2324
+ "capabilities": [
2325
+ "chat",
2326
+ "txt-in",
2327
+ "txt-out",
2328
+ "img-in",
2329
+ "reason",
2330
+ "fn-out",
2331
+ "json-out"
2332
+ ],
2333
+ "context": {
2334
+ "type": "token",
2335
+ "total": 2e6,
2336
+ "maxOutput": 3e4
2337
+ },
2338
+ "releasedAt": "2025-11-19",
2339
+ "creatorId": "xai"
2340
+ },
2341
+ "grok-4-1-fast-non-reasoning": {
2342
+ "id": "grok-4-1-fast-non-reasoning",
2343
+ "name": "Grok 4.1 Fast (Non-Reasoning)",
2344
+ "creator": "xai",
2345
+ "license": "proprietary",
2346
+ "capabilities": [
2347
+ "chat",
2348
+ "txt-in",
2349
+ "txt-out",
2350
+ "img-in",
2351
+ "fn-out",
2352
+ "json-out"
2353
+ ],
2354
+ "context": {
2355
+ "type": "token",
2356
+ "total": 2e6,
2357
+ "maxOutput": 3e4
2358
+ },
2359
+ "releasedAt": "2025-11-19",
2360
+ "creatorId": "xai"
1942
2361
  }
1943
2362
  };
1944
2363
  var providers = {
@@ -1996,7 +2415,32 @@ var providers = {
1996
2415
  "name": "Groq",
1997
2416
  "apiUrl": "https://api.groq.com/openai/v1",
1998
2417
  "apiDocsUrl": "https://console.groq.com/docs/api-reference",
1999
- "pricing": {}
2418
+ "pricing": {},
2419
+ "models": [
2420
+ {
2421
+ "creator": "meta",
2422
+ "include": [
2423
+ "llama3-8b-8192",
2424
+ "llama3-70b-8192",
2425
+ "llama-guard-3-8b",
2426
+ "llama-3.1-8b-instant",
2427
+ "llama-3.3-70b-versatile",
2428
+ "meta-llama/llama-guard-4-12b",
2429
+ "meta-llama/llama-4-maverick-17b-128e-instruct",
2430
+ "meta-llama/llama-4-scout-17b-16e-instruct",
2431
+ "meta-llama/llama-prompt-guard-2-22m",
2432
+ "meta-llama/llama-prompt-guard-2-86m"
2433
+ ]
2434
+ },
2435
+ {
2436
+ "creator": "openai",
2437
+ "include": [
2438
+ "gpt-oss-120b",
2439
+ "gpt-oss-20b",
2440
+ "whisper-1"
2441
+ ]
2442
+ }
2443
+ ]
2000
2444
  },
2001
2445
  "mistral": {
2002
2446
  "id": "mistral",
@@ -2014,7 +2458,17 @@ var providers = {
2014
2458
  "name": "OpenAI",
2015
2459
  "apiUrl": "https://api.openai.com/v1",
2016
2460
  "apiDocsUrl": "https://platform.openai.com/docs/api-reference",
2017
- "pricing": {}
2461
+ "pricing": {},
2462
+ "models": [
2463
+ {
2464
+ "creator": "openai",
2465
+ "include": "all",
2466
+ "exclude": [
2467
+ "gpt-oss-120b",
2468
+ "gpt-oss-20b"
2469
+ ]
2470
+ }
2471
+ ]
2018
2472
  },
2019
2473
  "openrouter": {
2020
2474
  "id": "openrouter",
@@ -2366,21 +2820,33 @@ var Model = class _Model {
2366
2820
  get providerIds() {
2367
2821
  const ids = /* @__PURE__ */ new Set();
2368
2822
  const creatorId = this.creatorId;
2369
- if (creatorId && ModelCollection.providersData[creatorId]) {
2370
- ids.add(creatorId);
2371
- }
2823
+ if (!creatorId) return [];
2824
+ const includesModel = (entry) => {
2825
+ if (entry.creator !== creatorId) return false;
2826
+ if (entry.include === "all") {
2827
+ return !entry.exclude || !entry.exclude.includes(this.id);
2828
+ }
2829
+ return Array.isArray(entry.include) && entry.include.includes(this.id);
2830
+ };
2372
2831
  for (const [providerId, provider] of Object.entries(ModelCollection.providersData)) {
2832
+ const isNative = providerId === creatorId;
2373
2833
  const entries = provider.models;
2374
- if (!entries) continue;
2375
- for (const entry of entries) {
2376
- if (entry.creator !== creatorId) continue;
2377
- if (entry.include === "all") {
2378
- if (!entry.exclude || !entry.exclude.includes(this.id)) {
2379
- ids.add(providerId);
2380
- }
2381
- } else if (Array.isArray(entry.include) && entry.include.includes(this.id)) {
2834
+ if (isNative) {
2835
+ if (!entries || entries.length === 0) {
2836
+ ids.add(providerId);
2837
+ continue;
2838
+ }
2839
+ const creatorEntry = entries.find((e) => e.creator === creatorId);
2840
+ if (!creatorEntry) {
2841
+ ids.add(providerId);
2842
+ } else if (includesModel(creatorEntry)) {
2382
2843
  ids.add(providerId);
2383
2844
  }
2845
+ continue;
2846
+ }
2847
+ if (!entries) continue;
2848
+ if (entries.some(includesModel)) {
2849
+ ids.add(providerId);
2384
2850
  }
2385
2851
  }
2386
2852
  return Array.from(ids);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aimodels",
3
- "version": "0.5.2",
3
+ "version": "0.6.0",
4
4
  "description": "A collection of AI model specifications across different providers",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -23,8 +23,9 @@
23
23
  "validate:data": "tsx src/schemas/validate-data.ts",
24
24
  "prebuild": "npm run validate:data && npm run clean && npm run gen-data-js-file",
25
25
  "build:ts": "tsup",
26
- "build": "npm run build:ts",
26
+ "build": "npm run build:ts && npm test",
27
27
  "test": "vitest run",
28
+ "test:all": "vitest run --include tests/**/*.test.ts",
28
29
  "test:watch": "vitest watch",
29
30
  "test:coverage": "vitest run --coverage",
30
31
  "typecheck": "tsc --noEmit",