Repository navigation
Description
Summary
OpenAI's GPT Image 2.6 models (gpt-image-2.6-flare, gpt-image-2.6-sunburst, released 2026-11-04) can return animated GIFs from the Image API. OpenRouter lists both models, but there is no way to request GIF output through OpenRouter today.
Current behavior
GET /api/v1/images/models/openai/gpt-image-2.6-flare/endpoints shows the OpenAI endpoint with:
"output_format": {"type": "enum", "values": ["png", "jpeg", "webp"]},
"allowed_passthrough_parameters": ["moderation", "complexity"]A request with output_format: "gif" is rejected at schema validation:
curl https://openrouter.ai/api/v1/images \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-image-2.6-flare",
"prompt": "A red ball bouncing on a white floor, flat illustration",
"quality": "low",
"output_format": "gif",
"frame_count": 2,
"frame_duration_ms": 300
}'400 ZodError: output_format: Invalid option: expected one of "png"|"jpeg"|"webp"|"svg"
frame_count and frame_duration_ms aren't in the request schema or in the passthrough list, so they can't be sent through provider.options either.
Upstream capability
From OpenAI's image generation guide:
- Set
output_format: "gif"onPOST /v1/images/generations(the edit endpoint does not support GIF output). frame_count: 2–64 frames, default 9.frame_duration_ms: 20–2000 ms per frame (rounded to 10 ms), default 200.sizedescribes each finished frame.- GIF output does not support streaming, partial images,
output_compression, orprompt_rewriter.
Requested behavior
For openai/gpt-image-2.6-flare and openai/gpt-image-2.6-sunburst:
- Accept
output_format: "gif"on/api/v1/imagesand forward it to OpenAI, returningmedia_type: "image/gif"indata[i]. - Accept
frame_countandframe_duration_ms, either as first-class request fields or as allowed passthrough parameters. - Advertise the capability in
/api/v1/images/modelsand the per-endpoint descriptor.
Related, same models: OpenAI also documents output_format: "svg" (n must be 1) and markup overlays on edits for 2.6. The OpenAI endpoint currently rejects svg ("OpenAI: output_format: not supported. Accepted: png, jpeg, webp"). Supporting these would be useful too, but GIF is the main request here.
Why this matters
Right now, apps that want animated output from GPT Image 2.6 have to bypass OpenRouter and call OpenAI directly, even though everything else about the model already works through OpenRouter's Images API.
References
- OpenAI image generation guide (GIF / SVG output): https://developers.openai.com/api/docs/guides/image-generation
- OpenAI image prompting guide (GPT Image 2.6): https://developers.openai.com/api/docs/guides/image-prompting
- OpenRouter image generation docs: https://openrouter.ai/docs/guides/overview/multimodal/image-generation
- Model capabilities: https://openrouter.ai/api/v1/images/models
Activity