Home
Explore
Microsoft
MAI Image 2.6
microsoft/mai-image-2.6-flash/text-to-image
MAI-Image-2.6-Flash Text-to-image
text-to-image

MAI-Image 2.6 Flash Text-to-Image API by MICROSOFT

microsoft/mai-image-2.6-flash/text-to-image
Text-to-image

The fast, low-cost member of the MAI-Image-2.6 family, delivering the same photorealistic text-to-image quality as the flagship at less than half the cost for latency-sensitive, high-throughput production.

Compare models

MAI-Image 2.6 Flash Text-to-Image is developed by Microsoft. Atlas Cloud (operated by Atlas Cloud AI LLC) provides access to it and does not own it. All trademarks belong to their respective owners.

MAI-Image-2.6-Flash Text-to-Image

Overview

MAI-Image-2.6-Flash is the fast, low-cost member of Microsoft AI's MAI-Image-2.6 family. It carries the same generation and editing capabilities as the flagship MAI-Image-2.6 model, tuned instead for latency-sensitive, high-throughput production workloads — interactive apps, automated pipelines, personalization, and high-volume creative production. This endpoint exposes its text-to-image path: you send a natural language prompt and receive a finished, design-ready image.

MAI-Image-2.6-Flash is a diffusion-based generative model that progressively refines an image from the prompt, which gives it strong text–image alignment even on long, densely specified instructions. Microsoft reports that it generates images 2.8× faster than GPT-Image-2-Medium while delivering 72% greater efficiency, at less than half the cost of the flagship 2.6 model — and it still keeps the generation's characteristic strengths in in-image text rendering, portraits, and commercial photorealism, along with the two capabilities new to 2.6: model-directed aspect ratio selection and web-grounded generation.

microsoft/mai-image-2.6-flash/text-to-image and microsoft/mai-image-2.6-flash/edit are two entry points into the same underlying model, split by input type. Use this text-to-image endpoint when you have only a prompt; use the edit endpoint when you also have one or more reference images to work from.

Key Capabilities

  • Accurate text rendering — The headline improvement of this generation. Posters, packaging, signage, labels, UI mockups, and slide-style compositions come back with legible, correctly spelled, correctly kerned text.
  • Photorealistic synthesis — Realistic imagery with consistent lighting, materials, and scene structure, suitable for concept visualization and finished content.
  • High-fidelity portraits — Expressive, natural-looking people with accurate facial structure, skin texture, and lighting.
  • Product, branding, and commercial design — Tuned for product shots, marketing visuals, brand assets, and cinematic compositions rather than only artistic renders.
  • Visual reasoning — Reasons across objects, scale, spatial positioning, lighting, and scene structure, so ambiguous prompts still resolve into coherent images.
  • Web-grounded generation — Optionally retrieves current information from the web and uses it as extra context when interpreting the prompt. Useful for real-world entities, places, events, and anything that changes over time.
  • Model-directed aspect ratio — Instead of forcing a fixed canvas, the model can evaluate the prompt and pick the aspect ratio best suited to the requested content, composition, and framing.
  • High-resolution output — Up to 1.5K-class resolution, with a total budget of 2,359,296 pixels per image.
  • Long prompts — Up to 32,000 tokens of prompt context, enough for detailed art direction, brand guidelines, and exact copy to render.
  • Throughput-oriented — Low latency and reduced compute overhead per image make it practical to keep a user waiting in a UI, or to fan out thousands of variants in a batch job.

Benchmark Performance

  • No. 3 on the Arena image-editing leaderboard, ahead of Google's Nano Banana family and Meta's Muse Image — near-flagship placement from the low-cost variant.
  • 2.8× faster than GPT-Image-2-Medium, with 72% greater efficiency, per Microsoft's own measurements.
  • More than 50% cheaper than the flagship MAI-Image-2.6 on every meter.
  • The family as a whole holds No. 2 on Arena text-to-image and, on Artificial Analysis, No. 2 for text-to-image and No. 1 for image editing — Flash is positioned to sit close to that quality bar at a fraction of the cost.
  • Microsoft frames the Flash variant as its push on the quality-cost frontier: best price-per-Elo rather than best absolute Elo.

