Blog Post

Microsoft Developer Community Blog
8 MIN READ

Coding, Decisions, and Image Editing: Which AI Models Should Your Business Use?

kinfey's avatar
kinfey
Icon for Microsoft rankMicrosoft
Nov 22, 2026

Choosing an AI model is not just a leaderboard exercise. Building software, deciding whether an action is permitted, and editing a product image are different jobs with different acceptance criteria.

Code must work and survive review. Decisions must be fast without interrupting legitimate work. Images must preserve product details and brand identity—not merely look convincing. A practical enterprise solution assigns each job to a suitable model rather than asking one expensive general-purpose model to do everything.

This article explains MAI-Code-2, MAI-Code-2-Flash, Microsoft-Decision-1.1, and MAI-Image-2.7, using three public evaluation pages to connect model capabilities with business use cases, mainstream alternatives, and deployment decisions.

1. Four-model overview: purpose, best-fit scenarios, and access

This is a copyable Markdown comparison table. The accompanying SVG is exported from the same table without Mermaid and contains the English text used here.

Two distinctions matter. Flash is a separate model, not simply a speed switch for Code-2. The coding and image sections cover MAI models; the decision section covers Microsoft-Decision-1.1. This article compares four models by purpose rather than referring to all four as MAI models. Historical screenshots retain the original site's labels. 1, 2, 3

2. Start with the solution, not the model

Consider a retailer building an internal product-content and operations workspace. The four models could divide the work as follows. This is a proposed architecture, not an integration already implemented by the three evaluation pages.

WorkflowSuggested roleBusiness rationale
Build approval workflows, extend the backend, create operational dashboardsMAI-Code-2Requires repository understanding, multi-file changes, business logic, and tests
Explain existing code, adjust a field, fix a narrowly defined issueMAI-Code-2-FlashFrequent, bounded tasks benefit from a lower-cost coding option
Route a request or decide whether a proposed tool action needs approvalMicrosoft-Decision-1.1 plus deterministic policySeparates factual judgment from authority to execute
Replace product backgrounds or create packaging and campaign variationsMAI-Image-2.7 plus human reviewPreserving the original product matters more than generating a similar one

The operating pattern is request → decision and routing → specialist model → tests or human acceptance → authorized execution and publication. Sensitive tool calls need another policy check immediately before execution; checking only the initial request is insufficient.

A decision model does not replace access control. Authentication, permissions, spending limits, and approval state remain enforced by software. The model supplies semantic judgments that fixed fields and simple rules cannot fully express.

3. Code-2 and Flash: evaluate completed work, not plausible code

Where each model fits

MAI-Code-2 targets complex everyday enterprise engineering: deep debugging, multi-file implementation, repository-wide reasoning, and frontend development. Flash targets explanations, localized edits, routine fixes, and rapid iteration. Microsoft explicitly notes that these models are not yet optimized for fundamental scientific research or very long-horizon autonomous work.1

Provide repository context, reproduction steps, permitted scope, required tests, and behavior that must not change. Assess the resulting diff and test evidence—not just the fluency of the explanation.

What the official comparisons say

Published comparisonReported resultInterpretation
Code-2 vs GPT-6.1 Sol98% of average coding performance at approximately 40% of the costA workload-specific average, not a guaranteed 60% saving on every project
Code-2 vs Claude Opus 5.596% of average performance at approximately 5% of the costNot evidence that total enterprise ownership costs fall by 95%
Flash vs GPT-6 Luna / Claude Haiku 5.5Comparable performance at approximately 65% / 20% of the costRelevant to frequent coding tasks, not universal quality equivalence

Microsoft published these comparisons on November 17, 2026. Models ran at max reasoning effort. Code-2's four benchmarks were DeepSWE 1.1, TerminalBench 2.1, SWE Atlas, and FrontierCode 1.1; Flash used the first three. MAI costs use 50% promotional pricing. Those conditions belong alongside the headline numbers.1

What the independent coding site shows

