wallaby-ai-provider
v0.1.1
Published
Wallaby (Kimi K3) provider for the Vercel AI SDK — OpenAI-compatible, pay-per-token
Maintainers
Readme
wallaby-ai-provider
Wallaby provider for the Vercel AI SDK — Kimi K3 over an OpenAI-compatible endpoint, pay-per-token, no subscription.
Install
npm install wallaby-ai-provider aiUsage
import { generateText } from 'ai';
import { wallaby } from 'wallaby-ai-provider';
const { text } = await generateText({
model: wallaby('kimi-k3'),
prompt: 'Hello, world',
});Set your API key (get one at wallabytoken.com):
export WALLABY_API_KEY=sk-...Custom instance
import { createWallaby } from 'wallaby-ai-provider';
const myWallaby = createWallaby({
apiKey: 'sk-...', // defaults to process.env.WALLABY_API_KEY
// baseURL: 'https://api.wallabytoken.com/v1',
});
const model = myWallaby('kimi-k3');Models
| Model | Context | Max output | Pricing (per 1M tokens, 10% off the official list) |
|---|---|---|---|
| kimi-k3 | 1,048,576 | 131,072 | $2.70 in / $13.50 out / $0.27 cache hit |
License
MIT — WALLABY DATA PTY LTD
