AI Gateway

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.

One API. Any model.

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;
}

Built into Netlify

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

Frontier models

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.

Keep exploring

Resources

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.