Integrations
Vercel AI SDK
Use Lyber models in the Vercel AI SDK through its OpenAI-compatible provider.
npm install ai @ai-sdk/openai-compatibleimport { createOpenAICompatible } from "@ai-sdk/openai-compatible";
import { streamText } from "ai";
const lyber = createOpenAICompatible({
name: "lyber",
baseURL: "https://lyber-paid-acceptance-gateway-production.up.railway.app/v1",
apiKey: process.env.LYBER_API_KEY,
});
const result = streamText({
model: lyber("minimax-m3.1-flash-abliterated"),
prompt: "Write a haiku about open weights.",
maxOutputTokens: 1024,
maxRetries: 0,
});
for await (const text of result.textStream) process.stdout.write(text);Tool calling works through the AI SDK's tools option. Structured output helpers that rely on response_format, such as generateObject, are not supported.