---
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/3/"
last_updated: "2026-07-14T05:52:51.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)

-   [
    
    ## Gemini 3.1 Pro Preview now available in AI Gateway
    
    ](/changelog/gemini-3-1-pro-preview-ai-gateway/)
    
    February 19, 2026
    
    -   [ai gateway](/changelog/tag/ai-gateway/)
    
    Google’s Gemini 3.1 Pro Preview model is now available through Netlify’s AI Gateway 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.1 Pro Preview model:
    
    ```
    import { GoogleGenAI } from '@google/genai';
    export default async () => {    const ai = new GoogleGenAI({});
        const response = await ai.models.generateContent({        model: 'gemini-3.1-pro-preview',        contents: 'How can AI improve my workflow?'    });
        return Response.json(response);};
    ```
    
    Gemini 3.1 Pro Preview 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 Gemini 3.1 Pro Preview now available in AI Gateway Permalink](/changelog/gemini-3-1-pro-preview-ai-gateway/)
    
-   [
    
    ## Claude Sonnet 4.6 now available in AI Gateway and Agent Runners
    
    ](/changelog/claude-sonnet-4-6-ai-gateway-agent-runners/)
    
    February 17, 2026
    
    -   [ai gateway](/changelog/tag/ai-gateway/)
    -   [agent runners](/changelog/tag/agent-runners/)
    
    Anthropic’s Claude Sonnet 4.6 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 Sonnet 4.6 model:
    
    ```
    import Anthropic from '@anthropic-ai/sdk';
    export default async () => {    const anthropic = new Anthropic();
        const response = await anthropic.messages.create({        model: 'claude-sonnet-4-6',        max_tokens: 4096,        messages: [            {                role: 'user',                content: 'How can AI improve my coding?'            }        ]    });
        return Response.json(response);};
    ```
    
    Claude Sonnet 4.6 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 Sonnet 4.6 now available in AI Gateway and Agent Runners Permalink](/changelog/claude-sonnet-4-6-ai-gateway-agent-runners/)
    
