How Much To Run AI
Hosted API

MAI Image 2.7: Compare Image Generation and Editing Costs

MAI Image 2.7 and MAI Image 2.7 Flash are Microsoft’s hosted image generation and editing models. The flagship is aimed at higher-quality edits, while Flash is the faster, lower-cost option. Microsoft estimates about $35 and $10 per 1,000 images, respectively, through the Foundry public preview.

Content reviewed:

Open Microsoft’s MAI Image 2.7 announcement ↗
Microsoft estimates about $35 per 1,000 image outputs with MAI Image 2.7 and about $10 with Flash. Compare cost and accepted results for your generation or editing workflow.
Approximate image prices announced by Microsoft for the Foundry public preview.

Use this model

See access details in the guide below.

When should you compare MAI Image 2.7 and Flash?

  • Generate product, editorial or concept images from a text prompt.
  • Edit a reference image while preserving its layout or important visual details.
  • Compare the flagship and Flash on accepted-image cost for a batch workflow.

Which MAI Image version should you try?

Both models support text-to-image generation and image-to-image editing in Microsoft Foundry. Both are still public preview, which Microsoft says may have constrained capabilities and no service-level agreement; it does not recommend preview models for production workloads. Microsoft presents MAI Image 2.7 as the higher-quality option, with fine-grained edits, and Flash as the faster, lower-cost option. Run the same prompts and source images through both models to see which one gives you an acceptable result with fewer retries.

Microsoft reports that MAI Image 2.7 ranked first in its image-editing comparison on Artificial Analysis. Treat the ranking as a dated evaluation rather than a guarantee for every prompt, image or edit sequence.

Deploy MAI Image 2.7 in Microsoft Foundry

In your Foundry project, open the model catalog and select MAI-Image-2.7 or MAI-Image-2.7-Flash. Microsoft lists both as Global Standard deployments at version 2026-11-02. Choose a supported region, give each deployment a distinct name and copy the resource endpoint from the deployment details. You need a paid Azure subscription and permission to deploy the model. The request sends the name you assigned, so both deployments can use the same API paths on the same resource.

Start in the Foundry playground to check the selected MAI Image 2.7 deployment with a square product image. The generations endpoint takes a JSON prompt and dimensions. For an edit, switch to /mai/v1/images/edits and send multipart form data with your prompt, deployment name and repeated image fields. Foundry accepts up to five JPEG or PNG references in that request. It returns a base64-encoded PNG on either route.

Use an API key or Microsoft Entra ID for calls to the resource endpoint. Test generation and editing separately before a batch so the two request formats, authentication and output decoding are already working. When migrating between providers, test an edit containing the same number of source images you expect in production and check which provider returns the dimensions and format you need.

This example sends one square generation request and saves the returned PNG. Set the endpoint, key and deployment name in your local shell. Keep the API key out of browser code and source control.

Generate one image with a deployed Foundry model
import base64
import os
import requests

endpoint = os.environ["AZURE_ENDPOINT"]
api_key = os.environ["AZURE_API_KEY"]
deployment = os.environ["DEPLOYMENT_NAME"]

response = requests.post(
    f"{endpoint}/mai/v1/images/generations",
    headers={"Content-Type": "application/json", "api-key": api_key},
    json={
        "model": deployment,
        "prompt": "A studio product photograph of a blue ceramic travel mug",
        "width": 1024,
        "height": 1024,
    },
)
response.raise_for_status()
image = response.json()["data"][0]["b64_json"]
with open("output.png", "wb") as output:
    output.write(base64.b64decode(image))

MAI Image 2.7 on fal, OpenRouter and Vercel

Use fal if your application already calls task-specific endpoints. Its MAI Image 2.7 family has separate routes for generation and edits on both the standard and Flash models. fal accepts image URLs for edits and supports PNG, JPEG and WebP outputs. Its product playground and API documentation describe different interface options, so use the reference-image limit shown for the exact endpoint and interface you call.

Use OpenRouter if your app already manages model access and spend there. OpenRouter lists microsoft/mai-image-2.7 and microsoft/mai-image-2.7-flash and provides its own image request format. Copy the model ID and API example from the listing for your variant. A Foundry deployment name, Azure credential or multipart example belongs to the Foundry route. Log the selected route and the model usage on each call so your test can attribute costs to the correct provider.

Vercel AI Gateway exposes both model IDs as well. Its launch documentation shows generation and image editing through the AI SDK using an AI Gateway key, with support for transparent backgrounds and output up to 2,048 × 2,048 pixels. The gateway also publishes model rates. Compare route prices using the same source-image count and dimensions, because a gateway’s inputs and outputs can be metered differently from Microsoft’s launch estimate.

Foundry’s default restriction on photorealistic edits

Microsoft says Foundry blocks photorealistic edits involving minors by default. This is an image-edit policy boundary. Applications that accept user uploads should handle a policy rejection separately from timeouts or transient server failures. Show a clear message and give users a way to stop or choose a different supported task. Exclude blocked requests from throughput comparisons and track them separately when planning the cost of a workflow.

How much do MAI Image 2.7 images cost?

Microsoft’s public-preview announcement estimates about $35 per 1,000 images for MAI Image 2.7 and about $10 per 1,000 for Flash. At those rounded rates, one image averages about 3.5 cents with 2.7 or 1 cent with Flash. A 10,000-image batch would be roughly $350 or $100 before retries and other Azure charges.

Use these figures as a planning estimate from Microsoft’s announcement, not a fixed quote for every image size, region or billing account. Confirm the current deployment price in Foundry before committing a batch. For a meaningful comparison, count the number of calls and revisions needed to produce an image you accept, not only the first output.

PoYo ran the same 2,720 × 1,536 cafe prompt through both models on its own API on November 19, 2026. The provider reported about 66 seconds from submission to result for MAI Image 2.7 and 42 seconds for Flash, including polling. At the PoYo rates listed on November 21, those requests came to about $0.139 and $0.041 respectively. Use this pair as an example of how output size and provider rates can change the cost of a larger image.

ModelApproximate price per 1,000 imagesApproximate cost for 10,000 images
MAI Image 2.7$35$350
MAI Image 2.7 Flash$10$100

Measure the cost of an accepted image

Choose a small set of prompts and source images that match your actual work. Run the same set through both models, keep the requested dimensions fixed and record each response, retry and accepted result. If Flash needs more rounds on a specific edit, include those extra calls in the comparison. The lower per-image estimate is useful when its output meets your acceptance bar.

Robert Crane of CIAOPS tried both models on the same espresso-machine cutaway prompt. The 1,536-pixel-square result from MAI Image 2.7 packed in more labels and diagram details. The 1,024-pixel Flash result used a similar layout with fewer details. Because the outputs differed in resolution, use the examples to decide what to inspect, then compare the models at the same size. Check part names and numbers against a reference before using a technical illustration.

The models are hosted previews, not downloadable weights. Your budget includes the image API calls and any Azure resources or workflow services you use around them. Image rights, customer data handling and output review follow the terms for the Foundry service you choose.

Before you use it

  • The published per-image figures are rounded planning estimates for a public preview. Confirm current Foundry pricing and include retries in your workload budget.

How to get started

Deploy the same Foundry image endpoint for each model, run a small fixed prompt set, then compare current account charges per accepted output.

Sources

Sources (8)

Calculators