ChatGPT Images 2.5 now available in AI Gateway and Agent Runners

September 9, 2026

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 and Agent Runners documentation.