@ottocode/sdk 0.1.264 → 0.1.266

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.
Files changed (36) hide show
  1. package/package.json +3 -2
  2. package/src/config/src/index.ts +1 -0
  3. package/src/core/src/providers/resolver.ts +33 -64
  4. package/src/core/src/tools/bin-manager/cache.ts +13 -0
  5. package/src/core/src/tools/bin-manager/filesystem.ts +32 -0
  6. package/src/core/src/tools/bin-manager/paths.ts +36 -0
  7. package/src/core/src/tools/bin-manager/vendor.ts +80 -0
  8. package/src/core/src/tools/bin-manager.ts +14 -140
  9. package/src/core/src/tools/builtin/patch/apply-hunk.ts +308 -0
  10. package/src/core/src/tools/builtin/patch/apply-report.ts +99 -0
  11. package/src/core/src/tools/builtin/patch/apply.ts +6 -663
  12. package/src/core/src/tools/builtin/patch/hunk-header.ts +17 -0
  13. package/src/core/src/tools/builtin/patch/indentation.ts +160 -0
  14. package/src/core/src/tools/builtin/patch/matching.ts +58 -0
  15. package/src/core/src/tools/builtin/patch/parse-enveloped.ts +10 -72
  16. package/src/core/src/tools/builtin/patch/parse-unified.ts +15 -105
  17. package/src/core/src/tools/builtin/patch/replace-builder.ts +64 -0
  18. package/src/core/src/tools/builtin/patch/unified-state.ts +86 -0
  19. package/src/core/src/tools/builtin/websearch-strategies.ts +197 -0
  20. package/src/core/src/tools/builtin/websearch.ts +9 -187
  21. package/src/core/src/tools/loader.ts +6 -49
  22. package/src/core/src/tools/plugin-discovery.ts +86 -0
  23. package/src/core/src/utils/logger/format.ts +50 -0
  24. package/src/core/src/utils/logger/sinks.ts +61 -0
  25. package/src/core/src/utils/logger.ts +2 -119
  26. package/src/index.ts +4 -0
  27. package/src/providers/src/catalog.ts +1126 -220
  28. package/src/providers/src/env.ts +1 -0
  29. package/src/providers/src/index.ts +6 -0
  30. package/src/providers/src/model-resolution.ts +21 -0
  31. package/src/providers/src/pricing.ts +3 -0
  32. package/src/providers/src/registry.ts +2 -0
  33. package/src/providers/src/utils.ts +3 -0
  34. package/src/providers/src/xai-client.ts +15 -0
  35. package/src/providers/src/zai-client.ts +5 -2
  36. package/src/types/src/provider.ts +1 -0
@@ -904,7 +904,32 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
904
904
  },
905
905
  limit: {
906
906
  context: 1050000,
907
- output: 130000,
907
+ output: 128000,
908
+ },
909
+ },
910
+ {
911
+ id: 'gpt-5.5-pro',
912
+ ownedBy: 'openai',
913
+ label: 'GPT-5.5 Pro',
914
+ modalities: {
915
+ input: ['text', 'image', 'pdf'],
916
+ output: ['text'],
917
+ },
918
+ toolCall: true,
919
+ reasoningText: true,
920
+ attachment: true,
921
+ temperature: false,
922
+ knowledge: '2025-12-01',
923
+ releaseDate: '2026-04-23',
924
+ lastUpdated: '2026-04-23',
925
+ openWeights: false,
926
+ cost: {
927
+ input: 30,
928
+ output: 180,
929
+ },
930
+ limit: {
931
+ context: 1050000,
932
+ output: 128000,
908
933
  },
909
934
  },
910
935
  {
@@ -3876,6 +3901,31 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
3876
3901
  output: 66000,
3877
3902
  },
3878
3903
  },
3904
+ {
3905
+ id: 'google/gemini-3.1-flash-image-preview',
3906
+ ownedBy: 'google',
3907
+ label: 'Gemini 3.1 Flash Image Preview (Nano Banana 2)',
3908
+ modalities: {
3909
+ input: ['text', 'image'],
3910
+ output: ['text', 'image'],
3911
+ },
3912
+ toolCall: false,
3913
+ reasoningText: true,
3914
+ attachment: true,
3915
+ temperature: true,
3916
+ knowledge: '2025-01',
3917
+ releaseDate: '2026-02-26',
3918
+ lastUpdated: '2026-02-26',
3919
+ openWeights: false,
3920
+ cost: {
3921
+ input: 0.5,
3922
+ output: 3,
3923
+ },
3924
+ limit: {
3925
+ context: 65536,
3926
+ output: 65536,
3927
+ },
3928
+ },
3879
3929
  {
3880
3930
  id: 'google/gemini-3.1-flash-lite-preview',
3881
3931
  ownedBy: 'google',
@@ -5131,6 +5181,29 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
5131
5181
  output: 256000,
5132
5182
  },
5133
5183
  },
5184
+ {
5185
+ id: 'nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free',
5186
+ label: 'Nemotron 3 Nano Omni (free)',
5187
+ modalities: {
5188
+ input: ['text', 'image', 'video', 'audio'],
5189
+ output: ['text'],
5190
+ },
5191
+ toolCall: true,
5192
+ reasoningText: true,
5193
+ attachment: true,
5194
+ temperature: true,
5195
+ releaseDate: '2026-04-28',
5196
+ lastUpdated: '2026-04-28',
5197
+ openWeights: true,
5198
+ cost: {
5199
+ input: 0,
5200
+ output: 0,
5201
+ },
5202
+ limit: {
5203
+ context: 256000,
5204
+ output: 65536,
5205
+ },
5206
+ },
5134
5207
  {
5135
5208
  id: 'nvidia/nemotron-3-super-120b-a12b',
5136
5209
  label: 'Nemotron 3 Super',
@@ -5869,6 +5942,57 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
5869
5942
  output: 128000,
5870
5943
  },
5871
5944
  },
5945
+ {
5946
+ id: 'openai/gpt-5.5',
5947
+ ownedBy: 'openai',
5948
+ label: 'GPT-5.5',
5949
+ modalities: {
5950
+ input: ['text', 'image', 'pdf'],
5951
+ output: ['text'],
5952
+ },
5953
+ toolCall: true,
5954
+ reasoningText: true,
5955
+ attachment: true,
5956
+ temperature: false,
5957
+ knowledge: '2025-12-01',
5958
+ releaseDate: '2026-04-23',
5959
+ lastUpdated: '2026-04-23',
5960
+ openWeights: false,
5961
+ cost: {
5962
+ input: 5,
5963
+ output: 30,
5964
+ cacheRead: 0.5,
5965
+ },
5966
+ limit: {
5967
+ context: 1050000,
5968
+ output: 128000,
5969
+ },
5970
+ },
5971
+ {
5972
+ id: 'openai/gpt-5.5-pro',
5973
+ ownedBy: 'openai',
5974
+ label: 'GPT-5.5 Pro',
5975
+ modalities: {
5976
+ input: ['text', 'image', 'pdf'],
5977
+ output: ['text'],
5978
+ },
5979
+ toolCall: true,
5980
+ reasoningText: true,
5981
+ attachment: true,
5982
+ temperature: false,
5983
+ knowledge: '2025-12-01',
5984
+ releaseDate: '2026-04-23',
5985
+ lastUpdated: '2026-04-23',
5986
+ openWeights: false,
5987
+ cost: {
5988
+ input: 30,
5989
+ output: 180,
5990
+ },
5991
+ limit: {
5992
+ context: 1050000,
5993
+ output: 128000,
5994
+ },
5995
+ },
5872
5996
  {
5873
5997
  id: 'openai/gpt-oss-120b',
5874
5998
  ownedBy: 'openai',
@@ -6085,6 +6209,98 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
6085
6209
  output: 8000,
6086
6210
  },
