Integrations
Vercel AI SDK with zurelay
Streaming, tools and UI hooks for TypeScript. Made by Vercel.
Model in the examples:
Set it up
- 1
Install
aiand the OpenAI-compatible provider:npm install ai @ai-sdk/openai-compatible. - 2
Create a zurelay provider with the base URL and your key.
- 3
Pass
zurelay(modelId)tostreamText,generateTextor any other AI SDK call.
Configuration
lib/ai.ts
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);Questions, or something missing? Ask support in your dashboard or email support@zurelay.com.