We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.

Microsoft AI: MAI-Image-2.5 Pro

microsoft/mai-image-2.5-pro
ImageInput: text · image4KAdded Jul 23, 2026

Try Microsoft AI: MAI-Image-2.5 Pro now

Runs on your balance at the prices above. New accounts start with free usage.

Sign in to use thisCreate free account
Results will appear here.
5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign inSession cost $0.00

Microsoft AI: MAI-Image-2.5 Pro at a glance

  • Input price is close to the median of 21 Image models.

About Microsoft AI: MAI-Image-2.5 Pro

MAI-Image-2.5 Pro is an image generation model from Microsoft, listed under the model id microsoft/mai-image-2.5-pro. It sits in the image category and is described by the provider as a high-quality image generation model available via Azure AI Foundry. If you are already working inside Microsoft's ecosystem, or you are comparing image models across providers, this is the Microsoft entry to consider.

The model takes text and image inputs and returns images. That means you can drive it with a written prompt, and you can also supply a single reference image alongside that prompt. The context window is 4096 tokens, which covers your prompt and any reference material you pass in. Output is capped at 1024, and generation is limited to one image per request, so each call produces a single result rather than a batch. Aspect ratio is selectable from a fixed set: 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, or auto, which lets you match the output shape to the slot it will fill rather than cropping after the fact.

Those capabilities point to a fairly specific set of jobs. Text to image work covers the usual ground: concept art, marketing visuals, illustrations, and photorealistic renders from a written description. The image input path is what makes the model more interesting for iterative work. You can pass a reference image and a prompt to steer a variation, restyle an existing asset, or explore directions from a starting point instead of a blank page. Because only one reference image is accepted, this suits single anchor workflows rather than multi image composition or collage style tasks. The fixed aspect ratios help when you need output that drops straight into a layout, a storyboard frame, or a social format without resizing.

Calling it through api14 works the same way as any other model on the gateway, using the OpenAI compatible API with the model id microsoft/mai-image-2.5-pro. The supported request parameters are max_completion_tokens, max_tokens, and temperature. Image specific options are passed alongside those: aspect_ratio takes one of the enum values listed above, n is fixed at 1, and input_references accepts between 0 and 1 reference images. If you have existing OpenAI client code, switching to this model is largely a matter of changing the model id and adding the image parameters to your request body.

The main constraints to weigh are the single output image per request and the single reference image limit. If your pipeline needs several images from one call, or needs to combine multiple references into one generation, you will have to issue multiple requests or look at a different model. The 4096 token context is also modest, so very long prompts or detailed reference descriptions may need trimming. For straightforward prompt driven generation with one anchor image and a chosen aspect ratio, it fits cleanly.

How to call the Microsoft AI: MAI-Image-2.5 Pro API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "microsoft/mai-image-2.5-pro".
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api14.com/api/v1",
  apiKey: process.env.API14_API_KEY,
});

const result = await client.images.generate({
  "model": "microsoft/mai-image-2.5-pro",
  "prompt": "A minimalist product photo of a ceramic mug on a wooden table",
  "n": 1,
  "aspect_ratio": "1:1"
});
import { writeFile } from "node:fs/promises";
await writeFile("image.png", Buffer.from(result.data[0].b64_json, "base64"));

Supported parameters

max_completion_tokensmax_tokenstemperature

Specifications

Context length
4,096
Max output
1,024
Input
text, image
Output
image

Requests on api14 · last 7 days

10-1710-1810-1910-2010-2110-2210-23

Microsoft AI: MAI-Image-2.5 Pro: frequently asked questions

How much does the Microsoft AI: MAI-Image-2.5 Pro API cost?
Microsoft AI: MAI-Image-2.5 Pro costs Input $17.50 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
What is the context window of Microsoft AI: MAI-Image-2.5 Pro?
Microsoft AI: MAI-Image-2.5 Pro reads up to 4,096 tokens per request: prompt, history and documents together. It writes up to 1,024 output tokens per response.
What can Microsoft AI: MAI-Image-2.5 Pro do?
Microsoft AI: MAI-Image-2.5 Pro accepts text, image and returns image.
How do I call Microsoft AI: MAI-Image-2.5 Pro from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "microsoft/mai-image-2.5-pro". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to Microsoft AI: MAI-Image-2.5 Pro?
Comparable Image models at a similar price: Microsoft AI: MAI-Image-2.5, Microsoft AI: MAI-Image-2.6, Krea: Krea 2 Large. Each runs through the same API key, so switching is one string.

Microsoft AI: MAI-Image-2.5 Pro community

New topic

This community has no topics yet. Open the first one about Microsoft AI: MAI-Image-2.5 Pro.