Open the coding benchmark. Its saved Terminal-Bench 2.0 experiment planned 59 of the official 89 tasks across 14 categories. The original environment used Windows + ARM64 and Linux ARM64 Docker, low reasoning effort, and one attempt per task. Some tasks required environment repairs or adaptations. This is not an official full-leaderboard submission.

 

ModelPassed / validly gradedProvisional pass rateExecution errorsMean agent timeKnown usage-value subtotal
MAI-Code-245 / 5877.59%1235.1 s$1.363
MAI-Code-2-Flash39 / 5570.91%4173.6 s$0.147
GPT-6.2-Sol44 / 5580.00%4113.9 s$5.125
Gemini-4-Hydrogen44 / 5580.00%4152.5 s$4.125

Source: saved run 0ff12f517c1349afb3a7c9f79b35f59d, executed November 21–22, 2026. Every model had 59 planned tasks. Pass rates divide passes by validly graded tasks. Dollar figures are partial known usage-value subtotals, not complete costs or additional invoices.

The results reveal trade-offs. Code-2 passed more of its validly graded tasks, while Flash had a much lower known usage value. But Code-2 also had the longest mean agent time in this run: the evidence does not support “MAI is always faster.”

The 80% and 77.59% figures do not establish a winner. Graded coverage differs, errors remain, environments were adapted, and costs are incomplete. Mean agent time covers agent execution for graded tasks and excludes verification; it is not a single model API response time. A procurement-grade comparison needs the same task set, controlled environments, and complete cost records.

4. Decision-1.1: a judgment layer inside software

What makes it different

Microsoft-Decision-1.1 specializes in classification, routing, prioritization, verification, and workflow control. Its primary output is a structured decision with confidence, rather than a long answer. Version 1.1 also accepts images, including photos and screenshots; the experiment discussed here tests textual tool actions, not that multimodal capability.2

For example, “clean up files” might mean removing regenerable cache files or deleting original customer records. The model judges factual predicates about the proposed action. Application code combines those judgments with permissions and approval state into ALLOW, ASK, or BLOCK.

Define independent rules and positive and negative boundaries, call the Decision API, and apply thresholds in code. Missing context, uncertainty, or API failure should trigger escalation or conservative handling—not automatic permission.

Microsoft reports a score of 68 on Artificial Analysis Decision Index v2.1, ahead of Jev 1.14, Gemini Decision 1, and GPT-6 Luna (Decisions). The index combines quality, calibration, and latency; 68 does not mean 68% accuracy.2

The experiment: better boundaries can matter as much as model choice

Open the decision experiment. Ten governance scenarios each contain one hazardous and one safe synthetic action: 20 actions total. Every request evaluates ten rules. Three models and two prompting conditions produce 120 requests and 1,200 rule judgments, at a fixed 0.5 threshold. Proposed tool actions are classified, never executed.

Model: definitions + boundary examplesRule recallRule false-positive rateUnnecessary interruption rateP50 / P95Estimated cost per 1,000 requests
Microsoft-Decision-1.1100.0%0.0%0.0%446 / 843 ms$0.05254
Decision-1.0 (site label)100.0%0.0%0.0%538 / 619 ms$0.04812
GPT-6 Luna Decisions91.7%0.0%0.0%2,878 / 6,251 msUnknown: one API error

 

Understanding the price

Official Foundry input prices are $0.042 per million tokens for Global Standard, $0.046 for US Data Zone, and $0.05 for EU/APAC Data Zone. Output tokens are free.2

At 1,000 input tokens per request, Global Standard model-only cost is approximately $0.042 per 1,000 requests. Longer rules and context increase input cost; the experiment's $0.05254 is not a fixed per-request tariff. Gateways, storage, monitoring, and other services are additional costs.

5. Image-2.7: measure commercial acceptability, not just appearance

Controlled editing is the core proposition

Microsoft emphasizes fine-grained edits: change an object's color, material, or position while preserving the rest of the image. Image-2.7 supports successive edits and transparent backgrounds. That is relevant to product photography, brand variations, and portrait work where preserving identity and details is essential.3