6087
6211
  },
6212
+ {
6213
+ id: 'openrouter/owl-alpha',
6214
+ label: 'Owl Alpha',
6215
+ modalities: {
6216
+ input: ['text'],
6217
+ output: ['text'],
6218
+ },
6219
+ toolCall: true,
6220
+ reasoningText: true,
6221
+ attachment: false,
6222
+ temperature: true,
6223
+ releaseDate: '2026-04-28',
6224
+ lastUpdated: '2026-04-30',
6225
+ openWeights: false,
6226
+ cost: {
6227
+ input: 0,
6228
+ output: 0,
6229
+ },
6230
+ limit: {
6231
+ context: 1048756,
6232
+ output: 262144,
6233
+ },
6234
+ },
6235
+ {
6236
+ id: 'openrouter/pareto-code',
6237
+ label: 'Pareto Code Router',
6238
+ modalities: {
6239
+ input: ['text'],
6240
+ output: ['text'],
6241
+ },
6242
+ toolCall: true,
6243
+ reasoningText: true,
6244
+ attachment: true,
6245
+ temperature: true,
6246
+ releaseDate: '2026-04-21',
6247
+ lastUpdated: '2026-04-21',
6248
+ openWeights: false,
6249
+ limit: {
6250
+ context: 200000,
6251
+ output: 200000,
6252
+ },
6253
+ },
6254
+ {
6255
+ id: 'poolside/laguna-m.1:free',
6256
+ label: 'Laguna M.1',
6257
+ modalities: {
6258
+ input: ['text'],
6259
+ output: ['text'],
6260
+ },
6261
+ toolCall: true,
6262
+ reasoningText: true,
6263
+ attachment: false,
6264
+ temperature: true,
6265
+ releaseDate: '2026-04-28',
6266
+ lastUpdated: '2026-04-28',
6267
+ openWeights: false,
6268
+ cost: {
6269
+ input: 0,
6270
+ output: 0,
6271
+ cacheRead: 0,
6272
+ cacheWrite: 0,
6273
+ },
6274
+ limit: {
6275
+ context: 131072,
6276
+ output: 8192,
6277
+ },
6278
+ },
6279
+ {
6280
+ id: 'poolside/laguna-xs.2:free',
6281
+ label: 'Laguna XS.2',
6282
+ modalities: {
6283
+ input: ['text'],
6284
+ output: ['text'],
6285
+ },
6286
+ toolCall: true,
6287
+ reasoningText: true,
6288
+ attachment: false,
6289
+ temperature: true,
6290
+ releaseDate: '2026-04-28',
6291
+ lastUpdated: '2026-04-28',
6292
+ openWeights: true,
6293
+ cost: {
6294
+ input: 0,
6295
+ output: 0,
6296
+ cacheRead: 0,
6297
+ cacheWrite: 0,
6298
+ },
6299
+ limit: {
6300
+ context: 131072,
6301
+ output: 8192,
6302
+ },
6303
+ },
6088
6304
  {
6089
6305
  id: 'prime-intellect/intellect-3',
6090
6306
  ownedBy: 'zai',
@@ -6134,6 +6350,30 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
6134
6350
  output: 8192,
6135
6351
  },
6136
6352
  },
6353
+ {
6354
+ id: 'qwen/qwen-3.6-27b',
6355
+ label: 'Qwen3.6 27B',
6356
+ modalities: {
6357
+ input: ['text', 'image', 'video'],
6358
+ output: ['text'],
6359
+ },
6360
+ toolCall: true,
6361
+ reasoningText: false,
6362
+ attachment: true,
6363
+ temperature: true,
6364
+ knowledge: '2025-04',
6365
+ releaseDate: '2026-04-22',
6366
+ lastUpdated: '2026-04-22',
6367
+ openWeights: true,
6368
+ cost: {
6369
+ input: 0.195,
6370
+ output: 1.56,
6371
+ },
6372
+ limit: {
6373
+ context: 262144,
6374
+ output: 81920,
6375
+ },
6376
+ },
6137
6377
  {
6138
6378
  id: 'qwen/qwen2.5-vl-72b-instruct',
6139
6379
  label: 'Qwen2.5 VL 72B Instruct',
@@ -6852,6 +7092,31 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
6852
7092
  output: 30000,
6853
7093
  },
6854
7094
  },
7095
+ {
7096
+ id: 'x-ai/grok-4.3',
7097
+ ownedBy: 'xai',
7098
+ label: 'Grok 4.3',
7099
+ modalities: {
7100
+ input: ['text', 'image'],
7101
+ output: ['text'],
7102
+ },
7103
+ toolCall: true,
7104
+ reasoningText: true,
7105
+ attachment: true,
7106
+ temperature: true,
7107
+ releaseDate: '2026-05-01',
7108
+ lastUpdated: '2026-05-01',
7109
+ openWeights: false,
7110
+ cost: {
7111
+ input: 1.25,
7112
+ output: 2.5,
7113
+ cacheRead: 0.2,
7114
+ },
7115
+ limit: {
7116
+ context: 1000000,
7117
+ output: 1000000,
7118
+ },
7119
+ },
6855
7120
  {
6856
7121
  id: 'x-ai/grok-code-fast-1',
6857
7122
  ownedBy: 'xai',
@@ -6880,7 +7145,7 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
6880
7145
  },
