getaiapi 0.4.10 → 0.4.12

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/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
7
7
  [![TypeScript](https://img.shields.io/badge/TypeScript-strict-blue.svg)](https://www.typescriptlang.org/)
8
8
 
9
- A unified TypeScript library that wraps 1,940+ AI models across 4 providers into a single `generate()` function. One input shape. One output shape. Any model.
9
+ A unified TypeScript library that wraps 1,876+ AI models across 4 providers into a single `generate()` function. One input shape. One output shape. Any model.
10
10
 
11
11
  ## Install
12
12
 
@@ -210,40 +210,41 @@ const model = getModel('flux-schnell')
210
210
 
211
211
  | Category | Input | Output | Models |
212
212
  |---|---|---|---|
213
- | `text-to-image` | text | image | 794 |
214
- | `text-to-video` | text | video | 294 |
215
- | `image-edit` | image + text | image | 212 |
216
- | `image-to-video` | image + text | video | 187 |
217
- | `text-to-audio` | text | audio | 76 |
218
- | `upscale-image` | image | image | 59 |
213
+ | `text-to-image` | text | image | 281 |
214
+ | `image-edit` | image + text | image | 238 |
215
+ | `image-to-video` | image + text | video | 211 |
216
+ | `text-to-video` | text | video | 202 |
217
+ | `image-to-image` | image + text | image | 176 |
218
+ | `video-to-video` | video | video | 152 |
219
+ | `text-to-audio` | text | audio | 127 |
220
+ | `text-generation` | text | text | 95 |
221
+ | `upscale-image` | image | image | 63 |
222
+ | `image-to-text` | image | text | 54 |
219
223
  | `training` | images | model | 50 |
220
- | `image-to-image` | image + text | image | 43 |
221
- | `segmentation` | image/video | segmentation | 34 |
222
- | `image-to-3d` | image | 3d | 31 |
223
- | `audio-to-text` | audio | text | 25 |
224
- | `remove-background` | image/video | image/video | 24 |
225
- | `text-to-3d` | text | 3d | 19 |
226
- | `video-to-audio` | video | audio | 18 |
227
- | `image-to-text` | image | text | 16 |
228
- | `upscale-video` | video | video | 15 |
229
- | `moderation` | text/image/video | text | 8 |
230
- | `video-to-text` | video | text | 4 |
231
- | `doc-to-text` | file | text | 3 |
232
- | `video-to-video` | video | video | 2 |
233
- | `text-generation` | text | text | 1 |
224
+ | `image-to-3d` | image | 3d | 40 |
225
+ | `segmentation` | image/video | segmentation | 37 |
226
+ | `remove-background` | image/video | image/video | 31 |
227
+ | `audio-to-text` | audio | text | 31 |
228
+ | `upscale-video` | video | video | 20 |
229
+ | `text-to-3d` | text | 3d | 16 |
230
+ | `video-to-text` | video | text | 14 |
231
+ | `video-to-audio` | video | audio | 14 |
232
+ | `moderation` | text/image/video | text | 13 |
233
+ | `doc-to-text` | file | text | 8 |
234
+ | `audio-to-video` | audio | video | 3 |
234
235
 
235
236
  ## Providers
236
237
 
237
238
  | Provider | Models | Auth Env Var | Protocol |
238
239
  |---|---|---|---|
239
- | fal-ai | 1,200 | `FAL_KEY` | Native fetch |
240
+ | fal-ai | 1,201 | `FAL_KEY` | Native fetch |
240
241
  | Replicate | 687 | `REPLICATE_API_TOKEN` | Native fetch |
241
242
  | WaveSpeed | 66 | `WAVESPEED_API_KEY` | Native fetch |
242
243
  | OpenRouter | 10 | `OPENROUTER_API_KEY` | Native fetch |
243
244
 
244
245
  Zero external dependencies -- all provider communication uses native `fetch`.
245
246
 
246
- See the full [Model Directory](docs/MODELS.md) for all 1,915 models with provider availability.
247
+ See the full [Model Directory](docs/MODELS.md) for all 1,876 models with provider availability.
247
248
 
248
249
  ## API Reference
249
250
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "getaiapi",
3
- "version": "0.4.10",
3
+ "version": "0.4.12",
4
4
  "type": "module",
5
5
  "description": "Unified AI API Gateway - one function to call any AI model",
6
6
  "main": "./dist/index.js",
@@ -1,18 +1,27 @@
1
1
  {
2
- "remove-background": 24,
3
- "text-to-image": 828,
4
- "text-to-audio": 76,
5
- "image-edit": 214,
6
- "audio-to-text": 25,
7
- "text-to-3d": 19,
8
- "image-to-video": 178,
9
- "upscale-image": 59,
10
- "text-to-video": 308,
11
- "video-to-audio": 18,
12
- "upscale-video": 15,
13
- "image-to-3d": 31,
14
- "segmentation": 34,
15
- "moderation": 8,
16
- "image-to-image": 43,
17
- "training": 50
18
- }
2
+ "text-to-image": 281,
3
+ "image-edit": 238,
4
+ "image-to-video": 211,
5
+ "text-to-video": 202,
6
+ "image-to-image": 176,
7
+ "video-to-video": 152,
8
+ "text-to-audio": 127,
9
+ "text-generation": 95,
10
+ "upscale-image": 63,
11
+ "image-to-text": 54,
12
+ "training": 50,
13
+ "image-to-3d": 40,
14
+ "segmentation": 37,
15
+ "remove-background": 31,
16
+ "audio-to-text": 31,
17
+ "upscale-video": 20,
18
+ "text-to-3d": 16,
19
+ "video-to-text": 14,
20
+ "video-to-audio": 14,
21
+ "moderation": 13,
22
+ "doc-to-text": 8,
23
+ "audio-to-video": 3,
24
+ "audio-to-audio": 0,
25
+ "audio-edit": 0,
26
+ "voice-clone": 0
27
+ }