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.6

microsoft/mai-image-2.6
ImageInput: text · image4KAdded Sep 4, 2026

Try Microsoft AI: MAI-Image-2.6 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.6 at a glance

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

About Microsoft AI: MAI-Image-2.6

MAI-Image-2.6 is an image generation and editing model from Microsoft, released by Microsoft AI as the precision tier of the MAI-Image-2.6 family. It sits alongside a faster sibling, MAI-Image-2.6 Flash, which trades some fidelity for speed. The model is positioned for design-ready visuals, so it is aimed at work where the output needs to hold up in a finished layout rather than serve as a rough sketch.

On the input side, the model accepts text and images, and it produces images as output. That combination means it can generate from a prompt and also edit or transform images you supply as references. The context window is 4096 tokens, and the maximum output is 1024. Image behaviour is controlled through a small set of image parameters: an aspect ratio chosen from 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3 or auto; an n value fixed at exactly 1, so each request returns a single image; and input_references, which accepts between 0 and 5 reference images.

Those capabilities point to a fairly specific set of uses. Text-to-image generation covers concept art, marketing visuals, product mockups and illustration where you want a polished result from a written brief. Because the model also takes image input, it fits editing and variation work: supplying up to five references lets you guide style, composition or subject consistency across a series of outputs. The aspect ratio options make it straightforward to target a specific placement, such as a 16:9 banner, a 9:16 story format or a 1:1 social tile, without post-cropping.

You call the model through api14's OpenAI-compatible API using the model id "microsoft/mai-image-2.6". The supported request parameters are max_completion_tokens, max_tokens and temperature, alongside the image parameters described above for aspect ratio, n and input_references. Because the interface follows the OpenAI schema, existing clients and SDKs generally work with only the model id and endpoint changed.

A few constraints are worth weighing before you commit. The context window of 4096 tokens is modest, so very long or heavily detailed prompts may need trimming. Each request returns one image, so batch generation means multiple calls. If latency matters more than maximum fidelity, the Flash variant in the same family is the more natural fit; MAI-Image-2.6 is the choice when output quality is the priority.

How to call the Microsoft AI: MAI-Image-2.6 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.6".
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.6",
  "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.6: frequently asked questions

How much does the Microsoft AI: MAI-Image-2.6 API cost?
Microsoft AI: MAI-Image-2.6 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.6?
Microsoft AI: MAI-Image-2.6 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.6 do?
Microsoft AI: MAI-Image-2.6 accepts text, image and returns image.
How do I call Microsoft AI: MAI-Image-2.6 from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "microsoft/mai-image-2.6". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to Microsoft AI: MAI-Image-2.6?
Comparable Image models at a similar price: Microsoft AI: MAI-Image-2.5, Krea: Krea 2 Large, OpenAI: GPT-5.4 Image 2. Each runs through the same API key, so switching is one string.

Microsoft AI: MAI-Image-2.6 community

New topic

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