Skip to main content
Point the SDK at the gateway and pass your LLM Gateway key. Use any model or alias.

OpenAI

The SDK also reads OPENAI_BASE_URL and OPENAI_API_KEY from the environment.

Anthropic

Use the root URL, without /v1.
The SDK also reads ANTHROPIC_BASE_URL and ANTHROPIC_API_KEY from the environment.

Vercel AI SDK

LangChain