getaiapi 1.0.1 → 1.0.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/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
|
|
|
@@ -32468,14 +32468,16 @@ var registry_default = [
|
|
|
32468
32468
|
endpoint: "fal-ai/kling-video/v3/pro/image-to-video",
|
|
32469
32469
|
auth_env: "FAL_KEY",
|
|
32470
32470
|
param_map: {
|
|
32471
|
-
image: "
|
|
32471
|
+
image: "start_image_url",
|
|
32472
32472
|
prompt: "prompt",
|
|
32473
32473
|
negative_prompt: "negative_prompt",
|
|
32474
|
-
|
|
32475
|
-
|
|
32476
|
-
|
|
32477
|
-
|
|
32478
|
-
|
|
32474
|
+
duration: "duration",
|
|
32475
|
+
generate_audio: "generate_audio",
|
|
32476
|
+
end_image_url: "end_image_url",
|
|
32477
|
+
voice_ids: "voice_ids",
|
|
32478
|
+
elements: "elements",
|
|
32479
|
+
aspect_ratio: "aspect_ratio",
|
|
32480
|
+
cfg_scale: "cfg_scale"
|
|
32479
32481
|
},
|
|
32480
32482
|
output_map: {
|
|
32481
32483
|
type: "video",
|
|
@@ -72491,4 +72493,4 @@ export {
|
|
|
72491
72493
|
listModels,
|
|
72492
72494
|
deriveCategory
|
|
72493
72495
|
};
|
|
72494
|
-
//# sourceMappingURL=chunk-
|
|
72496
|
+
//# sourceMappingURL=chunk-PVXMWUHJ.js.map
|