Unified access to AI models, built in.
Netlify AI Gateway gives agents and developers instant access to the latest models from OpenAI, Anthropic, and Google. No API keys to manage, no separate accounts, no extra billing. Ship AI features from the first prompt.
Use the SDKs you already love. Switch providers without rewriting code.
Drop in the official client library, call your chosen model, and ship. No keys to wire up. No base URLs to remember.
import OpenAI from 'openai';
// No API key or base URL configuration needed — Netlify
// automatically injects OPENAI_API_KEY and OPENAI_BASE_URL.
const openai = new OpenAI();
async function callOpenAI() {
const completion = await openai.chat.completions.create({
model: 'gpt-5',
messages: [{ role: 'user', content: 'Hello!' }],
});
return completion;
} import Anthropic from '@anthropic-ai/sdk';
// No API key or base URL configuration needed — Netlify
// automatically injects ANTHROPIC_API_KEY and ANTHROPIC_BASE_URL.
const anthropic = new Anthropic();
async function callAnthropic() {
const message = await anthropic.messages.create({
model: 'claude-opus-4-7',
max_tokens: 1024,
messages: [{ role: 'user', content: 'Hello!' }],
});
return message;
} import { GoogleGenAI } from '@google/genai';
// No API key or base URL configuration needed — Netlify
// automatically injects GEMINI_API_KEY and GOOGLE_GEMINI_BASE_URL.
const genAI = new GoogleGenAI({});
async function callGemini() {
const result = await genAI.models.generateContent({
model: 'gemini-2.5-pro',
contents: 'Hello!',
});
return result;
} Ship AI features faster and safer.
From your first prototype to production traffic, AI Gateway removes the operational glue between your code and the major model providers.
- Skip account creation with OpenAI, Anthropic, and Google
- Stop juggling API keys, billing, and credit balances
- Get unified usage analytics across every project
- Rate limits scoped per account, applied automatically
- Works in serverless, edge, and background functions
- Full local development support via the Netlify CLI
Access the best models.
Call the latest releases from the providers your team already trusts. Add or swap models without touching infrastructure.
OpenAI
- gpt-5.5-pro
- gpt-5.5
- gpt-5.4-pro
- gpt-5.4
- gpt-5.4-mini
- gpt-5.4-nano
- gpt-5.3-codex
- gpt-5.3-chat-latest
- gpt-5.2-pro
- gpt-5.2
- gpt-5.2-codex
- gpt-5.1
- gpt-5.1-codex-max
- gpt-5.1-codex
- gpt-5.1-codex-mini
- gpt-5-pro
- gpt-5
- gpt-5-codex
- gpt-5-mini
- gpt-5-nano
- gpt-4.1
- gpt-4.1-mini
- gpt-4.1-nano
- gpt-4o
- gpt-4o-mini
- o4-mini
- o3
- o3-mini
- chat-latest
Anthropic
- claude-opus-4-7
- claude-opus-4-6
- claude-opus-4-5
- claude-opus-4-1-20250805
- claude-opus-4-20250514
- claude-sonnet-4-6
- claude-sonnet-4-5
- claude-sonnet-4-0
- claude-sonnet-4-20250514
- claude-haiku-4-5
- gemini-3.1-pro-preview
- gemini-3.1-pro-preview-customtools
- gemini-3.1-flash-image-preview
- gemini-3.1-flash-lite
- gemini-3.1-flash-lite-preview
- gemini-3-pro-image-preview
- gemini-3-flash-preview
- gemini-2.5-pro
- gemini-2.5-flash
- gemini-2.5-flash-image
- gemini-2.5-flash-lite
- gemini-2.0-flash
- gemini-2.0-flash-lite
- gemini-flash-latest
- gemini-flash-lite-latest
Ready to build with AI?
Start a new project or add AI Gateway to one you already deploy on Netlify. Free to try, billed only for the credits you use.
Resources
Start building on Netlify.
Deploy your first project free, and turn on AI Gateway whenever you're ready.