getaiapi 1.0.1 → 1.0.3
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)
|
|
7
7
|
[](https://www.typescriptlang.org/)
|
|
8
8
|
|
|
9
|
-
A unified TypeScript library that wraps 1,
|
|
9
|
+
A unified TypeScript library that wraps 1,890+ 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
|
|
|
@@ -173,7 +173,7 @@ export REPLICATE_API_TOKEN="your-replicate-token"
|
|
|
173
173
|
# WaveSpeed (66 models)
|
|
174
174
|
export WAVESPEED_API_KEY="your-wavespeed-key"
|
|
175
175
|
|
|
176
|
-
# OpenRouter (
|
|
176
|
+
# OpenRouter (24 LLM models — Claude, GPT, Gemini, Llama, etc.)
|
|
177
177
|
export OPENROUTER_API_KEY="your-openrouter-key"
|
|
178
178
|
```
|
|
179
179
|
|
|
@@ -259,7 +259,7 @@ Models declare their input and output types via `modality`. There are no fixed c
|
|
|
259
259
|
|
|
260
260
|
**Output types:** `image`, `video`, `audio`, `text`, `3d`, `segmentation`
|
|
261
261
|
|
|
262
|
-
Common combinations across 1,
|
|
262
|
+
Common combinations across 1,890+ models:
|
|
263
263
|
|
|
264
264
|
| Inputs | Outputs | Example |
|
|
265
265
|
|---|---|---|
|
|
@@ -280,7 +280,7 @@ Common combinations across 1,940+ models:
|
|
|
280
280
|
| fal-ai | 1,201 | `FAL_KEY` | Native fetch |
|
|
281
281
|
| Replicate | 687 | `REPLICATE_API_TOKEN` | Native fetch |
|
|
282
282
|
| WaveSpeed | 66 | `WAVESPEED_API_KEY` | Native fetch |
|
|
283
|
-
| OpenRouter |
|
|
283
|
+
| OpenRouter | 24 | `OPENROUTER_API_KEY` | Native fetch |
|
|
284
284
|
|
|
285
285
|
Zero external dependencies -- all provider communication uses native `fetch`. Works in Node.js, Vercel Edge, Cloudflare Workers, Deno, Bun, and any ESM runtime -- no `fs` or special bundler config needed.
|
|
286
286
|
|
|
@@ -30467,6 +30467,7 @@ var registry_default = [
|
|
|
30467
30467
|
endpoint: "fal-ai/kling-video/ai-avatar/v2/pro",
|
|
30468
30468
|
auth_env: "FAL_KEY",
|
|
30469
30469
|
param_map: {
|
|
30470
|
+
audio: "audio_url",
|
|
30470
30471
|
image: "image_url",
|
|
30471
30472
|
prompt: "prompt",
|
|
30472
30473
|
negative_prompt: "negative_prompt",
|
|
@@ -32468,14 +32469,16 @@ var registry_default = [
|
|
|
32468
32469
|
endpoint: "fal-ai/kling-video/v3/pro/image-to-video",
|
|
32469
32470
|
auth_env: "FAL_KEY",
|
|
32470
32471
|
param_map: {
|
|
32471
|
-
image: "
|
|
32472
|
+
image: "start_image_url",
|
|
32472
32473
|
prompt: "prompt",
|
|
32473
32474
|
negative_prompt: "negative_prompt",
|
|
32474
|
-
|
|
32475
|
-
|
|
32476
|
-
|
|
32477
|
-
|
|
32478
|
-
|
|
32475
|
+
duration: "duration",
|
|
32476
|
+
generate_audio: "generate_audio",
|
|
32477
|
+
end_image_url: "end_image_url",
|
|
32478
|
+
voice_ids: "voice_ids",
|
|
32479
|
+
elements: "elements",
|
|
32480
|
+
aspect_ratio: "aspect_ratio",
|
|
32481
|
+
cfg_scale: "cfg_scale"
|
|
32479
32482
|
},
|
|
32480
32483
|
output_map: {
|
|
32481
32484
|
type: "video",
|
|
@@ -72491,4 +72494,4 @@ export {
|
|
|
72491
72494
|
listModels,
|
|
72492
72495
|
deriveCategory
|
|
72493
72496
|
};
|
|
72494
|
-
//# sourceMappingURL=chunk-
|
|
72497
|
+
//# sourceMappingURL=chunk-3DXKHPWP.js.map
|