-   [
    
    ## Claude Opus 4.6 now available in AI Gateway and Agent Runners
    
    ](/changelog/claude-opus-4-6-ai-gateway-agent-runners/)
    
    February 5, 2026
    
    -   [ai gateway](/changelog/tag/ai-gateway/)
    -   [agent runners](/changelog/tag/agent-runners/)
    
    Anthropic’s Claude Opus 4.6 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.6 model:
    
    ```
    import Anthropic from '@anthropic-ai/sdk';
    export default async () => {    const anthropic = new Anthropic();
        const response = await anthropic.messages.create({        model: 'claude-opus-4-6',        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.6 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.6 now available in AI Gateway and Agent Runners Permalink](/changelog/claude-opus-4-6-ai-gateway-agent-runners/)
    
-   [
    
    ## GPT-5.2-Codex Now Available in AI Gateway and Agent Runners
    
    ](/changelog/gpt-5-2-codex-ai-gateway/)
    
    January 14, 2026
    
    -   [ai gateway](/changelog/tag/ai-gateway/)
    -   [agent runners](/changelog/tag/agent-runners/)
    
    OpenAI’s GPT-5.2-Codex model is 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.2-Codex model:
    
    ```
    import OpenAI from 'openai';
    export default async () => {    const openai = new OpenAI();
        const response = await openai.responses.create({        model: 'gpt-5.2-codex',        input: 'How does AI work?'    });
        return new Response(JSON.stringify(response), {        headers: { 'Content-Type': 'application/json' }    });};
    ```
    
    GPT-5.2-Codex 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](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 GPT-5.2-Codex Now Available in AI Gateway and Agent Runners Permalink](/changelog/gpt-5-2-codex-ai-gateway/)
    
-   [
    
    ## Gemini 3 Flash Preview now available in AI Gateway
    
    ](/changelog/gemini-3-flash-preview-ai-gateway/)
    
    December 17, 2025
    
    -   [ai gateway](/changelog/tag/ai-gateway/)
    
    Google’s Gemini 3 Flash 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 (request: Request, context: Context) => {  const ai = new GoogleGenAI({});
      const response = await ai.models.generateContent({    model: 'gemini-3-flash-preview',    contents: 'How does AI work?'  });
      return new Response(JSON.stringify({ answer: response.text }), {    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.
    
    See the [AI Gateway documentation](https://docs.netlify.com/build/ai-gateway/overview/) for details.
    
    [Permalink to Gemini 3 Flash Preview now available in AI Gateway Permalink](/changelog/gemini-3-flash-preview-ai-gateway/)
    
-   [
    
    ## GPT-image-1.5 now available in AI Gateway
    
    ](/changelog/gpt-image-1-5-ai-gateway/)
    
    December 17, 2025
    
    -   [ai gateway](/changelog/tag/ai-gateway/)
    
    OpenAI’s GPT-image-1.5 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-1.5',        prompt: 'Generate a realistic image of a golden retriever working in an office',        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-1.5 now available in AI Gateway Permalink](/changelog/gpt-image-1-5-ai-gateway/)
    
-   [
    
    ## AI Gateway now Generally Available
    
    ](/changelog/2025-12-16-ai-gateway-ga/)
    
    December 16, 2025
    
    -   [ai gateway](/changelog/tag/ai-gateway/)
    -   [ai](/changelog/tag/ai/)
    
    [AI Gateway](https://docs.netlify.com/build/ai-gateway/overview/) is now generally available (GA) for all Netlify users. Build AI-powered apps with confidence using our fully managed gateway that handles AI model keys, setup, and monitoring automatically.
    
    For a deeper dive into AI Gateway capabilities, check out our [latest blog post](https://www.netlify.com/blog/ai-gateway-is-now-generally-available/).
    
    For a video overview of how the AI Gateway works with a fun demo project, check out our [AI Gateway gameshow demo](https://www.youtube.com/watch?v=9CqxH7IFbds).
    
    For other AI Gateway example projects, check out these videos:
    
    -   [AI agent generates blog post images](https://www.youtube.com/watch?v=R7J-pSkdh0o)
    -   [AI agent summarizes form submissions](https://www.youtube.com/watch?v=Fe33sf-pHm8)
    
    Learn more in our [AI Gateway documentation](https://docs.netlify.com/build/ai-gateway/overview/).
    
    ## Availability
    
    To use AI Gateway, you must have a Credit-based plan or an enabled Enterprise plan.
    
    Learn more about [pricing for AI features](https://docs.netlify.com/manage/accounts-and-billing/billing/billing-for-credit-based-plans/pricing-for-ai-features/#pricing-for-ai-gateway) and [monitoring their usage](https://docs.netlify.com/manage/accounts-and-billing/billing/billing-for-credit-based-plans/monitor-usage-for-credit-based-plans/#ai-inference-usage).
    
    To request access to the AI Gateway for an Enterprise plan, reach out to your Netlify account manager.
    
    [Permalink to AI Gateway now Generally Available Permalink](/changelog/2025-12-16-ai-gateway-ga/)
    
-   [
    
    ## GPT-5.2 and GPT-5.2-Pro now available in AI Gateway and Agent Runners
    
    ](/changelog/gpt-5-2-ai-gateway/)
    
    December 11, 2025
    
    -   [ai gateway](/changelog/tag/ai-gateway/)
    -   [agent runners](/changelog/tag/agent-runners/)
    
    OpenAI’s GPT-5.2 and GPT-5.2-Pro are now available through AI Gateway and Agent Runners. You can call these models 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";
    export default async () => {  const openai = new OpenAI();
      const response = await openai.chat.completions.create({    model: "gpt-5.2",    messages: [      { role: "user", content: "What are the key improvements in GPT-5.2?" }    ]  });
      return new Response(JSON.stringify(response), {    headers: { "Content-Type": "application/json" }  });};
    ```
    
    These models work across any function type and are 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.
    
    Agent Runners support the same models, enabling AI to complete long-running coding tasks. You can learn more in the [Agent Runners documentation](https://docs.netlify.com/build/build-with-ai/agent-runners/overview/).
    
    [Permalink to GPT-5.2 and GPT-5.2-Pro now available in AI Gateway and Agent Runners Permalink](/changelog/gpt-5-2-ai-gateway/)
    
-   [
    
    ## GPT-5.1-Codex-Max now available in AI Gateway and Agent Runners
    
    ](/changelog/gpt-5-1-codex-max-ai-gateway-agent-runners/)
    
    December 4, 2025
    
    -   [ai gateway](/changelog/tag/ai-gateway/)
    -   [agent runners](/changelog/tag/agent-runners/)
    
    OpenAI’s GPT-5.1-Codex-Max model is 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.1-Codex-Max model:
    
    ```
    import OpenAI from 'openai';
    export default async () => {    const openai = new OpenAI();
        const response = await openai.responses.create({        model: 'gpt-5.1-codex-max',        input: 'What improvements are in GPT‑5.1-Codex-Max?'    });
        return new Response(JSON.stringify(response), {        headers: { 'Content-Type': 'application/json' }    });};
    ```
    
    GPT-5.1-Codex-Max is available across Background Functions, Scheduled Functions, and Edge Functions. 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/).
    
    You can also leverage GPT-5.1-Codex-Max with Agent Runners to build powerful AI-powered workflows, including expanded tool use and support for long-running agent tasks. Learn more in the [Agent Runners documentation](https://docs.netlify.com/build/build-with-ai/agent-runners/overview/).
    
    [Permalink to GPT-5.1-Codex-Max now available in AI Gateway and Agent Runners Permalink](/changelog/gpt-5-1-codex-max-ai-gateway-agent-runners/)
    

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