---
title: "ChatGPT Images 2.5 in AI Gateway and Agent Runners"
description: "Access OpenAI’s ChatGPT Images 2.5 models through Netlify AI Gateway and Agent Runners with zero configuration. No API keys required."
source: "https://www.netlify.com/changelog/chatgpt-images-2-5-ai-gateway/"
last_updated: "2026-09-10T11:09:14.000Z"
---
OpenAI’s ChatGPT Images 2.5 models are now available through Netlify’s AI Gateway and Agent Runners with zero configuration required. Use `gpt-image-2.5-flare` or `gpt-image-2.5-sunburst` to generate images for your applications.

Use the OpenAI SDK directly in your Netlify Functions without managing API keys or authentication. AI Gateway handles everything automatically. Here’s an example using the `gpt-image-2.5-flare` model:

```
import OpenAI from 'openai';const ai = new OpenAI();
export default async (req, context) => {    const response = await ai.images.generate({        model: 'gpt-image-2.5-flare',        prompt: 'A golden retriever working at a laptop in a sunny startup office',        size: '1024x1024',        quality: 'low',        output_format: 'jpeg',        output_compression: 80    });
    const imageBuffer = Buffer.from(response.data[0].b64_json, 'base64');
    return new Response(imageBuffer, {        status: 200,        headers: {            'content-type': 'image/jpeg',            'cache-control': 'no-store'        }    });};
```

Both ChatGPT Images 2.5 models are available across standard Functions, Background Functions, Scheduled Functions, Edge 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/).