---
title: "Ai-gateway | Netlify Changelog"
description: "Stay updated with the latest features, fixes, and improvements. Realize the speed, agility and performance of a scalable, composable web architecture with Netlify. Explore the composable web platform now!"
source: "https://www.netlify.com/changelog/tag/ai-gateway/page/2/"
last_updated: "2026-07-14T03:23:33.000Z"
---
# Posts tagged "Ai-gateway"

All Tags Agent-runners AI Ai-gateway Angular Astro AX Build CLI Database Design Devtools Domains E-commerce Extensions Forms Framework Functions Logs Next.js Nuxt.js Remix SDK Security Updates Workflow  [Subscribe to feed](https://www.netlify.com/changelog/tag/ai-gateway/feed.xml)

-   [
    
    ## OpenAI GPT-5.5 and GPT-5.5 Pro now available in AI Gateway and Agent Runners
    
    ](/changelog/gpt-5-5-ai-gateway-agent-runners/)
    
    April 24, 2026
    
    -   [ai gateway](/changelog/tag/ai-gateway/)
    -   [agent runners](/changelog/tag/agent-runners/)
    
    OpenAI’s GPT-5.5 and GPT-5.5 Pro models are now available through Netlify’s AI Gateway and Agent Runners with zero configuration required.
    
    Use the OpenAI SDK directly in your Netlify Functions without managing API keys or authentication. The AI Gateway handles everything automatically. Here’s an example using the GPT-5.5 model:
    
    ```
    import OpenAI from 'openai';
    export default async () => {    const openai = new OpenAI();
        const response = await openai.responses.create({        model: 'gpt-5.5',        input: 'Give a concise explanation of how AI works.',    });
        return Response.json(response);};
    ```
    
    GPT-5.5 and GPT-5.5 Pro are available for all Function types and Agent Runners. 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/) and [Agent Runners documentation](https://docs.netlify.com/build/build-with-ai/agent-runners/overview/).
    
    [Permalink to OpenAI GPT-5.5 and GPT-5.5 Pro now available in AI Gateway and Agent Runners Permalink](/changelog/gpt-5-5-ai-gateway-agent-runners/)
    
-   [
    
    ## GPT Image 2 now available in AI Gateway
    
    ](/changelog/gpt-image-2-ai-gateway/)
    
    April 21, 2026
    
    -   [ai gateway](/changelog/tag/ai-gateway/)
    
    OpenAI’s GPT Image 2 is now available through AI Gateway. You can call this model from Netlify Functions without configuring API keys; the AI Gateway provides the connection to OpenAI for you.
    
    Example usage in a Function:
    
    ```
    import OpenAI from 'openai';const ai = new OpenAI();
    export default async (req, context) => {    const response = await ai.images.generate({        model: 'gpt-image-2',        prompt: 'Generate a realistic image of a golden retriever working at a tech startup',        n: 1,        size: '1024x1024',        quality: 'low',        output_format: 'jpeg',        output_compression: 80    });
        const imageBase64 = response.data[0].b64_json;    const imageBuffer = Uint8Array.from(atob(imageBase64), (c) => c.charCodeAt(0));
        return new Response(imageBuffer, {        status: 200,        headers: {            'content-type': 'image/jpeg',            'cache-control': 'no-store'        }    });};
    ```
    
    This model works across any function type and is compatible with other Netlify primitives such as caching and rate limiting, giving you control over request behavior across your site.
    
    See the [AI Gateway documentation](https://docs.netlify.com/build/ai-gateway/overview/) for details.
    
    [Permalink to GPT Image 2 now available in AI Gateway Permalink](/changelog/gpt-image-2-ai-gateway/)
    
-   [
    
    ## Claude Opus 4.7 now available in AI Gateway and Agent Runners
    
    ](/changelog/claude-opus-4-7-ai-gateway-agent-runners/)
    
    April 16, 2026
    
    -   [ai gateway](/changelog/tag/ai-gateway/)
    -   [agent runners](/changelog/tag/agent-runners/)
    
    Anthropic’s Claude Opus 4.7 model is now available through Netlify’s AI Gateway and Agent Runners with zero configuration required.
    
    Use the Anthropic SDK directly in your Netlify Functions without managing API keys or authentication. The AI Gateway handles everything automatically. Here’s an example using the Claude Opus 4.7 model:
    
    ```
    import Anthropic from '@anthropic-ai/sdk';
    export default async () => {    const anthropic = new Anthropic();
        const response = await anthropic.messages.create({        model: 'claude-opus-4-7',        max_tokens: 4096,        messages: [            {                role: 'user',                content: 'How can AI improve my coding?'            }        ]    });
        return new Response(JSON.stringify(response), {        headers: { 'Content-Type': 'application/json' }    });};
    ```
    
    Claude Opus 4.7 is available for all Function types and Agent Runners. 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/) and [Agent Runners documentation](https://docs.netlify.com/build/build-with-ai/agent-runners/overview/).
    
    [Permalink to Claude Opus 4.7 now available in AI Gateway and Agent Runners Permalink](/changelog/claude-opus-4-7-ai-gateway-agent-runners/)
    
-   [
    
    ## OpenAI GPT-5.4 Nano and GPT-5.4 Mini Now Available in AI Gateway
    
    ](/changelog/2026-03-17-gpt-5-4-nano-mini-ai-gateway/)
    
    March 17, 2026
    
    -   [ai gateway](/changelog/tag/ai-gateway/)
    
    OpenAI’s GPT-5.4 Nano and GPT-5.4 Mini models are now available through Netlify’s AI Gateway with zero configuration required.
    
    Use the OpenAI SDK directly in your Netlify Functions without managing API keys or authentication. The AI Gateway handles everything automatically. Here’s an example using the GPT-5.4 Nano model:
    
    ```
    import OpenAI from 'openai';
    export default async () => {    const openai = new OpenAI();
        const response = await openai.responses.create({        model: 'gpt-5.4-nano',        input: 'Give a concise explanation of how AI works.',    });
        return Response.json(response);};
    ```
    
    GPT-5.4 Nano and GPT-5.4 Mini are 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/)
    
    [Permalink to OpenAI GPT-5.4 Nano and GPT-5.4 Mini Now Available in AI Gateway Permalink](/changelog/2026-03-17-gpt-5-4-nano-mini-ai-gateway/)
    
-   [
    
    ## OpenAI GPT-5.4 and GPT-5.4 Pro Now Available in AI Gateway and Agent Runners
    
    ](/changelog/gpt-5-4-ai-gateway-agent-runners/)
    
    March 5, 2026
    
    -   [ai gateway](/changelog/tag/ai-gateway/)
    -   [agent runners](/changelog/tag/agent-runners/)
    
    OpenAI’s GPT-5.4 and GPT-5.4 Pro models are now available through Netlify’s AI Gateway and Agent Runners with zero configuration required.
    
    Use the OpenAI SDK directly in your Netlify Functions without managing API keys or authentication. The AI Gateway handles everything automatically. Here’s an example using the GPT-5.4 model:
    
    ```
    import OpenAI from 'openai';
    export default async () => {    const openai = new OpenAI();
        const response = await openai.responses.create({        model: 'gpt-5.4',        input: 'Give a concise explanation of how AI works.',    });
        return Response.json(response);};
    ```
    
    GPT-5.4 and GPT-5.4 Pro are available for all Function types and Agent Runners. 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/) and [Agent Runners documentation](https://docs.netlify.com/build/build-with-ai/agent-runners/overview/).
    
    [Permalink to OpenAI GPT-5.4 and GPT-5.4 Pro Now Available in AI Gateway and Agent Runners Permalink](/changelog/gpt-5-4-ai-gateway-agent-runners/)
    
-   [
    
    ## Gemini 3.1 Flash-Lite Preview now available in AI Gateway
    
    ](/changelog/gemini-3-1-flash-lite-preview-ai-gateway/)
    
    March 3, 2026
    
    -   [ai gateway](/changelog/tag/ai-gateway/)
    
    Google’s Gemini 3.1 Flash-Lite Preview is now available through AI Gateway. You can call this model from Netlify Functions without configuring API keys; the AI Gateway provides the connection to Google for you.
    
    Example usage in a Function:
    
    ```
    import { GoogleGenAI } from '@google/genai';
    export default async () => {    const ai = new GoogleGenAI({});
        const response = await ai.models.generateContent({        model: 'gemini-3.1-flash-lite-preview',        contents: 'How can AI improve my coding?'    });
        return Response.json(response);};
    ```
    
    This model works across any function type and is compatible with other Netlify primitives such as caching and rate limiting, giving you control over request behavior across your site.
    
    Learn more in the [AI Gateway documentation](https://docs.netlify.com/build/ai-gateway/overview/).
    
    [Permalink to Gemini 3.1 Flash-Lite Preview now available in AI Gateway Permalink](/changelog/gemini-3-1-flash-lite-preview-ai-gateway/)
    
-   [
    
    ## GPT-5.3 Instant now available in AI Gateway
    
    ](/changelog/gpt-5-3-instant-ai-gateway/)
    
    March 3, 2026
    
    -   [ai gateway](/changelog/tag/ai-gateway/)
    
    OpenAI’s GPT-5.3 Instant model is now available through Netlify’s AI Gateway with zero configuration required.
    
    Use the OpenAI SDK directly in your Netlify Functions without managing API keys or authentication. The AI Gateway handles everything automatically. Here’s an example using the GPT-5.3 Instant model:
    
    ```
    import OpenAI from 'openai';
    export default async () => {    const openai = new OpenAI();
        const response = await openai.responses.create({        model: 'gpt-5.3-chat-latest',        input: 'How does AI work?'    });
        return Response.json(response);};
    ```
    
    **Note:** The model API name is `gpt-5.3-chat-latest`.
    
    GPT-5.3 Instant 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/).
    
    [Permalink to GPT-5.3 Instant now available in AI Gateway Permalink](/changelog/gpt-5-3-instant-ai-gateway/)
    
-   [
    
    ## Gemini 3.1 Flash Image Preview now available in AI Gateway
    
    ](/changelog/gemini-3-1-flash-image-preview-ai-gateway/)
    
    February 26, 2026
    
    -   [ai gateway](/changelog/tag/ai-gateway/)
    
    Google’s Gemini 3.1 Flash Image Preview, also known as Nano Banana 2, is now available through AI Gateway. You can call this image generation model from Netlify Functions without configuring API keys; the AI Gateway provides the connection to Google for you.
    
    Example usage in a Function:
    
    ```
    import { GoogleGenAI } from '@google/genai';
    export default async (request: Request) => {    const url = new URL(request.url);    const prompt = url.searchParams.get('prompt') || 'two happy bananas';    const ai = new GoogleGenAI({});
        try {        const response = await ai.models.generateContent({            model: 'gemini-3.1-flash-image-preview',            contents: prompt,            config: {                imageConfig: {                    aspectRatio: '16:9',                    imageSize: '1K'                }            }        });
            let imagePart = null;        for (const part of response.candidates[0].content.parts) {            if (part.inlineData) {                imagePart = part.inlineData;                break;            }        }
            const bytes = Buffer.from(imagePart.data, 'base64');        const mimeType = imagePart.mimeType || 'image/png';
            return new Response(bytes, {            status: 200,            headers: {                'Content-Type': mimeType,                'Cache-Control': 'no-store'            }        });    } catch (err) {        return new Response(JSON.stringify({ error: String(err), prompt }), {            status: 500,            headers: { 'Content-Type': 'application/json' }        });    }};
    ```
    
    This model works across any function type and is compatible with other Netlify primitives such as caching and rate limiting, giving you control over request behavior across your site.
    
    Learn more in the [AI Gateway documentation](https://docs.netlify.com/build/ai-gateway/overview/).
    
    [Permalink to Gemini 3.1 Flash Image Preview now available in AI Gateway Permalink](/changelog/gemini-3-1-flash-image-preview-ai-gateway/)
    
-   [
    
    ## GPT-5.3-Codex now available in AI Gateway
    
    ](/changelog/gpt-5-3-codex-ai-gateway/)
    
    February 24, 2026
    
    -   [ai gateway](/changelog/tag/ai-gateway/)
    
    OpenAI’s GPT-5.3-Codex model is now available through Netlify’s AI Gateway with zero configuration required.
    
    Use the OpenAI SDK directly in your Netlify Functions without managing API keys or authentication. The AI Gateway handles everything automatically. Here’s an example using the GPT-5.3-Codex model:
    
    ```
    import OpenAI from 'openai';
    export default async () => {    const openai = new OpenAI();
        const response = await openai.responses.create({        model: 'gpt-5.3-codex',        input: 'How can AI improve my coding?'    });
        return Response.json(response);};
    ```
    
    GPT-5.3-Codex 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/).
    
    [Permalink to GPT-5.3-Codex now available in AI Gateway Permalink](/changelog/gpt-5-3-codex-ai-gateway/)
    

[Previous page](/changelog) [Next page](/changelog/tag/ai-gateway/page/3)