getaiapi 0.4.1 → 0.4.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "getaiapi",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "type": "module",
5
5
  "description": "Unified AI API Gateway - one function to call any AI model",
6
6
  "main": "./dist/index.js",
@@ -52,7 +52,9 @@
52
52
  "prepublishOnly": "npm run build",
53
53
  "test": "vitest run",
54
54
  "catalog": "tsx scripts/catalog.ts",
55
- "generate-registry": "tsx scripts/generate-registry.ts"
55
+ "generate-registry": "tsx scripts/generate-registry.ts",
56
+ "generate-models": "node scripts/generate-models-md.js",
57
+ "validate-registry": "node scripts/validate-registry.js"
56
58
  },
57
59
  "devDependencies": {
58
60
  "@fal-ai/client": "^1.9.4",
@@ -1443,35 +1443,6 @@
1443
1443
  }
1444
1444
  ]
1445
1445
  },
1446
- {
1447
- "canonical_name": "anthropic-claude-4.5-haiku",
1448
- "aliases": [
1449
- "anthropic-claude-4.5-haiku"
1450
- ],
1451
- "category": "text-generation",
1452
- "modality": {
1453
- "inputs": [
1454
- "text"
1455
- ],
1456
- "outputs": [
1457
- "text"
1458
- ]
1459
- },
1460
- "providers": [
1461
- {
1462
- "provider": "replicate",
1463
- "skill_id": "replicate-anthropic-claude-4.5-haiku",
1464
- "endpoint": "anthropic/claude-4.5-haiku",
1465
- "auth_env": "REPLICATE_API_TOKEN",
1466
- "param_map": {},
1467
- "output_map": {
1468
- "type": "image",
1469
- "extract_path": "output[]",
1470
- "content_type": "image/png"
1471
- }
1472
- }
1473
- ]
1474
- },
1475
1446
  {
1476
1447
  "canonical_name": "anthropic-claude-4.5-sonnet",
1477
1448
  "aliases": [
@@ -1501,35 +1472,6 @@
1501
1472
  }
1502
1473
  ]
1503
1474
  },
1504
- {
1505
- "canonical_name": "anthropic-claude-opus-4.6",
1506
- "aliases": [
1507
- "anthropic-claude-opus-4.6"
1508
- ],
1509
- "category": "text-generation",
1510
- "modality": {
1511
- "inputs": [
1512
- "text"
1513
- ],
1514
- "outputs": [
1515
- "text"
1516
- ]
1517
- },
1518
- "providers": [
1519
- {
1520
- "provider": "replicate",
1521
- "skill_id": "replicate-anthropic-claude-opus-4.6",
1522
- "endpoint": "anthropic/claude-opus-4.6",
1523
- "auth_env": "REPLICATE_API_TOKEN",
1524
- "param_map": {},
1525
- "output_map": {
1526
- "type": "image",
1527
- "extract_path": "output[]",
1528
- "content_type": "image/png"
1529
- }
1530
- }
1531
- ]
1532
- },
1533
1475
  {
1534
1476
  "canonical_name": "appmeloncreator-platmoji-beta",
1535
1477
  "aliases": [
@@ -7904,8 +7846,9 @@
7904
7846
  {
7905
7847
  "canonical_name": "claude-haiku-4-5",
7906
7848
  "aliases": [
7907
- "claude-haiku-4-5",
7849
+ "anthropic-claude-4.5-haiku",
7908
7850
  "claude-haiku",
7851
+ "claude-haiku-4-5",
7909
7852
  "haiku-4-5"
7910
7853
  ],
7911
7854
  "category": "text-generation",
@@ -7929,14 +7872,27 @@
7929
7872
  "extract_path": "choices[0].message.content",
7930
7873
  "content_type": "text/plain"
7931
7874
  }
7875
+ },
7876
+ {
7877
+ "provider": "replicate",
7878
+ "skill_id": "replicate-anthropic-claude-4.5-haiku",
7879
+ "endpoint": "anthropic/claude-4.5-haiku",
7880
+ "auth_env": "REPLICATE_API_TOKEN",
7881
+ "param_map": {},
7882
+ "output_map": {
7883
+ "type": "image",
7884
+ "extract_path": "output[]",
7885
+ "content_type": "image/png"
7886
+ }
7932
7887
  }
7933
7888
  ]
7934
7889
  },
7935
7890
  {
7936
7891
  "canonical_name": "claude-opus-4-6",
7937
7892
  "aliases": [
7938
- "claude-opus-4-6",
7893
+ "anthropic-claude-opus-4.6",
7939
7894
  "claude-opus",
7895
+ "claude-opus-4-6",
7940
7896
  "opus-4-6"
7941
7897
  ],
7942
7898
  "category": "text-generation",
@@ -7960,6 +7916,18 @@
7960
7916
  "extract_path": "choices[0].message.content",
7961
7917
  "content_type": "text/plain"
7962
7918
  }
7919
+ },
7920
+ {
7921
+ "provider": "replicate",
7922
+ "skill_id": "replicate-anthropic-claude-opus-4.6",
7923
+ "endpoint": "anthropic/claude-opus-4.6",
7924
+ "auth_env": "REPLICATE_API_TOKEN",
7925
+ "param_map": {},
7926
+ "output_map": {
7927
+ "type": "image",
7928
+ "extract_path": "output[]",
7929
+ "content_type": "image/png"
7930
+ }
7963
7931
  }
7964
7932
  ]
7965
7933
  },
@@ -9283,35 +9251,6 @@
9283
9251
  }
9284
9252
  ]
9285
9253
  },
