Azure

Microsoft: MAI Image 2.5

Image Generation
microsoft/mai-image-2.5
CompareGet Started

MAI-Image-2.5 is Microsoft's image generation and editing model. It excels at precise, surgical edits with consistency - targeted object edits, layout adaptation, text updates and artifact cleanup - while preserving visual consistency across iterations. Supports text-to-image generation and image-to-image editing with free aspect ratios up to 1 megapixel.

Context Window
4K
Max Output Tokens
1K
Released
2026-06-02
Capabilities
Vision
Available Providers
AzureAzure
Supported Protocols
OpenAIopenai

Providers

AzureAzure
Input Tokens
$5/M
Output Tokens
$47/M
Image Input
$8/M
Output Image
$47/M
Protocols
OpenAIopenai/v1/images/generations

Code Examples

from openai import OpenAI
client = OpenAI(
base_url="https://api.ofox.run/v1",
api_key="YOUR_OFOX_API_KEY",
)
response = client.images.generate(
model="microsoft/mai-image-2.5",
prompt="A beautiful sunset over mountains",
size="1024x1024",
)
print(response.data[0].url)

Frequently Asked Questions

Microsoft: MAI Image 2.5 on Ofox.ai costs $5/M per million input tokens and $47/M per million output tokens. Pay-as-you-go, no monthly fees.