Docs / Frameworks & integrations
Vercel AI SDK
The AI SDK from Vercel works with any OpenAI-compatible endpoint via its OpenAI provider.
Install
Add the package to your project:
bash
npm install ai @ai-sdk/openaiConfigure
Point the client at the gateway base URL with your key:
TypeScript
import { createOpenAI } from "@ai-sdk/openai";
import { generateText } from "ai";
const jackz = createOpenAI({
baseURL: "https://api.jackz.ai/v1",
apiKey: process.env.JACKZ_API_KEY,
});
const { text } = await generateText({
model: jackz("moonshotai/kimi-k3"),
prompt: "Hello",
});
console.log(text);Notes
Any model slug from the catalog works. Refer to the tool's own documentation for advanced configuration.
Official docs: sdk.vercel.ai ↗