Netlify AI Gateway

Use OpenAI, Anthropic, Google Gemini, or OpenRouter models from Netlify Functions or Edge Functions without managing provider API keys or accounts — the gateway injects credentials automatically. Reach for this when you add an AI chatbot or completion endpoint, generate images or text with Gemini/GPT/Claude, summarize form submissions with AI, build an LLM-backed API route, stream a long AI generation, or wire up any server-side AI provider call on Netlify. Covers provider SDK setup, injected env vars, model availability, rate limits, credit costs, streaming for long generations, and local dev with netlify dev or the Vite plugin.

netlify 827e078 10.6 KB Updated

File contents

netlify/context-and-tools/tree/main/skills/netlify-ai-gateway commit 827e07858f

Frequently asked questions

npx skillmds add netlify/netlify-ai-gateway