AI SDK OpenAI provider adds GPT Image 2.6 with animated GIF output (November 5, 2026)
@ai-sdk/openai 4.0.109 supports gpt-image-2.6-flare and -sunburst, with complexity, markup edits and animated GIF output.
Your keys
0 of 1 ready
Create each key on its own page, paste it below, then copy the finished lines into your project's .env file. What you paste stays in this tab. It is never sent to Wirestack or saved.
- OpenAI API keyOPENAI_API_KEYGet key
Click Create new secret key
3 of 3 free copies left this month.Unlimited with Pro
What changed
On November 5, 2026 @ai-sdk/openai 4.0.109 added support for the GPT Image 2.6 models, gpt-image-2.6-flare and gpt-image-2.6-sunburst (the AI SDK 6 line got the same change in @ai-sdk/openai 3.0.137). New image provider options:
complexity:'low','medium'or'high', how much detail goes into the image, for generation and editing. The API default ishigh.markup(editing only): a transparent PNG, as an HTTPS URL or base64 data URL, laid over the first input image to mark the areas to change. Works withgpt-image-2.5-*andgpt-image-2.6-*. It can't be combined withmask.outputFormat: 'gif'(generation only): an animated GIF.frameCountsets the number of frames (default 9; the AI SDK docs say 2 to 64, but OpenAI's image guide allows 2 to 16) andframeDurationMssets 20 to 2000 ms per frame (default 200).safetyIdentifier: an ID for your end user, up to 128 characters, that helps OpenAI detect abuse.
Prerequisites
- An OpenAI API key in
OPENAI_API_KEY ai7 and@ai-sdk/openai4.0.109 or later (4.0.111 was the newest on November 7)
Steps
- Upgrade:
pnpm add ai @ai-sdk/openai - Generate an animated GIF. This is the provider docs example:
const { image } = await generateImage({
model: openai.image('gpt-image-2.6-flare'),
prompt: 'A red panda waving hello, flat illustration',
providerOptions: {
openai: {
outputFormat: 'gif',
frameCount: 9,
frameDurationMs: 200,
} satisfies OpenAIImageModelGenerationOptions,
},
});