As of November 16, 2026, Microsoft's release notes report first place on AA-Image-Editing v2.1: 1,215 Elo across 5,478 votes, four Elo ahead of GPT Image 2.6 Sunburst (max). The announcement describes approximately one-fifth of the competitor's cost and a reference price of roughly $35 per 1,000 images for Image-2.7.3

This is a useful market signal, not evidence of overwhelming superiority. A four-Elo lead should not be called statistically significant without confidence intervals. An editing rank also does not mean first place on every generation task or guarantee commercial acceptance of every output.

The evaluation page: inspect what stayed unchanged

Open the image-editing benchmark. It contains ten commercial editing briefs, GPT-Image-2-generated synthetic reference images, and fixed English instructions. Seven models have 70 saved results spanning portraits, product backgrounds, packaging labels, web banners, application screens, and logo cleanup.

The packaging brief illustrates acceptance clearly: change only the blue accent band to green. Product name, package shape, typography, barcode, shadows, and background should remain intact. An attractive overall result does not establish those details are correct; small print and barcodes need full-resolution inspection, OCR, or scanning.

Review dimensionCommercial acceptance question
BRF: Baseline Requirement FulfillmentWere all requested edits completed without changing protected text or features?
VEQ: Visual Execution QualityAre artifacts, lighting, materials, composition, and text legibility acceptable?
CNS: Commercial Necessity SatisfactionWere unedited regions, identity, and product attributes preserved with natural edit boundaries?

The published outputs do not include completed human BRF, VEQ, CNS scores or acceptance judgments. This article therefore does not invent average quality scores or turn the gallery into a ranking. The experiment draws on ServImage; it is not a full reproduction of that paper's original benchmark.4

What the timing and cost records show

The following averages use 70 saved outputs from November 18, 2026: ten per model. Costs are the site's reference estimates. Timing is end-to-end at the application's API boundary.

Site model labelMean time per imageMean estimated cost per image
MAI-Image-2.735.18 s$0.0350
MAI-Image-2.7-Flash27.76 s$0.0100
FLUX.2-pro17.42 s$0.0465
FLUX.2-flex23.49 s$0.1049
gpt-image-241.91 s$0.0397
gpt-image-2.5-sunburst34.02 s$0.0314
gpt-image-2.5-flare30.83 s$0.0334

 

6. Run a pilot with acceptance criteria before expanding

Start with bounded work rather than immediately granting an agent authority over production.

PilotApproachMeasures
EngineeringCompare Code-2, Flash, and your current model on the same real issues and featuresTest outcomes, reviewer acceptance, rework, completion time, complete cost
Decisions and controlsUse a held-out set of safe, hazardous, and underspecified actions; standardize transport and warm-upMisses, false interruptions, escalation, API errors, P50/P95
Commercial imagesFix references, instructions, and output specifications; conduct blind reviewBRF/VEQ/CNS, acceptance rate, rework, cost per accepted output

 

The takeaway

The strongest proposition is a division of labor: Code-2 for complex engineering, Flash for frequent bounded changes, Decision for structured judgment and routing, and Image for controlled visual production.

Official benchmarks help identify candidates. Independent experiments expose trade-offs. Your own acceptance set determines whether to deploy. The winning solution is the one that consistently delivers acceptable outcomes at an acceptable cost and risk—not simply the model with the most impressive headline.

Sources and evaluation pages

  1. Microsoft: MAI Code 2 and Code 2 Flash — capabilities, access, evaluation settings, and promotional pricing.
  2. Microsoft: Microsoft-Decision-1.1 general availability — official naming, Decision Index, image inputs, access, and regional prices.
  3. Microsoft: MAI Image 2.7 — editing, public preview, Elo results, and reference prices.
  4. ServImage paper and decision-governance paper — methodologies referenced by the sites, not sources of this experiment's scores.
  5. GitHub Copilot models and pricing — usage, caching, and AI-credit accounting.
  6. Coding benchmark · Decision experiment · Image-editing benchmark.
Published Nov 22, 2026
Version 1.0
No CommentsBe the first to comment