9286
- {
9287
- "canonical_name": "deepseek-ai-deepseek-v3",
9288
- "aliases": [
9289
- "deepseek-ai-deepseek-v3"
9290
- ],
9291
- "category": "text-generation",
9292
- "modality": {
9293
- "inputs": [
9294
- "text"
9295
- ],
9296
- "outputs": [
9297
- "text"
9298
- ]
9299
- },
9300
- "providers": [
9301
- {
9302
- "provider": "replicate",
9303
- "skill_id": "replicate-deepseek-ai-deepseek-v3",
9304
- "endpoint": "deepseek-ai/deepseek-v3",
9305
- "auth_env": "REPLICATE_API_TOKEN",
9306
- "param_map": {},
9307
- "output_map": {
9308
- "type": "image",
9309
- "extract_path": "output[]",
9310
- "content_type": "image/png"
9311
- }
9312
- }
9313
- ]
9314
- },
9315
9254
  {
9316
9255
  "canonical_name": "deepseek-ai-deepseek-v3.1",
9317
9256
  "aliases": [
@@ -9345,8 +9284,9 @@
9345
9284
  {
9346
9285
  "canonical_name": "deepseek-v3",
9347
9286
  "aliases": [
9348
- "deepseek-v3",
9349
- "deepseek-chat"
9287
+ "deepseek-ai-deepseek-v3",
9288
+ "deepseek-chat",
9289
+ "deepseek-v3"
9350
9290
  ],
9351
9291
  "category": "text-generation",
9352
9292
  "modality": {
@@ -9369,6 +9309,18 @@
9369
9309
  "extract_path": "choices[0].message.content",
9370
9310
  "content_type": "text/plain"
9371
9311
  }
9312
+ },
9313
+ {
9314
+ "provider": "replicate",
9315
+ "skill_id": "replicate-deepseek-ai-deepseek-v3",
9316
+ "endpoint": "deepseek-ai/deepseek-v3",
9317
+ "auth_env": "REPLICATE_API_TOKEN",
9318
+ "param_map": {},
9319
+ "output_map": {
9320
+ "type": "image",
9321
+ "extract_path": "output[]",
9322
+ "content_type": "image/png"
9323
+ }
9372
9324
  }
9373
9325
  ]
9374
9326
  },
@@ -18524,6 +18476,18 @@
18524
18476
  "extract_path": "choices[0].message.content",
18525
18477
  "content_type": "text/plain"
18526
18478
  }
18479
+ },
18480
+ {
18481
+ "provider": "replicate",
18482
+ "skill_id": "replicate-openai-gpt-4o",
18483
+ "endpoint": "openai/gpt-4o",
18484
+ "auth_env": "REPLICATE_API_TOKEN",
18485
+ "param_map": {},
18486
+ "output_map": {
18487
+ "type": "image",
18488
+ "extract_path": "output[]",
18489
+ "content_type": "image/png"
18490
+ }
18527
18491
  }
18528
18492
  ]
18529
18493
  },
@@ -18554,6 +18518,18 @@
18554
18518
  "extract_path": "choices[0].message.content",
18555
18519
  "content_type": "text/plain"
18556
18520
  }
18521
+ },
18522
+ {
18523
+ "provider": "replicate",
18524
+ "skill_id": "replicate-openai-gpt-4o-mini",
18525
+ "endpoint": "openai/gpt-4o-mini",
18526
+ "auth_env": "REPLICATE_API_TOKEN",
18527
+ "param_map": {},
18528
+ "output_map": {
18529
+ "type": "image",
18530
+ "extract_path": "output[]",
18531
+ "content_type": "image/png"
18532
+ }
18557
18533
  }
18558
18534
  ]
18559
18535
  },
@@ -37786,66 +37762,6 @@
37786
37762
  }
37787
37763
  ]
37788
37764
  },
37789
- {
37790
- "canonical_name": "openai-gpt-4o",
37791
- "aliases": [
37792
- "openai-gpt-4o",
37793
- "gpt-4o"
37794
- ],
37795
- "category": "text-generation",
37796
- "modality": {
37797
- "inputs": [
37798
- "text"
37799
- ],
37800
- "outputs": [
37801
- "text"
37802
- ]
37803
- },
37804
- "providers": [
37805
- {
37806
- "provider": "replicate",
37807
- "skill_id": "replicate-openai-gpt-4o",
37808
- "endpoint": "openai/gpt-4o",
37809
- "auth_env": "REPLICATE_API_TOKEN",
37810
- "param_map": {},
37811
- "output_map": {
37812
- "type": "image",
37813
- "extract_path": "output[]",
37814
- "content_type": "image/png"
37815
- }
37816
- }
37817
- ]
37818
- },
37819
- {
37820
- "canonical_name": "openai-gpt-4o-mini",
37821
- "aliases": [
37822
- "openai-gpt-4o-mini",
37823
- "gpt-4o-mini"
37824
- ],
37825
- "category": "text-generation",
37826
- "modality": {
37827
- "inputs": [
37828
- "text"
37829
- ],
37830
- "outputs": [
37831
- "text"
37832
- ]
37833
- },
37834
- "providers": [
37835
- {
37836
- "provider": "replicate",
37837
- "skill_id": "replicate-openai-gpt-4o-mini",
37838
- "endpoint": "openai/gpt-4o-mini",
37839
- "auth_env": "REPLICATE_API_TOKEN",
37840
- "param_map": {},
37841
- "output_map": {
37842
- "type": "image",
37843
- "extract_path": "output[]",
37844
- "content_type": "image/png"
37845
- }
37846
- }
37847
- ]
37848
- },
37849
37765
  {
37850
37766
  "canonical_name": "openai-gpt-4o-mini-transcribe",
37851
37767
  "aliases": [