cd /news/generative-ai/mai-image-2-7-and-mai-image-2-7-flas… · home › topics › generative-ai › article
[ARTICLE · art-171263] src=vercel.com ↗ pub= topic=generative-ai verified=true sentiment=↑ positive

MAI-Image-2.7 and MAI-Image-2.7-Flash now available on AI Gateway

Vercel added Microsoft's MAI-Image-2.7 and MAI-Image-2.7-Flash to AI Gateway in public preview, raising the maximum output size for both models to 2048 x 2048 pixels and adding transparent backgrounds for generated and edited images. Developers can call either model with a single AI Gateway API key and no Microsoft account, using model IDs microsoft/mai-image-2.7 and microsoft/mai-image-2.7-flash with AI SDK 6 or later, and can supply up to five reference images to guide edits. MAI-Image-2.7 targets final assets where image quality is the priority, while MAI-Image-2.7-Flash targets faster, lower-cost generation for prompt exploration and variations.

by read1 min views10 publishedNov 17, 2026

Microsoft’s MAI-Image-2.7 and MAI-Image-2.7-Flash are now available in public preview on AI Gateway. Both increase the maximum output size to 2048 x 2048 pixels and add transparent backgrounds for generated and edited images.

Generate images from text or edit existing images with one AI Gateway API key, without a Microsoft account. Both models support photorealistic images, text rendering, and targeted edits to products, portraits, and layouts. Use up to five reference images to guide edits or combine subjects.

**MAI-Image-2.7** (`microsoft/mai-image-2.7`): for final assets where image quality is the priority

**MAI-Image-2.7-Flash** (`microsoft/mai-image-2.7-flash`): for faster, lower-cost generation when exploring prompts or creating variations

Set the AI_GATEWAY_API_KEY environment variable, then use either model ID with AI SDK 6 or later. To generate a transparent PNG, set providerOptions.azure.background to 'transparent':

To edit an image, provide it as a reference and describe what to change:

You can also generate and edit images from the terminal with the [AI CLI](https://github.com/vercel-labs/ai-cli), using the same API key and model IDs:

Try [MAI-Image-2.7](https://vercel.com/ai-gateway/models/mai-image-2.7) or [MAI-Image-2.7-Flash](https://vercel.com/ai-gateway/models/mai-image-2.7-flash) in the model playground, or follow the [image generation guide](https://vercel.com/docs/ai-gateway/modalities/image-generation).
── more in #generative-ai 4 stories · sorted by recency
── more on @vercel 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/mai-image-2-7-and-ma…] indexed:0 read:1min 2026-11-17 · —