Google Gemini 4 Neon now available in AI Gateway and Agent Runners

Google’s Gemini 4 Neon 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 4 Neon model:

import { GoogleGenAI } from '@google/genai';
export default async () => {
const ai = new GoogleGenAI({});
const response = await ai.models.generateContent({
model: 'gemini-4-neon',
contents: 'How can AI improve my coding?'
});
return Response.json(response);
};

Gemini 4 Neon is available in Netlify Functions, including Scheduled and Background Functions, and in Edge Functions. In Agent Runners, you can select it as the model for Google Antigravity. You get automatic access to Netlify’s caching, rate limiting, and authentication infrastructure.

Learn more in the AI Gateway documentation and Agent Runners documentation.