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 Flash

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

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

  • Input price is 65% lower than the median of 21 Image models.

About Microsoft AI: MAI-Image-2.6 Flash

Microsoft AI: MAI-Image-2.6 Flash is an image generation model from Microsoft, part of the MAI-Image-2.6 family. Within that family it is positioned as the lower-latency, lower-cost member, built for latency-sensitive, high-throughput production work. It is aimed at teams that need image generation and editing at scale rather than one-off, carefully tuned outputs.

The model accepts text and image inputs and produces images as its only output. Its context window is 4096 tokens, and the maximum output is 1024. Generation is controlled through a small set of image parameters: aspect_ratio, which accepts 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3 or auto; n, which is fixed at 1 image per request; and input_references, which accepts between 0 and 5 reference images. Alongside these, the model supports max_completion_tokens, max_tokens and temperature.

Those capabilities point to a fairly specific set of uses. Because it takes image inputs as well as text, it fits editing and reference-driven generation, where you supply up to five images and describe the change or the result you want. The aspect ratio options cover square, landscape and portrait formats, so the same model can serve social, web and print-oriented layouts without a separate pipeline. The combination of image input and image output also suits batch workflows such as generating variants from a product photo, restyling assets, or producing placeholder and draft imagery inside an automated build. The Flash positioning suggests it is the right pick when throughput and response time matter more than the last increment of precision.

You call it through api14's OpenAI-compatible API using the model id "microsoft/mai-image-2.6-flash". Requests follow the same shape as other OpenAI-compatible chat completions calls, with your text prompt and any reference images in the input and the generated image returned in the response. The supported request parameters are max_completion_tokens, max_tokens and temperature, plus the image parameters aspect_ratio, n and input_references. Set n to 1, choose an aspect ratio or leave it as auto, and pass up to five reference images when you want the output grounded in existing visuals.

A few limits are worth keeping in mind. The context window is 4096 tokens, which is modest, so very long prompts or many large reference images may need trimming. Only one image is returned per request, so producing a set of variants means multiple calls. If your work depends on maximum precision rather than latency and throughput, the precision tier of the same family is the more natural fit.

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

How much does the Microsoft AI: MAI-Image-2.6 Flash API cost?
Microsoft AI: MAI-Image-2.6 Flash costs Input $6.13 / 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 Flash?
Microsoft AI: MAI-Image-2.6 Flash 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 Flash do?
Microsoft AI: MAI-Image-2.6 Flash accepts text, image and returns image.
How do I call Microsoft AI: MAI-Image-2.6 Flash from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "microsoft/mai-image-2.6-flash". 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 Flash?
Comparable Image models at a similar price: OpenAI: GPT Image 1, OpenAI: GPT-5 Image, OpenAI: GPT-5.4 Image 2. Each runs through the same API key, so switching is one string.

Microsoft AI: MAI-Image-2.6 Flash community

New topic

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