Choosing Between Flash and the Flagship

MAI-Image-2.6-FlashMAI-Image-2.6
Capability setIdenticalIdentical
SpeedFastest in the familyStandard
Cost~50% of flagshipBaseline
Best forInteractive UIs, drafting loops, batch pipelines, personalization, high-volume productionFinal production assets and commercial work where maximum precision matters

A common pattern is to draft and iterate on Flash, then re-run the winning prompt on the flagship for the deliverable.

API Parameters

The request body is JSON. Parameters follow the model's OpenAPI schema exactly.

ParameterTypeRequiredDefaultDescription
modelstringYesmicrosoft/mai-image-2.6-flash/text-to-imageModel name.
promptstringYes—Text prompt describing the image to generate. Maximum context length: 32,000 tokens.
sizestringNodefaultImage dimensions in width*height format (e.g. 1024*1024, 1536*1536, 2048*1152). Both width and height must be at least 768. The product of width × height must not exceed 2,359,296. Two special values are also supported: default uses the model's own default dimensions, and auto lets the model evaluate the prompt and select the output aspect ratio it determines is best suited to the requested content, composition, and framing.
enable_web_searchbooleanNofalseIf enabled, the model will use web search to ground the generation with real-time information. This can improve accuracy for prompts involving real-world entities, places, or events.
enable_base64_outputbooleanNofalseIf enabled, the output will be encoded into a BASE64 string instead of a URL. This property is only available through the API.
enable_sync_modebooleanNofalseIf set to true, the function will wait for the result to be generated and uploaded before returning the response. It allows you to get the result directly in the response. This property is only available through the API.

Notes on size

  • Individual dimensions are bounded: the minimum for either side is 768, and the maximum for either side is 2346.
  • The total pixel count must fall between 589,824 (768×768) and 2,359,296 pixels.
  • Practical picks inside the budget: 1536*1536 (1:1), 2048*1152 (16:9), 1152*2048 (9:16), 1728*1296 (4:3), 1024*1024 (1:1, lighter and faster).
  • Set size to auto when you would rather have the model choose the framing — it is often the better choice for posters, hero art, and anything where composition matters more than a fixed canvas.
  • Because Flash is usually chosen for speed, dropping to a smaller size is the single most effective way to cut both latency and settled cost further.

Response Format

Requests return a prediction envelope. Poll the returned urls.get endpoint (or set enable_sync_mode to wait inline) until data.status is completed, then read the image URLs from data.outputs.

FieldTypeDescription
codeintegerHTTP status code of the response.
messagestringHuman-readable message; non-empty on failure.
data.idstringUnique identifier for the prediction.
data.modelstringModel ID used for the prediction.
data.outputsstring[]Array of URLs to the generated content. Null when status is not completed.
data.urls.getstringURL to poll for the prediction result.
data.has_nsfw_contentsboolean[]NSFW detection flag per output. Null if not applicable.
data.statusstringcreated, processing, completed, timeout, or failed.
data.created_atstringISO timestamp of when the request was created.
data.errorstringError message if the task failed, empty string otherwise.
data.error_codeintegerError code if the task failed.
data.executionTimenumberTotal execution time in milliseconds.
data.timings.inferencenumberInference time in milliseconds.

Pricing

This model uses a hold-then-settle billing mode. When the request is accepted, an estimated price is held against your balance; when the request finishes, the hold is released and you are charged the final settlement price computed from the upstream token usage actually consumed.

Estimated Price (Hold)

SKUs

SKUDescriptionUnit Price
sku_output_imagePrice for the output image (per image)$0.044
sku_input_1m_tokenPrice per 1M input tokens$1.75
sku_web_searchPrice for web search$0.013

Parameters Used

ParameterSourceTypeDefault
promptrequest body promptstring""
enable_web_searchrequest body enable_web_searchbooleanfalse

Formula

estimate = countTokens(prompt) / 1,000,000 × sku_input_1m_token + sku_output_image + (enable_web_search ? sku_web_search : 0)

Substituting the unit prices:

estimate = countTokens(prompt) / 1,000,000 × $1.75 + $0.044 + (enable_web_search ? $0.013 : 0)

