Unified access to AI models built in
Netlify AI Gateway gives agents and developers instant access to the latest commercial models (like OpenAI, Anthropic, and Google) and powerful open models (like Kimi and DeepSeek). No API keys to manage, no separate accounts, no extra billing. Ship AI features from the first prompt.
Netlify injects the correct environment variables at runtime.
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;
} // Use one standard client for every model
import { OpenRouter } from '@openrouter/sdk';
// No API key or base URL configuration needed — Netlify
// automatically injects OPENAI_API_KEY and OPENAI_BASE_URL.
const client = new OpenRouter();
// Access any major model (proprietary or open)
async function callKimi() {
const completion = await client.chat.send({
model: 'moonshotai/kimi-k3',
messages: [{ role: 'user', content: 'Hello!' }],
});
return completion;
} 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 across model providers
- 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.
Access the latest releases from the major foundation labs and the huge ecosystem of open models.
Add or swap models without touching your infrastructure.
OpenAI
- gpt-5.6-luna
- gpt-5.6-sol
- gpt-5.6-terra
- 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.2-pro
- gpt-5.2
- gpt-5.1
- gpt-5-pro
- gpt-5
- 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-5
- claude-opus-4-8
- claude-opus-4-7
- claude-opus-4-6
- claude-opus-4-5
- claude-sonnet-5
- claude-sonnet-4-6
- claude-sonnet-4-5
- claude-haiku-4-5
- claude-fable-5
- gemini-3.7-flash
- gemini-3.6-flash
- gemini-3.5-flash
- gemini-3.5-flash-lite
- gemini-3.1-pro-preview
- gemini-3.1-pro-preview-customtools
- gemini-3.1-flash-image
- gemini-3.1-flash-lite
- gemini-3.1-flash-lite-image
- gemini-3-pro-image
- gemini-3-flash-preview
- gemini-2.5-pro
- gemini-2.5-flash
- gemini-2.5-flash-image
- gemini-2.5-flash-lite
- gemini-flash-latest
- gemini-flash-lite-latest
Moonshot (Kimi)
- kimi-k3
- kimi-k2.7-code
- kimi-k2.6
DeepSeek
- deepseek-v4-pro
- deepseek-v4-flash
- deepseek-v3.2
And many more
Netlify AI Gateway is partnered with OpenRouter to provide a huge collection of open and proprietary models for text, images, video, and virtually any AI task.
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.