---
title: "Gemini 3.1 Flash-Lite now available in AI Gateway"
description: "Access Google Gemini 3.1 Flash-Lite through Netlify AI Gateway with zero configuration. No API keys required."
source: "https://www.netlify.com/changelog/gemini-3-1-flash-lite-ai-gateway/"
last_updated: "2026-07-14T03:23:33.000Z"
---
Google’s Gemini 3.1 Flash-Lite model is now available through Netlify’s AI Gateway with zero configuration required. The [Preview version](https://www.netlify.com/changelog/gemini-3-1-flash-lite-preview-ai-gateway/) of this model was available as of March 3, 2026.

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.1 Flash-Lite model:

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

Gemini 3.1 Flash-Lite is available for all Function types. You get automatic access to Netlify’s caching, rate limiting, and authentication infrastructure.

Learn more in the [AI Gateway documentation](https://docs.netlify.com/build/ai-gateway/overview/).