Worked Estimates

Prompt tokensWeb searchToken costOutput imageWeb searchEstimate
50off$0.0000875$0.044$0$0.0440875
500off$0.0008750$0.044$0$0.0448750
2,000off$0.0035000$0.044$0$0.0475000
500on$0.0008750$0.044$0.013$0.0578750
32,000 (max)off$0.0560000$0.044$0$0.1000000

For typical prompts of a few hundred tokens with web search off, the estimated price is approximately $0.045 per image — roughly half the flagship's estimate.

Final Settlement Price

Settlement is token-based across three meters, priced per 1M tokens:

MeterRate per 1M tokens
input_price — text input tokens$1.75
input_image_price — image input tokens$2.50
output_image_price — image output tokens$19.00
settled = (input_price × input + input_image_price × input_image + output_image_price × output_image) / 1,000,000

Substituting the rates:

settled = ($1.75 × input + $2.50 × input_image + $19.00 × output_image) / 1,000,000

Where input is the number of text input tokens, input_image the number of image input tokens (0 for this text-to-image endpoint under normal use), and output_image the number of tokens in the generated image, as reported by the upstream usage record. Because output image tokens scale with the resolution you request, a 1024*1024 image settles materially cheaper than a 1536*1536 one — the size parameter is the main lever you have over the final bill.

Illustrative settlement: a 200-token prompt producing an image billed at 1,000 output image tokens settles at ($1.75 × 200 + $19.00 × 1,000) / 1,000,000 = $0.01935. Actual token counts come from the upstream usage report, not from this document.

Best Use Cases

  • Interactive generation in product UIs — Fast enough to keep a user in the loop while they iterate on a prompt.
  • High-volume creative production — Thousands of banner, social, or catalog variants in a batch pipeline.
  • Personalization at scale — Per-user or per-segment imagery generated on demand.
  • Draft-then-finalize workflows — Explore cheaply on Flash, then finish the chosen direction on the flagship.
  • Marketing and packaging comps — Layouts with real headline copy rendered in place.
  • Concept art and pre-visualization — Rapid rounds of cinematic frames, environments, and storyboards.
  • Timely, real-world visuals — Turn on web search for imagery involving current events, real places, public landmarks, or facts that shift over time.

Prompting Tips

  • Quote text you want rendered. Put the exact string in quotation marks and name where it goes: a poster with the headline "Summer Sessions" centered at the top.
  • Specify the medium and lens. Words like studio product photograph, 85mm, soft key light steer realism far more reliably than adjectives like beautiful.
  • Describe composition explicitly — foreground, background, camera angle, negative space for copy.
  • Let the model frame it. When you do not have a hard canvas requirement, size: "auto" usually produces better-composed results than an arbitrary fixed ratio.
  • Reach for web search selectively. It improves factual grounding for real entities and events, but it adds latency and cost, so leave it off for purely imaginative prompts.
  • Exploit the price gap. Flash is cheap enough to generate several variants per idea and pick the best, which usually beats over-engineering a single prompt.

Technical Specifications

SpecValue
Model DeveloperMicrosoft AI
Model FamilyMAI-Image-2.6
Model Version2026-07-31
ArchitectureDiffusion-based generative model
TaskText-to-image generation
InputText prompt (up to 32,000 tokens)
OutputImage URL, or BASE64 when enable_base64_output is set
Min Dimension768 px per side
Max Dimension2346 px per side
Max Total Pixels2,359,296 (≈1.5K class, e.g. 1536×1536)
Aspect RatioFixed via size, or model-selected via size: "auto"
Web GroundingOptional, via enable_web_search
Images per Request1
Relative Speed2.8× faster than GPT-Image-2-Medium (Microsoft measurement)
Billing ModeHold-then-settle

Responsible Use

MAI image models apply data filtering and system-level content classifiers, and outputs are flagged through has_nsfw_contents. No generative model is immune to adversarial prompts, so add mitigations appropriate to your use case, avoid generating misleading or privacy-violating content or depictions of public figures and protected material, and disclose that images are AI-generated when you publish them.

Explore Similar Models

One API for All Media AI.

Explore all models