Vercel AI SDK
Connects model providers, tools, structured output, and streaming UIs. Point it at ExoticRouter with a base URL and a key: here are the values, and where they go in Vercel AI SDK.
What to enter
Section titled “What to enter”| Setting | Value |
|---|---|
| Base URL, OpenAI-compatible API | https://api.exoticrouter.com/v1 |
| Base URL, Anthropic API | https://api.exoticrouter.com |
| Base URL, Gemini API | https://api.exoticrouter.com |
| API key | Your key, from the API keys page |
| Model | An id such as anthropic/claude-sonnet-5-5, from the models page |
A tool that adds /v1 to the address by itself is given https://api.exoticrouter.com instead.
A first request
Section titled “A first request”An example with a handful of models and a stand-in for the key. Put your own key where it says sk-er-YOUR-KEY.
import { createOpenAICompatible } from "@ai-sdk/openai-compatible";import { generateText } from "ai";
const exoticrouter = createOpenAICompatible({ name: "exoticrouter", baseURL: "https://api.exoticrouter.com/v1", apiKey: "sk-er-YOUR-KEY",});
const { text } = await generateText({ model: exoticrouter("anthropic/claude-opus-5-5"), prompt: "Hello",});console.log(text);Install ai and @ai-sdk/openai-compatible first. Every model in the catalogue answers on this endpoint.
The models it can use
Section titled “The models it can use”| API | Models |
|---|---|
| OpenAI-compatible | Every text model in the catalogue |
| Anthropic | The Claude models |
| Gemini | The Gemini models |
The setting is described in Vercel AI SDK’s own documentation.
More frameworks and sdks
Section titled “More frameworks and sdks”- LangChain: Provides model integrations and abstractions for building agents.
- OpenAI Agents SDK: Builds agents with tools, handoffs, guardrails, and tracing.
- LangGraph: Orchestrates stateful agent workflows as graphs.
- LlamaIndex: Builds agents and retrieval applications over external data.
- Claude Agent SDK: Builds applications around Claude’s tool-using agent loop.
- Google Agent Development Kit: Builds, evaluates, and deploys agents with Google’s development toolkit.