skills.vishalvoidskills/vishalvoid
Technical & DevelopmentIntermediate

netlify-ai-gateway

Access AI models via unified gateway endpoint

Developer Setup

Setup & Installation

bash
npx skills add https://github.com/netlify/context-and-tools --skill netlify-ai-gateway

Overview

What This Skill Does

Netlify AI Gateway is a proxy layer that routes requests to AI models from OpenAI, Anthropic, and Google through Netlify's infrastructure. You use standard provider SDKs but point them at Netlify's gateway URL instead of the provider's API directly. Netlify handles authentication and rate limiting, so no provider API keys are needed.

Application

When to use this Skill

Documentation

Show Skills.md file

Netlify AI Gateway

IMPORTANT: Only use models listed in the "Available Models" section below. AI Gateway does not support every model a provider offers. Using an unsupported model returns an HTTP error from the gateway.

First-deploy requirement: The AI Gateway only activates after a site has had at least one production deploy. Local dev (netlify dev, @netlify/vite-plugin) will NOT have gateway access on a brand-new project until you deploy to production once.

Netlify AI Gateway provides access to AI models from multiple providers without managing API keys directly. It is available on all Netlify sites.

How It Works

The AI Gateway acts as a proxy — you use standard provider SDKs but point them at Netlify's gateway URL. Netlify auto-injects both the base URL and a placeholder API key for each provider, then authenticates upstream on your behalf.

Setup

  1. Enable AI on your site in the Netlify UI
  2. Deploy to production at least once — the gateway does not activate until then
  3. Install the provider SDK you want to use

Don't set your own OPENAI_API_KEY, ANTHROPIC_API_KEY, or GEMINI_API_KEY. Doing so disables Netlify's auto-injection and routes calls directly to the provider, bypassing the gateway.

Using OpenAI SDK

npm install openai
Lines 1 - 25 of 202

Recommendations

Explore other random skills

All skillsMy patterns