Microsoft MAI-Image-2.7 and Flash models launch on AI Gateway with 2048x2048 support

·2026.11.17 09:00

Key point

Both models support photorealistic generation and targeted edits using up to five reference images via a single API key.

Details

  • MAI-Image-2.7 and MAI-Image-2.7-Flash are available in public preview on AI Gateway, increasing maximum output size to 2048 x 2048 pixels and adding transparent backgrounds.
  • Users can generate or edit images with one AI Gateway API key without a Microsoft account, supporting photorealistic images, text rendering, and targeted edits to products, portraits, and layouts.
  • MAI-Image-2.7 is optimized for final assets where image quality is the priority, while MAI-Image-2.7-Flash is designed for faster, lower-cost generation when exploring prompts or creating variations.
  • Integration requires setting the AI_GATEWAY_API_KEY environment variable and using either model ID with AI SDK 6 or later; transparent PNGs are generated by setting providerOptions.azure.background to 'transparent'.
  • The models can also be accessed from the terminal using the AI CLI with the same API key and model IDs.

This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.