GPT Image 2.5 Flare and GPT Image 2.5 Sunburst from OpenAI are now available on AI Gateway.
Both models accept text prompts and reference images for generation and editing. They produce natural lighting and textures, follow detailed visual instructions, handle complex layouts and transparent backgrounds, and make targeted edits while preserving the rest of an image.
Choose Flare for faster generation and Sunburst when editing precision matters most.
For Flare, use the model ID openai/gpt-image-2.5-flare:
import { generateImage } from 'ai';
const result = await generateImage({ model: 'openai/gpt-image-2.5-flare', prompt: 'A product photo of a glass perfume bottle on pale stone in soft morning light.',});For Sunburst, use openai/gpt-image-2.5-sunburst. Pass a reference image with the instruction:
import { readFileSync } from 'node:fs';import { generateImage } from 'ai';
const result = await generateImage({ model: 'openai/gpt-image-2.5-sunburst', prompt: { text: 'Change the bottle cap to gold and keep everything else unchanged.', images: [readFileSync('./product.png')], },});Try Flare or Sunburst in the model playground, or view all image models available on AI Gateway.