Integrations

Vercel AI SDK with zurelay

Streaming, tools and UI hooks for TypeScript. Made by Vercel.

Model in the examples:

Set it up

  1. 1

    Install ai and the OpenAI-compatible provider: npm install ai @ai-sdk/openai-compatible.

  2. 2

    Create a zurelay provider with the base URL and your key.

  3. 3

    Pass zurelay(modelId) to streamText, generateText or any other AI SDK call.

Configuration

import { createOpenAICompatible } from "@ai-sdk/openai-compatible";
import { streamText } from "ai";
const zurelay = createOpenAICompatible({
name: "zurelay",
baseURL: "https://api.zurelay.com/v1",
apiKey: process.env.ZURELAY_API_KEY,
});
const result = streamText({
model: zurelay("claude-opus-5-5"),
prompt: "Write a haiku about routers.",
});
for await (const text of result.textStream) process.stdout.write(text);

Vercel AI SDK’s own docs

Questions, or something missing? Ask support in your dashboard or email support@zurelay.com.