Vercel AI SDK
The Vercel AI SDK is the default TypeScript toolkit for building AI features, and Opper publishes a provider for it. Install @opperai/ai-sdk-provider, set OPPER_API_KEY, and every generateText, streamText and tool call routes through the gateway, so switching model means editing a string rather than rewriting a client. Wrap a model with opperSpan and every call in a session lands under one span in tracing.
Build with Vercel AI SDK on Opper
Opper publishes and maintains @opperai/ai-sdk-provider. Install it, set OPPER_API_KEY, and pick any model in the catalogue.
Get your API keyIn your code
import { opper } from '@opperai/ai-sdk-provider';import { generateText } from 'ai';const { text } = await generateText({model: opper('openai/gpt-5.5'),prompt: 'Hello!',});
More apps on Opper
Mastra
Opper is a provider in Mastra's model router. Write a model string, set a key, and the agent runs through the gateway.
Opper built inLiteLLM
Reach Opper through LiteLLM's OpenAI-compatible provider, in the Python SDK or behind the proxy.
/v3/compatLangChain
Point LangChain's OpenAI chat model at Opper and the rest of the chain carries on unchanged.
/v3/compat