microsoftNot yet certifiedReleased 11/17/2026

MAI-Image-2.7

MAI-Image-2.7 is Microsoft AI's diffusion model for text-to-image generation and precise image editing, with output up to 2048x2048 and transparent backgrounds.

View API reference ↓
Input / output priceFrom$5.00 / $34.00per 1M
24h uptime100.00%

Listed for reference. Inference Bureau dispatches only to certified routes, so requests for this model are refused until one is certified. See certified models.

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.7",
  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——$5.00$34.00Read —Write —1 featuresYesYesGlobalListed

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.7",
  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.7 answers POST /v1/images/generations, 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.

More models by microsoft

ModelContextInputOutputCacheRelease
microsoft/mai-image-2.7-flash0$1.75$10.00Read —Write —11/17/2026
microsoft/mai-image-2.60$5.00$38.00Read —Write —10/13/2026
microsoft/mai-image-2.6-flash0$1.75$19.00Read —Write —10/13/2026