6881
7146
  {
6882
7147
  id: 'xiaomi/mimo-v2-flash',
6883
- label: 'MiMo-V2-Flash',
7148
+ label: 'Xiaomi: MiMo-V2-Flash',
6884
7149
  modalities: {
6885
7150
  input: ['text'],
6886
7151
  output: ['text'],
@@ -6889,9 +7154,9 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
6889
7154
  reasoningText: true,
6890
7155
  attachment: false,
6891
7156
  temperature: true,
6892
- knowledge: '2024-12',
6893
- releaseDate: '2025-12-14',
6894
- lastUpdated: '2025-12-14',
7157
+ knowledge: '2024-12-01',
7158
+ releaseDate: '2025-12-16',
7159
+ lastUpdated: '2026-02-04',
6895
7160
  openWeights: true,
6896
7161
  cost: {
6897
7162
  input: 0.1,
@@ -6905,18 +7170,19 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
6905
7170
  },
6906
7171
  {
6907
7172
  id: 'xiaomi/mimo-v2-omni',
6908
- label: 'MiMo-V2-Omni',
7173
+ label: 'Xiaomi: MiMo-V2-Omni',
6909
7174
  modalities: {
6910
- input: ['text', 'image', 'video', 'audio'],
7175
+ input: ['text', 'image', 'audio', 'video', 'pdf'],
6911
7176
  output: ['text'],
6912
7177
  },
6913
7178
  toolCall: true,
6914
7179
  reasoningText: true,
6915
7180
  attachment: true,
6916
7181
  temperature: true,
7182
+ knowledge: '2024-12',
6917
7183
  releaseDate: '2026-03-18',
6918
7184
  lastUpdated: '2026-03-18',
6919
- openWeights: true,
7185
+ openWeights: false,
6920
7186
  cost: {
6921
7187
  input: 0.4,
6922
7188
  output: 2,
@@ -6924,23 +7190,24 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
6924
7190
  },
6925
7191
  limit: {
6926
7192
  context: 262144,
6927
- output: 65536,
7193
+ output: 131072,
6928
7194
  },
6929
7195
  },
6930
7196
  {
6931
7197
  id: 'xiaomi/mimo-v2-pro',
6932
- label: 'MiMo-V2-Pro',
7198
+ label: 'Xiaomi: MiMo-V2-Pro',
6933
7199
  modalities: {
6934
7200
  input: ['text'],
6935
7201
  output: ['text'],
6936
7202
  },
6937
7203
  toolCall: true,
6938
7204
  reasoningText: true,
6939
- attachment: false,
7205
+ attachment: true,
6940
7206
  temperature: true,
7207
+ knowledge: '2024-12',
6941
7208
  releaseDate: '2026-03-18',
6942
7209
  lastUpdated: '2026-03-18',
6943
- openWeights: true,
7210
+ openWeights: false,
6944
7211
  cost: {
6945
7212
  input: 1,
6946
7213
  output: 3,
@@ -6948,24 +7215,74 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
6948
7215
  },
6949
7216
  limit: {
6950
7217
  context: 1048576,
6951
- output: 65536,
7218
+ output: 131072,
6952
7219
  },
6953
7220
  },
6954
7221
  {
6955
- id: 'z-ai/glm-4.5',
6956
- ownedBy: 'zai',
6957
- label: 'GLM 4.5',
7222
+ id: 'xiaomi/mimo-v2.5',
7223
+ label: 'Xiaomi: MiMo-V2.5',
6958
7224
  modalities: {
6959
- input: ['text'],
7225
+ input: ['text', 'image', 'audio', 'video'],
6960
7226
  output: ['text'],
6961
7227
  },
6962
7228
  toolCall: true,
6963
7229
  reasoningText: true,
6964
- attachment: false,
7230
+ attachment: true,
6965
7231
  temperature: true,
6966
- knowledge: '2025-04',
6967
- releaseDate: '2025-07-28',
6968
- lastUpdated: '2025-07-28',
7232
+ knowledge: '2024-12',
7233
+ releaseDate: '2026-04-22',
7234
+ lastUpdated: '2026-04-22',
7235
+ openWeights: true,
7236
+ cost: {
7237
+ input: 0.4,
7238
+ output: 2,
7239
+ cacheRead: 0.08,
7240
+ },
7241
+ limit: {
7242
+ context: 1048576,
7243
+ output: 131072,
7244
+ },
7245
+ },
7246
+ {
7247
+ id: 'xiaomi/mimo-v2.5-pro',
7248
+ label: 'Xiaomi: MiMo-V2.5-Pro',
7249
+ modalities: {
7250
+ input: ['text'],
7251
+ output: ['text'],
7252
+ },
7253
+ toolCall: true,
7254
+ reasoningText: true,
7255
+ attachment: true,
7256
+ temperature: true,
7257
+ knowledge: '2024-12',
7258
+ releaseDate: '2026-04-22',
7259
+ lastUpdated: '2026-04-22',
7260
+ openWeights: true,
7261
+ cost: {
7262
+ input: 1,
7263
+ output: 3,
7264
+ cacheRead: 0.2,
7265
+ },
7266
+ limit: {
7267
+ context: 1048576,
7268
+ output: 131072,
7269
+ },
7270
+ },
7271
+ {
7272
+ id: 'z-ai/glm-4.5',
7273
+ ownedBy: 'zai',
7274
+ label: 'GLM 4.5',
7275
+ modalities: {
7276
+ input: ['text'],
7277
+ output: ['text'],
7278
+ },
7279
+ toolCall: true,
7280
+ reasoningText: true,
7281
+ attachment: false,
7282
+ temperature: true,
7283
+ knowledge: '2025-04',
7284
+ releaseDate: '2025-07-28',
7285
+ lastUpdated: '2025-07-28',
6969
7286
  openWeights: true,
6970
7287
  cost: {
6971
7288
  input: 0.6,
@@ -8216,6 +8533,64 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
8216
8533
  npm: '@ai-sdk/openai',
8217
8534
  },
8218
8535
  },
8536
+ {
8537
+ id: 'gpt-5.5',
8538
+ ownedBy: 'openai',
8539
+ label: 'GPT-5.5',
8540
+ modalities: {
8541
+ input: ['text', 'image', 'pdf'],
8542
+ output: ['text'],
8543
+ },
8544
+ toolCall: true,
8545
+ reasoningText: true,
8546
+ attachment: true,
8547
+ temperature: false,
8548
+ knowledge: '2025-12-01',
8549
+ releaseDate: '2026-04-23',
8550
+ lastUpdated: '2026-04-23',
8551
+ openWeights: false,
8552
+ cost: {
8553
+ input: 5,
8554
+ output: 30,
8555
+ cacheRead: 0.5,
8556
+ },
8557
+ limit: {
8558
+ context: 1050000,
8559
+ output: 128000,
8560
+ },
8561
+ provider: {
8562
+ npm: '@ai-sdk/openai',
8563
+ },
8564
+ },
8565
+ {
8566
+ id: 'gpt-5.5-pro',
8567
+ ownedBy: 'openai',
8568
+ label: 'GPT-5.5 Pro',
8569
+ modalities: {
8570
+ input: ['text', 'image', 'pdf'],
8571
+ output: ['text'],
8572
+ },
8573
+ toolCall: true,
8574
+ reasoningText: true,
8575
+ attachment: true,
8576
+ temperature: false,
8577
+ knowledge: '2025-12-01',
8578
+ releaseDate: '2026-04-24',
8579
+ lastUpdated: '2026-04-24',
8580
+ openWeights: false,
8581
+ cost: {
8582
+ input: 30,
8583
+ output: 180,
8584
+ cacheRead: 30,
8585
+ },
8586
+ limit: {
8587
+ context: 1050000,
8588
+ output: 128000,
8589
+ },
8590
+ provider: {
8591
+ npm: '@ai-sdk/openai',
8592
+ },
8593
+ },
8219
8594
  {
8220
8595
  id: 'grok-code',
8221
8596
  ownedBy: 'xai',
@@ -8795,225 +9170,273 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
8795
9170
  api: 'https://opencode.ai/zen/v1',
8796
9171
  doc: 'https://opencode.ai/docs/zen',
8797
9172
  },
8798
- zai: {
8799
- id: 'zai',
9173
+ xai: {
9174
+ id: 'xai',
8800
9175
  models: [
8801
9176
  {
8802
- id: 'glm-4.5',
8803
- ownedBy: 'zai',
8804
- label: 'GLM-4.5',
9177
+ id: 'grok-2',
9178
+ ownedBy: 'xai',
9179
+ label: 'Grok 2',
8805
9180
  modalities: {
8806
9181
  input: ['text'],
8807
9182
  output: ['text'],
8808
9183
  },
8809
9184
  toolCall: true,
8810
- reasoningText: true,
9185
+ reasoningText: false,
8811
9186
  attachment: false,
8812
9187
  temperature: true,
8813
- knowledge: '2025-04',
8814
- releaseDate: '2025-07-28',
8815
- lastUpdated: '2025-07-28',
8816
- openWeights: true,
9188
+ knowledge: '2024-08',
9189
+ releaseDate: '2024-08-20',
9190
+ lastUpdated: '2024-08-20',
9191
+ openWeights: false,
8817
9192
  cost: {
8818
- input: 0.6,
8819
- output: 2.2,
8820
- cacheRead: 0.11,
8821
- cacheWrite: 0,
9193
+ input: 2,
9194
+ output: 10,
9195
+ cacheRead: 2,
8822
9196
  },
8823
9197
  limit: {
8824
9198
  context: 131072,
8825
- output: 98304,
9199
+ output: 8192,
8826
9200
  },
8827
9201
  },
8828
9202
  {
8829
- id: 'glm-4.5-air',
8830
- ownedBy: 'zai',
8831
- label: 'GLM-4.5-Air',
9203
+ id: 'grok-2-1212',
9204
+ ownedBy: 'xai',
9205
+ label: 'Grok 2 (1212)',
8832
9206
  modalities: {
8833
9207
  input: ['text'],
8834
9208
  output: ['text'],
8835
9209
  },
8836
9210
  toolCall: true,
8837
- reasoningText: true,
9211
+ reasoningText: false,
8838
9212
  attachment: false,
8839
9213
  temperature: true,
8840
- knowledge: '2025-04',
8841
- releaseDate: '2025-07-28',
8842
- lastUpdated: '2025-07-28',
8843
- openWeights: true,
9214
+ knowledge: '2024-08',
9215
+ releaseDate: '2024-12-12',
9216
+ lastUpdated: '2024-12-12',
9217
+ openWeights: false,
8844
9218
  cost: {
8845
- input: 0.2,
8846
- output: 1.1,
8847
- cacheRead: 0.03,
8848
- cacheWrite: 0,
9219
+ input: 2,
9220
+ output: 10,
9221
+ cacheRead: 2,
8849
9222
  },
8850
9223
  limit: {
8851
9224
  context: 131072,
8852
- output: 98304,
9225
+ output: 8192,
8853
9226
  },
8854
9227
  },
8855
9228
  {
8856
- id: 'glm-4.5-flash',
8857
- ownedBy: 'zai',
8858
- label: 'GLM-4.5-Flash',
9229
+ id: 'grok-2-latest',
9230
+ ownedBy: 'xai',
9231
+ label: 'Grok 2 Latest',
8859
9232
  modalities: {
8860
9233
  input: ['text'],
8861
9234
  output: ['text'],
8862
9235
  },
8863
9236
  toolCall: true,
8864
- reasoningText: true,
9237
+ reasoningText: false,
8865
9238
  attachment: false,
8866
9239
  temperature: true,
8867
- knowledge: '2025-04',
8868
- releaseDate: '2025-07-28',
8869
- lastUpdated: '2025-07-28',
8870
- openWeights: true,
9240
+ knowledge: '2024-08',
9241
+ releaseDate: '2024-08-20',
9242
+ lastUpdated: '2024-12-12',
9243
+ openWeights: false,
8871
9244
  cost: {
8872
- input: 0,
8873
- output: 0,
8874
- cacheRead: 0,
8875
- cacheWrite: 0,
9245
+ input: 2,
9246
+ output: 10,
9247
+ cacheRead: 2,
8876
9248
  },
8877
9249
  limit: {
8878
9250
  context: 131072,
8879
- output: 98304,
9251
+ output: 8192,
8880
9252
  },
8881
9253
  },
8882
9254
  {
8883
- id: 'glm-4.5v',
8884
- ownedBy: 'zai',
8885
- label: 'GLM-4.5V',
9255
+ id: 'grok-2-vision',
9256
+ ownedBy: 'xai',
9257
+ label: 'Grok 2 Vision',
8886
9258
  modalities: {
8887
- input: ['text', 'image', 'video'],
9259
+ input: ['text', 'image'],
8888
9260
  output: ['text'],
8889
9261
  },
8890
9262
  toolCall: true,
8891
- reasoningText: true,
9263
+ reasoningText: false,
8892
9264
  attachment: true,
8893
9265
  temperature: true,
8894
- knowledge: '2025-04',
8895
- releaseDate: '2025-08-11',
8896
- lastUpdated: '2025-08-11',
8897
- openWeights: true,
9266
+ knowledge: '2024-08',
9267
+ releaseDate: '2024-08-20',
9268
+ lastUpdated: '2024-08-20',
9269
+ openWeights: false,
8898
9270
  cost: {
8899
- input: 0.6,
8900
- output: 1.8,
9271
+ input: 2,
9272
+ output: 10,
9273
+ cacheRead: 2,
8901
9274
  },
8902
9275
  limit: {
8903
- context: 64000,
8904
- output: 16384,
9276
+ context: 8192,
9277
+ output: 4096,
8905
9278
  },
8906
9279
  },
8907
9280
  {
8908
- id: 'glm-4.6',
8909
- ownedBy: 'zai',
8910
- label: 'GLM-4.6',
9281
+ id: 'grok-2-vision-1212',
9282
+ ownedBy: 'xai',
9283
+ label: 'Grok 2 Vision (1212)',
8911
9284
  modalities: {
8912
- input: ['text'],
9285
+ input: ['text', 'image'],
8913
9286
  output: ['text'],
8914
9287
  },
8915
9288
  toolCall: true,
8916
- reasoningText: true,
8917
- attachment: false,
9289
+ reasoningText: false,
9290
+ attachment: true,
8918
9291
  temperature: true,
8919
- knowledge: '2025-04',
8920
- releaseDate: '2025-09-30',
8921
- lastUpdated: '2025-09-30',
8922
- openWeights: true,
9292
+ knowledge: '2024-08',
9293
+ releaseDate: '2024-08-20',
9294
+ lastUpdated: '2024-12-12',
9295
+ openWeights: false,
8923
9296
  cost: {
8924
- input: 0.6,
8925
- output: 2.2,
8926
- cacheRead: 0.11,
8927
- cacheWrite: 0,
9297
+ input: 2,
9298
+ output: 10,
9299
+ cacheRead: 2,
8928
9300
  },
8929
9301
  limit: {
8930
- context: 204800,
8931
- output: 131072,
9302
+ context: 8192,
9303
+ output: 4096,
8932
9304
  },
8933
9305
  },
8934
9306
  {
8935
- id: 'glm-4.6v',
8936
- ownedBy: 'zai',
8937
- label: 'GLM-4.6V',
9307
+ id: 'grok-2-vision-latest',
9308
+ ownedBy: 'xai',
9309
+ label: 'Grok 2 Vision Latest',
8938
9310
  modalities: {
8939
- input: ['text', 'image', 'video'],
9311
+ input: ['text', 'image'],
8940
9312
  output: ['text'],
8941
9313
  },
8942
9314
  toolCall: true,
8943
- reasoningText: true,
9315
+ reasoningText: false,
8944
9316
  attachment: true,
8945
9317
  temperature: true,
8946
- knowledge: '2025-04',
8947
- releaseDate: '2025-12-08',
8948
- lastUpdated: '2025-12-08',
8949
- openWeights: true,
9318
+ knowledge: '2024-08',
9319
+ releaseDate: '2024-08-20',
9320
+ lastUpdated: '2024-12-12',
9321
+ openWeights: false,
8950
9322
  cost: {
8951
- input: 0.3,
8952
- output: 0.9,
9323
+ input: 2,
9324
+ output: 10,
9325
+ cacheRead: 2,
8953
9326
  },
8954
9327
  limit: {
8955
- context: 128000,
8956
- output: 32768,
9328
+ context: 8192,
9329
+ output: 4096,
8957
9330
  },
8958
9331
  },
8959
9332
  {
8960
- id: 'glm-4.7',
8961
- ownedBy: 'zai',
8962
- label: 'GLM-4.7',
9333
+ id: 'grok-3',
9334
+ ownedBy: 'xai',
9335
+ label: 'Grok 3',
8963
9336
  modalities: {
8964
9337
  input: ['text'],
8965
9338
  output: ['text'],
8966
9339
  },
8967
9340
  toolCall: true,
8968
- reasoningText: true,
9341
+ reasoningText: false,
8969
9342
  attachment: false,
8970
9343
  temperature: true,
8971
- knowledge: '2025-04',
8972
- releaseDate: '2025-12-22',
8973
- lastUpdated: '2025-12-22',
8974
- openWeights: true,
9344
+ knowledge: '2024-11',
9345
+ releaseDate: '2025-02-17',
9346
+ lastUpdated: '2025-02-17',
9347
+ openWeights: false,
8975
9348
  cost: {
8976
- input: 0.6,
8977
- output: 2.2,
8978
- cacheRead: 0.11,
8979
- cacheWrite: 0,
8980
- },
8981
- limit: {
8982
- context: 204800,
8983
- output: 131072,
9349
+ input: 3,
9350
+ output: 15,
9351
+ cacheRead: 0.75,
9352
+ },
9353
+ limit: {
9354
+ context: 131072,
9355
+ output: 8192,
8984
9356
  },
8985
9357
  },
8986
9358
  {
8987
- id: 'glm-4.7-flash',
8988
- ownedBy: 'zai',
8989
- label: 'GLM-4.7-Flash',
9359
+ id: 'grok-3-fast',
9360
+ ownedBy: 'xai',
9361
+ label: 'Grok 3 Fast',
8990
9362
  modalities: {
8991
9363
  input: ['text'],
8992
9364
  output: ['text'],
8993
9365
  },
8994
9366
  toolCall: true,
8995
- reasoningText: true,
9367
+ reasoningText: false,
8996
9368
  attachment: false,
8997
9369
  temperature: true,
8998
- knowledge: '2025-04',
8999
- releaseDate: '2026-01-19',
9000
- lastUpdated: '2026-01-19',
9001
- openWeights: true,
9370
+ knowledge: '2024-11',
9371
+ releaseDate: '2025-02-17',
9372
+ lastUpdated: '2025-02-17',
9373
+ openWeights: false,
9002
9374
  cost: {
9003
- input: 0,
9004
- output: 0,
9005
- cacheRead: 0,
9006
- cacheWrite: 0,
9375
+ input: 5,
9376
+ output: 25,
9377
+ cacheRead: 1.25,
9007
9378
  },
9008
9379
  limit: {
9009
- context: 200000,
9010
- output: 131072,
9380
+ context: 131072,
9381
+ output: 8192,
9011
9382
  },
9012
9383
  },
9013
9384
  {
9014
- id: 'glm-4.7-flashx',
9015
- ownedBy: 'zai',
9016
- label: 'GLM-4.7-FlashX',
9385
+ id: 'grok-3-fast-latest',
9386
+ ownedBy: 'xai',
9387
+ label: 'Grok 3 Fast Latest',
9388
+ modalities: {
9389
+ input: ['text'],
9390
+ output: ['text'],
9391
+ },
9392
+ toolCall: true,
9393
+ reasoningText: false,
9394
+ attachment: false,
9395
+ temperature: true,
9396
+ knowledge: '2024-11',
9397
+ releaseDate: '2025-02-17',
9398
+ lastUpdated: '2025-02-17',
9399
+ openWeights: false,
9400
+ cost: {
9401
+ input: 5,
9402
+ output: 25,
9403
+ cacheRead: 1.25,
9404
+ },
9405
+ limit: {
9406
+ context: 131072,
9407
+ output: 8192,
9408
+ },
9409
+ },
9410
+ {
9411
+ id: 'grok-3-latest',
9412
+ ownedBy: 'xai',
9413
+ label: 'Grok 3 Latest',
9414
+ modalities: {
9415
+ input: ['text'],
9416
+ output: ['text'],
9417
+ },
9418
+ toolCall: true,
9419
+ reasoningText: false,
9420
+ attachment: false,
9421
+ temperature: true,
9422
+ knowledge: '2024-11',
9423
+ releaseDate: '2025-02-17',
9424
+ lastUpdated: '2025-02-17',
9425
+ openWeights: false,
9426
+ cost: {
9427
+ input: 3,
9428
+ output: 15,
9429
+ cacheRead: 0.75,
9430
+ },
9431
+ limit: {
9432
+ context: 131072,
9433
+ output: 8192,
9434
+ },
9435
+ },
9436
+ {
9437
+ id: 'grok-3-mini',
9438
+ ownedBy: 'xai',
9439
+ label: 'Grok 3 Mini',
9017
9440
  modalities: {
9018
9441
  input: ['text'],
9019
9442
  output: ['text'],
@@ -9022,25 +9445,24 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
9022
9445
  reasoningText: true,
9023
9446
  attachment: false,
9024
9447
  temperature: true,
9025
- knowledge: '2025-04',
9026
- releaseDate: '2026-01-19',
9027
- lastUpdated: '2026-01-19',
9028
- openWeights: true,
9448
+ knowledge: '2024-11',
9449
+ releaseDate: '2025-02-17',
9450
+ lastUpdated: '2025-02-17',
9451
+ openWeights: false,
9029
9452
  cost: {
9030
- input: 0.07,
9031
- output: 0.4,
9032
- cacheRead: 0.01,
9033
- cacheWrite: 0,
9453
+ input: 0.3,
9454
+ output: 0.5,
9455
+ cacheRead: 0.075,
9034
9456
  },
9035
9457
  limit: {
9036
- context: 200000,
9037
- output: 131072,
9458
+ context: 131072,
9459
+ output: 8192,
9038
9460
  },
9039
9461
  },
9040
9462
  {
9041
- id: 'glm-5',
9042
- ownedBy: 'zai',
9043
- label: 'GLM-5',
9463
+ id: 'grok-3-mini-fast',
9464
+ ownedBy: 'xai',
9465
+ label: 'Grok 3 Mini Fast',
9044
9466
  modalities: {
9045
9467
  input: ['text'],
9046
9468
  output: ['text'],
@@ -9049,24 +9471,24 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
9049
9471
  reasoningText: true,
9050
9472
  attachment: false,
9051
9473
  temperature: true,
9052
- releaseDate: '2026-02-11',
9053
- lastUpdated: '2026-02-11',
9054
- openWeights: true,
9474
+ knowledge: '2024-11',
9475
+ releaseDate: '2025-02-17',
9476
+ lastUpdated: '2025-02-17',
9477
+ openWeights: false,
9055
9478
  cost: {
9056
- input: 1,
9057
- output: 3.2,
9058
- cacheRead: 0.2,
9059
- cacheWrite: 0,
9479
+ input: 0.6,
9480
+ output: 4,
9481
+ cacheRead: 0.15,
9060
9482
  },
9061
9483
  limit: {
9062
- context: 204800,
9063
- output: 131072,
9484
+ context: 131072,
9485
+ output: 8192,
9064
9486
  },
9065
9487
  },
9066
9488
  {
9067
- id: 'glm-5-turbo',
9068
- ownedBy: 'zai',
9069
- label: 'GLM-5-Turbo',
9489
+ id: 'grok-3-mini-fast-latest',
9490
+ ownedBy: 'xai',
9491
+ label: 'Grok 3 Mini Fast Latest',
9070
9492
  modalities: {
9071
9493
  input: ['text'],
9072
9494
  output: ['text'],
@@ -9075,24 +9497,24 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
9075
9497
  reasoningText: true,
9076
9498
  attachment: false,
9077
9499
  temperature: true,
9078
- releaseDate: '2026-03-16',
9079
- lastUpdated: '2026-03-16',
9500
+ knowledge: '2024-11',
9501
+ releaseDate: '2025-02-17',
9502
+ lastUpdated: '2025-02-17',
9080
9503
  openWeights: false,
9081
9504
  cost: {
9082
- input: 1.2,
9505
+ input: 0.6,
9083
9506
  output: 4,
9084
- cacheRead: 0.24,
9085
- cacheWrite: 0,
9507
+ cacheRead: 0.15,
9086
9508
  },
9087
9509
  limit: {
9088
- context: 200000,
9089
- output: 131072,
9510
+ context: 131072,
9511
+ output: 8192,
9090
9512
  },
9091
9513
  },
9092
9514
  {
9093
- id: 'glm-5.1',
9094
- ownedBy: 'zai',
9095
- label: 'GLM-5.1',
9515
+ id: 'grok-3-mini-latest',
9516
+ ownedBy: 'xai',
9517
+ label: 'Grok 3 Mini Latest',
9096
9518
  modalities: {
9097
9519
  input: ['text'],
9098
9520
  output: ['text'],
@@ -9101,55 +9523,336 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
9101
9523
  reasoningText: true,
9102
9524
  attachment: false,
9103
9525
  temperature: true,
9104
- releaseDate: '2026-03-27',
9105
- lastUpdated: '2026-03-27',
9526
+ knowledge: '2024-11',
9527
+ releaseDate: '2025-02-17',
9528
+ lastUpdated: '2025-02-17',
9106
9529
  openWeights: false,
9107
9530
  cost: {
9108
- input: 1.4,
9109
- output: 4.4,
9110
- cacheRead: 0.26,
9111
- cacheWrite: 0,
9531
+ input: 0.3,
9532
+ output: 0.5,
9533
+ cacheRead: 0.075,
9112
9534
  },
9113
9535
  limit: {
9114
- context: 200000,
9115
- output: 131072,
9536
+ context: 131072,
9537
+ output: 8192,
9116
9538
  },
9117
9539
  },
9118
9540
  {
9119
- id: 'glm-5v-turbo',
9120
- ownedBy: 'zai',
9121
- label: 'glm-5v-turbo',
9541
+ id: 'grok-4',
9542
+ ownedBy: 'xai',
9543
+ label: 'Grok 4',
9122
9544
  modalities: {
9123
- input: ['text', 'image', 'video', 'pdf'],
9545
+ input: ['text'],
9546
+ output: ['text'],
9547
+ },
9548
+ toolCall: true,
9549
+ reasoningText: true,
9550
+ attachment: false,
9551
+ temperature: true,
9552
+ knowledge: '2025-07',
9553
+ releaseDate: '2025-07-09',
9554
+ lastUpdated: '2025-07-09',
9555
+ openWeights: false,
9556
+ cost: {
9557
+ input: 3,
9558
+ output: 15,
9559
+ cacheRead: 0.75,
9560
+ },
9561
+ limit: {
9562
+ context: 256000,
9563
+ output: 64000,
9564
+ },
9565
+ },
9566
+ {
9567
+ id: 'grok-4-1-fast',
9568
+ ownedBy: 'xai',
9569
+ label: 'Grok 4.1 Fast',
9570
+ modalities: {
9571
+ input: ['text', 'image'],
9572
+ output: ['text'],
9573
+ },
9574
+ toolCall: true,
9575
+ reasoningText: true,
9576
+ attachment: true,
9577
+ temperature: true,
9578
+ knowledge: '2025-07',
9579
+ releaseDate: '2025-11-19',
9580
+ lastUpdated: '2025-11-19',
9581
+ openWeights: false,
9582
+ cost: {
9583
+ input: 0.2,
9584
+ output: 0.5,
9585
+ cacheRead: 0.05,
9586
+ },
9587
+ limit: {
9588
+ context: 2000000,
9589
+ output: 30000,
9590
+ },
9591
+ },
9592
+ {
9593
+ id: 'grok-4-1-fast-non-reasoning',
9594
+ ownedBy: 'xai',
9595
+ label: 'Grok 4.1 Fast (Non-Reasoning)',
9596
+ modalities: {
9597
+ input: ['text', 'image'],
9598
+ output: ['text'],
9599
+ },
9600
+ toolCall: true,
9601
+ reasoningText: false,
9602
+ attachment: true,
9603
+ temperature: true,
9604
+ knowledge: '2025-07',
9605
+ releaseDate: '2025-11-19',
9606
+ lastUpdated: '2025-11-19',
9607
+ openWeights: false,
9608
+ cost: {
9609
+ input: 0.2,
9610
+ output: 0.5,
9611
+ cacheRead: 0.05,
9612
+ },
9613
+ limit: {
9614
+ context: 2000000,
9615
+ output: 30000,
9616
+ },
9617
+ },
9618
+ {
9619
+ id: 'grok-4-fast',
9620
+ ownedBy: 'xai',
9621
+ label: 'Grok 4 Fast',
9622
+ modalities: {
9623
+ input: ['text', 'image'],
9624
+ output: ['text'],
9625
+ },
9626
+ toolCall: true,
9627
+ reasoningText: true,
9628
+ attachment: true,
9629
+ temperature: true,
9630
+ knowledge: '2025-07',
9631
+ releaseDate: '2025-09-19',
9632
+ lastUpdated: '2025-09-19',
9633
+ openWeights: false,
9634
+ cost: {
9635
+ input: 0.2,
9636
+ output: 0.5,
9637
+ cacheRead: 0.05,
9638
+ },
9639
+ limit: {
9640
+ context: 2000000,
9641
+ output: 30000,
9642
+ },
9643
+ },
9644
+ {
9645
+ id: 'grok-4-fast-non-reasoning',
9646
+ ownedBy: 'xai',
9647
+ label: 'Grok 4 Fast (Non-Reasoning)',
9648
+ modalities: {
9649
+ input: ['text', 'image'],
9650
+ output: ['text'],
9651
+ },
9652
+ toolCall: true,
9653
+ reasoningText: false,
9654
+ attachment: true,
9655
+ temperature: true,
9656
+ knowledge: '2025-07',
9657
+ releaseDate: '2025-09-19',
9658
+ lastUpdated: '2025-09-19',
9659
+ openWeights: false,
9660
+ cost: {
9661
+ input: 0.2,
9662
+ output: 0.5,
9663
+ cacheRead: 0.05,
9664
+ },
9665
+ limit: {
9666
+ context: 2000000,
9667
+ output: 30000,
9668
+ },
9669
+ },
9670
+ {
9671
+ id: 'grok-4.20-0309-non-reasoning',
9672
+ ownedBy: 'xai',
9673
+ label: 'Grok 4.20 (Non-Reasoning)',
9674
+ modalities: {
9675
+ input: ['text', 'image'],
9676
+ output: ['text'],
9677
+ },
9678
+ toolCall: true,
9679
+ reasoningText: false,
9680
+ attachment: true,
9681
+ temperature: true,
9682
+ releaseDate: '2026-03-09',
9683
+ lastUpdated: '2026-03-09',
9684
+ openWeights: false,
9685
+ cost: {
9686
+ input: 2,
9687
+ output: 6,
9688
+ cacheRead: 0.2,
9689
+ },
9690
+ limit: {
9691
+ context: 2000000,
9692
+ output: 30000,
9693
+ },
9694
+ },
9695
+ {
9696
+ id: 'grok-4.20-0309-reasoning',
9697
+ ownedBy: 'xai',
9698
+ label: 'Grok 4.20 (Reasoning)',
9699
+ modalities: {
9700
+ input: ['text', 'image'],
9701
+ output: ['text'],
9702
+ },
9703
+ toolCall: true,
9704
+ reasoningText: true,
9705
+ attachment: true,
9706
+ temperature: true,
9707
+ releaseDate: '2026-03-09',
9708
+ lastUpdated: '2026-03-09',
9709
+ openWeights: false,
9710
+ cost: {
9711
+ input: 2,
9712
+ output: 6,
9713
+ cacheRead: 0.2,
9714
+ },
9715
+ limit: {
9716
+ context: 2000000,
9717
+ output: 30000,
9718
+ },
9719
+ },
9720
+ {
9721
+ id: 'grok-4.20-multi-agent-0309',
9722
+ ownedBy: 'xai',
9723
+ label: 'Grok 4.20 Multi-Agent',
9724
+ modalities: {
9725
+ input: ['text', 'image'],
9726
+ output: ['text'],
9727
+ },
9728
+ toolCall: false,
9729
+ reasoningText: true,
9730
+ attachment: true,
9731
+ temperature: true,
9732
+ releaseDate: '2026-03-09',
9733
+ lastUpdated: '2026-03-09',
9734
+ openWeights: false,
9735
+ cost: {
9736
+ input: 2,
9737
+ output: 6,
9738
+ cacheRead: 0.2,
9739
+ },
9740
+ limit: {
9741
+ context: 2000000,
9742
+ output: 30000,
9743
+ },
9744
+ },
9745
+ {
9746
+ id: 'grok-4.3',
9747
+ ownedBy: 'xai',
9748
+ label: 'Grok 4.3',
9749
+ modalities: {
9750
+ input: ['text', 'image'],
9751
+ output: ['text'],
9752
+ },
9753
+ toolCall: true,
9754
+ reasoningText: true,
9755
+ attachment: true,
9756
+ temperature: true,
9757
+ releaseDate: '2026-05-01',
9758
+ lastUpdated: '2026-05-01',
9759
+ openWeights: false,
9760
+ cost: {
9761
+ input: 1.25,
9762
+ output: 2.5,
9763
+ cacheRead: 0.2,
9764
+ },
9765
+ limit: {
9766
+ context: 1000000,
9767
+ output: 30000,
9768
+ },
9769
+ },
9770
+ {
9771
+ id: 'grok-beta',
9772
+ ownedBy: 'xai',
9773
+ label: 'Grok Beta',
9774
+ modalities: {
9775
+ input: ['text'],
9776
+ output: ['text'],
9777
+ },
9778
+ toolCall: true,
9779
+ reasoningText: false,
9780
+ attachment: false,
9781
+ temperature: true,
9782
+ knowledge: '2024-08',
9783
+ releaseDate: '2024-11-01',
9784
+ lastUpdated: '2024-11-01',
9785
+ openWeights: false,
9786
+ cost: {
9787
+ input: 5,
9788
+ output: 15,
9789
+ cacheRead: 5,
9790
+ },
9791
+ limit: {
9792
+ context: 131072,
9793
+ output: 4096,
9794
+ },
9795
+ },
9796
+ {
9797
+ id: 'grok-code-fast-1',
9798
+ ownedBy: 'xai',
9799
+ label: 'Grok Code Fast 1',
9800
+ modalities: {
9801
+ input: ['text'],
9802
+ output: ['text'],
9803
+ },
9804
+ toolCall: true,
9805
+ reasoningText: true,
9806
+ attachment: false,
9807
+ temperature: true,
9808
+ knowledge: '2023-10',
9809
+ releaseDate: '2025-08-28',
9810
+ lastUpdated: '2025-08-28',
9811
+ openWeights: false,
9812
+ cost: {
9813
+ input: 0.2,
9814
+ output: 1.5,
9815
+ cacheRead: 0.02,
9816
+ },
9817
+ limit: {
9818
+ context: 256000,
9819
+ output: 10000,
9820
+ },
9821
+ },
9822
+ {
9823
+ id: 'grok-vision-beta',
9824
+ ownedBy: 'xai',
9825
+ label: 'Grok Vision Beta',
9826
+ modalities: {
9827
+ input: ['text', 'image'],
9124
9828
  output: ['text'],
9125
9829
  },
9126
9830
  toolCall: true,
9127
- reasoningText: true,
9831
+ reasoningText: false,
9128
9832
  attachment: true,
9129
9833
  temperature: true,
9130
- releaseDate: '2026-04-01',
9131
- lastUpdated: '2026-04-01',
9834
+ knowledge: '2024-08',
9835
+ releaseDate: '2024-11-01',
9836
+ lastUpdated: '2024-11-01',
9132
9837
  openWeights: false,
9133
9838
  cost: {
9134
- input: 1.2,
9135
- output: 4,
9136
- cacheRead: 0.24,
9137
- cacheWrite: 0,
9839
+ input: 5,
9840
+ output: 15,
9841
+ cacheRead: 5,
9138
9842
  },
9139
9843
  limit: {
9140
- context: 200000,
9141
- output: 131072,
9844
+ context: 8192,
9845
+ output: 4096,
9142
9846
  },
9143
9847
  },
9144
9848
  ],
9145
- label: 'Z.AI',
9146
- env: ['ZHIPU_API_KEY'],
9147
- npm: '@ai-sdk/openai-compatible',
9148
- api: 'https://api.z.ai/api/paas/v4',
9149
- doc: 'https://docs.z.ai/guides/overview/pricing',
9849
+ label: 'xAI',
9850
+ env: ['XAI_API_KEY'],
9851
+ npm: '@ai-sdk/xai',
9852
+ doc: 'https://docs.x.ai/docs/models',
9150
9853
  },
9151
- 'zai-coding': {
9152
- id: 'zai-coding',
9854
+ zai: {
9855
+ id: 'zai',
9153
9856
  models: [
9154
9857
  {
9155
9858
  id: 'glm-4.5',
@@ -9168,9 +9871,9 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
9168
9871
  lastUpdated: '2025-07-28',
9169
9872
  openWeights: true,
9170
9873
  cost: {
9171
- input: 0,
9172
- output: 0,
9173
- cacheRead: 0,
9874
+ input: 0.6,
9875
+ output: 2.2,
9876
+ cacheRead: 0.11,
9174
9877
  cacheWrite: 0,
9175
9878
  },
9176
9879
  limit: {
@@ -9195,9 +9898,9 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
9195
9898
  lastUpdated: '2025-07-28',
9196
9899
  openWeights: true,
9197
9900
  cost: {
9198
- input: 0,
9199
- output: 0,
9200
- cacheRead: 0,
9901
+ input: 0.2,
9902
+ output: 1.1,
9903
+ cacheRead: 0.03,
9201
9904
  cacheWrite: 0,
9202
9905
  },
9203
9906
  limit: {
@@ -9249,8 +9952,8 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
9249
9952
  lastUpdated: '2025-08-11',
9250
9953
  openWeights: true,
9251
9954
  cost: {
9252
- input: 0,
9253
- output: 0,
9955
+ input: 0.6,
9956
+ output: 1.8,
9254
9957
  },
9255
9958
  limit: {
9256
9959
  context: 64000,
@@ -9274,9 +9977,9 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
9274
9977
  lastUpdated: '2025-09-30',
9275
9978
  openWeights: true,
9276
9979
  cost: {
9277
- input: 0,
9278
- output: 0,
9279
- cacheRead: 0,
9980
+ input: 0.6,
9981
+ output: 2.2,
9982
+ cacheRead: 0.11,
9280
9983
  cacheWrite: 0,
9281
9984
  },
9282
9985
  limit: {
@@ -9301,8 +10004,8 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
9301
10004
  lastUpdated: '2025-12-08',
9302
10005
  openWeights: true,
9303
10006
  cost: {
9304
- input: 0,
9305
- output: 0,
10007
+ input: 0.3,
10008
+ output: 0.9,
9306
10009
  },
9307
10010
  limit: {
9308
10011
  context: 128000,
@@ -9326,9 +10029,9 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
9326
10029
  lastUpdated: '2025-12-22',
9327
10030
  openWeights: true,
9328
10031
  cost: {
9329
- input: 0,
9330
- output: 0,
9331
- cacheRead: 0,
10032
+ input: 0.6,
10033
+ output: 2.2,
10034
+ cacheRead: 0.11,
9332
10035
  cacheWrite: 0,
9333
10036
  },
9334
10037
  limit: {
@@ -9405,6 +10108,148 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
9405
10108
  releaseDate: '2026-02-11',
9406
10109
  lastUpdated: '2026-02-11',
9407
10110
  openWeights: true,
10111
+ cost: {
10112
+ input: 1,
10113
+ output: 3.2,
10114
+ cacheRead: 0.2,
10115
+ cacheWrite: 0,
10116
+ },
10117
+ limit: {
10118
+ context: 204800,
10119
+ output: 131072,
10120
+ },
10121
+ },
10122
+ {
10123
+ id: 'glm-5-turbo',
10124
+ ownedBy: 'zai',
10125
+ label: 'GLM-5-Turbo',
10126
+ modalities: {
10127
+ input: ['text'],
10128
+ output: ['text'],
10129
+ },
10130
+ toolCall: true,
10131
+ reasoningText: true,
10132
+ attachment: false,
10133
+ temperature: true,
10134
+ releaseDate: '2026-03-16',
10135
+ lastUpdated: '2026-03-16',
10136
+ openWeights: false,
10137
+ cost: {
10138
+ input: 1.2,
10139
+ output: 4,
10140
+ cacheRead: 0.24,
10141
+ cacheWrite: 0,
10142
+ },
10143
+ limit: {
10144
+ context: 200000,
10145
+ output: 131072,
10146
+ },
10147
+ },
10148
+ {
10149
+ id: 'glm-5.1',
10150
+ ownedBy: 'zai',
10151
+ label: 'GLM-5.1',
10152
+ modalities: {
10153
+ input: ['text'],
10154
+ output: ['text'],
10155
+ },
10156
+ toolCall: true,
10157
+ reasoningText: true,
10158
+ attachment: false,
10159
+ temperature: true,
10160
+ releaseDate: '2026-03-27',
10161
+ lastUpdated: '2026-03-27',
10162
+ openWeights: false,
10163
+ cost: {
10164
+ input: 1.4,
10165
+ output: 4.4,
10166
+ cacheRead: 0.26,
10167
+ cacheWrite: 0,
10168
+ },
10169
+ limit: {
10170
+ context: 200000,
10171
+ output: 131072,
10172
+ },
10173
+ },
10174
+ {
10175
+ id: 'glm-5v-turbo',
10176
+ ownedBy: 'zai',
10177
+ label: 'GLM-5V-Turbo',
10178
+ modalities: {
10179
+ input: ['text', 'image', 'video', 'pdf'],
10180
+ output: ['text'],
10181
+ },
10182
+ toolCall: true,
10183
+ reasoningText: true,
10184
+ attachment: true,
10185
+ temperature: true,
10186
+ releaseDate: '2026-04-01',
10187
+ lastUpdated: '2026-04-01',
10188
+ openWeights: false,
10189
+ cost: {
10190
+ input: 1.2,
10191
+ output: 4,
10192
+ cacheRead: 0.24,
10193
+ cacheWrite: 0,
10194
+ },
10195
+ limit: {
10196
+ context: 200000,
10197
+ output: 131072,
10198
+ },
10199
+ },
10200
+ ],
10201
+ label: 'Z.AI',
10202
+ env: ['ZHIPU_API_KEY'],
10203
+ npm: '@ai-sdk/openai-compatible',
10204
+ api: 'https://api.z.ai/api/paas/v4',
10205
+ doc: 'https://docs.z.ai/guides/overview/pricing',
10206
+ },
10207
+ 'zai-coding': {
10208
+ id: 'zai-coding',
10209
+ models: [
10210
+ {
10211
+ id: 'glm-4.5-air',
10212
+ ownedBy: 'zai',
10213
+ label: 'GLM-4.5-Air',
10214
+ modalities: {
10215
+ input: ['text'],
10216
+ output: ['text'],
10217
+ },
10218
+ toolCall: true,
10219
+ reasoningText: true,
10220
+ attachment: false,
10221
+ temperature: true,
10222
+ knowledge: '2025-04',
10223
+ releaseDate: '2025-07-28',
10224
+ lastUpdated: '2025-07-28',
10225
+ openWeights: true,
10226
+ cost: {
10227
+ input: 0,
10228
+ output: 0,
10229
+ cacheRead: 0,
10230
+ cacheWrite: 0,
10231
+ },
10232
+ limit: {
10233
+ context: 131072,
10234
+ output: 98304,
10235
+ },
10236
+ },
10237
+ {
10238
+ id: 'glm-4.7',
10239
+ ownedBy: 'zai',
10240
+ label: 'GLM-4.7',
10241
+ modalities: {
10242
+ input: ['text'],
10243
+ output: ['text'],
10244
+ },
10245
+ toolCall: true,
10246
+ reasoningText: true,
10247
+ attachment: false,
10248
+ temperature: true,
10249
+ knowledge: '2025-04',
10250
+ releaseDate: '2025-12-22',
10251
+ lastUpdated: '2025-12-22',
10252
+ openWeights: true,
9408
10253
  cost: {
9409
10254
  input: 0,
9410
10255
  output: 0,
@@ -9471,7 +10316,7 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
9471
10316
  {
9472
10317
  id: 'glm-5v-turbo',
9473
10318
  ownedBy: 'zai',
9474
- label: 'glm-5v-turbo',
10319
+ label: 'GLM-5V-Turbo',
9475
10320
  modalities: {
9476
10321
  input: ['text', 'image', 'video', 'pdf'],
9477
10322
  output: ['text'],
@@ -10483,6 +11328,31 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
10483
11328
  output: 128000,
10484
11329
  },
10485
11330
  },
11331
+ {
11332
+ id: 'gpt-5.5',
11333
+ ownedBy: 'openai',
11334
+ label: 'GPT-5.5',
11335
+ modalities: {
11336
+ input: ['text', 'image'],
11337
+ output: ['text'],
11338
+ },
11339
+ toolCall: true,
11340
+ reasoningText: true,
11341
+ attachment: false,
11342
+ temperature: false,
11343
+ knowledge: '2025-08-31',
11344
+ releaseDate: '2026-04-22',
11345
+ lastUpdated: '2026-04-22',
11346
+ openWeights: false,
11347
+ cost: {
11348
+ input: 0,
11349
+ output: 0,
11350
+ },
11351
+ limit: {
11352
+ context: 400000,
11353
+ output: 128000,
11354
+ },
11355
+ },
10486
11356
  {
10487
11357
  id: 'grok-code-fast-1',
10488
11358
  ownedBy: 'xai',
@@ -10572,6 +11442,42 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
10572
11442
  output: 65536,
10573
11443
  },
10574
11444
  },
11445
+ {
11446
+ id: 'deepseek-v4-flash',
11447
+ label: 'deepseek-v4-flash',
11448
+ modalities: {
11449
+ input: ['text'],
11450
+ output: ['text'],
11451
+ },
11452
+ toolCall: true,
11453
+ reasoningText: true,
11454
+ attachment: false,
11455
+ releaseDate: '2026-04-24',
11456
+ lastUpdated: '2026-04-24',
11457
+ openWeights: true,
11458
+ limit: {
11459
+ context: 1048576,
11460
+ output: 1048576,
11461
+ },
11462
+ },
11463
+ {
11464
+ id: 'deepseek-v4-pro',
11465
+ label: 'deepseek-v4-pro',
11466
+ modalities: {
11467
+ input: ['text'],
11468
+ output: ['text'],
11469
+ },
11470
+ toolCall: true,
11471
+ reasoningText: true,
11472
+ attachment: false,
11473
+ releaseDate: '2026-04-24',
11474
+ lastUpdated: '2026-04-24',
11475
+ openWeights: true,
11476
+ limit: {
11477
+ context: 1048576,
11478
+ output: 1048576,
11479
+ },
11480
+ },
10575
11481
  {
10576
11482
  id: 'devstral-2:123b',
10577
11483
  label: 'devstral-2:123b',
@@ -10966,8 +11872,8 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
10966
11872
  lastUpdated: '2026-03-18',
10967
11873
  openWeights: true,
10968
11874
  limit: {
10969
- context: 204800,
10970
- output: 131072,
11875
+ context: 196608,
11876
+ output: 196608,
10971
11877
  },
10972
11878
  },
10973
11879
  {
@@ -11183,7 +12089,7 @@ export const catalog: Partial<Record<BuiltInProviderId, ProviderCatalogEntry>> =
11183
12089
  openWeights: true,
11184
12090
  limit: {
11185
12091
  context: 262144,
11186
- output: 81920,
12092
+ output: 65536,
11187
12093
  },
11188
12094
  },
11189
12095
  {