Gemini 3 now available in AI Gateway and Agent Runners
November 18, 2025
Google’s Gemini 3 Pro Preview model is now available through Netlify’s AI Gateway and Agent Runners with zero configuration required.
Use the Google GenAI SDK directly in your Netlify Functions without managing API keys or authentication. The AI Gateway handles everything automatically. Here’s an example using the Gemini 3 Pro Preview model:
import { GoogleGenAI } from "@google/genai";
export default async (request: Request, context: Context) => { const ai = new GoogleGenAI({});
const response = await ai.models.generateContent({ model: "gemini-3-pro-preview", contents: "Explain why gemini 3 is better than other models", });
return new Response(JSON.stringify({ answer: response.text }), { headers: { "Content-Type": "application/json" } });};Gemini 3 is available across Background Functions, Scheduled Functions, and Agent Runners. You get automatic access to Netlify’s caching, rate limiting, and authentication infrastructure.
Learn more in the AI Gateway documentation and Agent Runners documentation.