microsoftCertifiedReleased 10/13/2026

MAI-Image-2.6-Flash

MAI-Image-2.6 is a diffusion-based generative model designed for both high-quality text-to-image synthesis and precise, controllable image-to-image editing. It progressively transforms random noise into a coherent image aligned with a given text prompt, leveraging a flow-matching loss to learn a continuous transformation between the noise distribution and the data distribution. MAI-Image-2.6 excels at precise, surgical edits with consistency - enabling users and developers to make targeted object edits, adapt layouts, update text, clean up artifacts like motion blur, and preserve visual consistency across iterations.

View API reference ↓
Input / output priceFrom$1.75 / $19.00per 1M
24h uptime100.00%
import OpenAI from "openai";

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

const res = await client.images.generate({
  model: "microsoft/mai-image-2.6-flash",
  prompt: "A lighthouse at dusk, oil painting",
  size: "1024x1024",
});

// Base64 only: images are returned, never stored.
const png = Buffer.from(res.data[0].b64_json, "base64");

Providers

Dispatch routes requests across these providers and fails over between them without changing the model. Restrict or order providers with team Directives. Prices are gateway list prices before the platform fee.

ProviderContextMax outputLatencyThroughputInputOutputCacheCapabilitiesZDRNo trainingRegionsStatus
Azure00——$1.75$19.00Read —Write —1 featuresYesYesGlobalCertified

Uptime

24 hours

Request success rate per provider.

Azure100.00%

Getting started

Create a key on the API Keys page and set it as IB_API_KEY. See the quickstart.

import OpenAI from "openai";

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

const res = await client.images.generate({
  model: "microsoft/mai-image-2.6-flash",
  prompt: "A lighthouse at dusk, oil painting",
  size: "1024x1024",
});

// Base64 only: images are returned, never stored.
const png = Buffer.from(res.data[0].b64_json, "base64");

MAI-Image-2.6-Flash answers POST /v1/images/generations, and edits images with POST /v1/images/edits, not chat completions. It is billed per output token: the balance held for a request is the most tokens the size and quality asked for were measured to take.

Tokens per image

Measured on Azure at $19.00 per 1M output tokens. Other sizes are refused. A further $0.014 per image is held for web grounding.

OutputOutput tokens
1024x10241,024 tokens ≈ $0.019
1024x15361,536 tokens ≈ $0.029
1536x10241,536 tokens ≈ $0.029
Size not set1,024 tokens ≈ $0.019

More models by microsoft

ModelContextInputOutputCacheRelease
microsoft/mai-image-2.60$5.00$38.00Read —Write —10/13/2026