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 +24 -23
- package/package.json +1 -1
- package/registry/categories.json +26 -17
- package/registry/registry.json +2533 -2972
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](LICENSE)
|
|
7
7
|
[](https://www.typescriptlang.org/)
|
|
8
8
|
|
|
9
|
-
A unified TypeScript library that wraps 1,
|
|
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 |
|
|
214
|
-
| `
|
|
215
|
-
| `image-
|
|
216
|
-
| `
|
|
217
|
-
| `
|
|
218
|
-
| `
|
|
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-
|
|
221
|
-
| `segmentation` | image/video | segmentation |
|
|
222
|
-
| `
|
|
223
|
-
| `audio-to-text` | audio | text |
|
|
224
|
-
| `
|
|
225
|
-
| `text-to-3d` | text | 3d |
|
|
226
|
-
| `video-to-
|
|
227
|
-
| `
|
|
228
|
-
| `
|
|
229
|
-
| `
|
|
230
|
-
| `
|
|
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,
|
|
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,
|
|
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
package/registry/categories.json
CHANGED
|
@@ -1,18 +1,27 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"image-to-3d":
|
|
14
|
-
"segmentation":
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
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
|
+
}
|