One API for all LLM providers

Unified API Interface

Compatible with the OpenAI API format — migrate by changing the base URL, keep your SDK, and reach 200+ models across 40+ providers with no code changes.

OpenAI SDK → LLM Gateway
OpenAI SDKLLM GatewayOpenAIAnthropicGoogleMistral
Change the base URL, keep your code
01

Zero Code Changes

Switch between providers without modifying your application code

02

Standard Format

Use the familiar OpenAI SDK and API format across all providers

03

Fast Migration

Migrate from OpenAI to other providers in minutes, not days

04

Future-Proof

Add new providers as they become available without code changes

Built for

  • Multi-Provider Applications

    Build applications that can use different providers for different use cases

  • Cost Optimization

    Switch to cheaper providers for less critical workloads

  • Risk Mitigation

    Avoid vendor lock-in by using a provider-agnostic API

app.ts
1import { createLLMGateway } from "@llmgateway/ai-sdk-provider";2import { streamText } from "ai";3 4const llmgateway = createLLMGateway({5  apiKey: process.env.LLM_GATEWAY_API_KEY,6});7 8const result = streamText({9  model: llmgateway("claude-sonnet-5"),10  prompt: "Why is the sky blue?",11});
Read docs
All models

More in routing & reliability

All features

Start using Unified API Interface today

One API key. Every model. Live in minutes.