by Microsoft

Fast 1K and 2K stills and five-photo edits built for quick iteration

microsoft/mai-image-2.7-flash/text-to-image
MAI-Image-2.7 Flash AI Image Generator online
  • Up to 2K
  • Up to 5 reference images
  • 11 aspect ratios
  • Create Image
  • Edit Image

About MAI-Image-2.7 Flash

Flash is the throughput tier of Microsoft's MAI-Image-2.7, and both of its endpoints use exactly the same request shape as the full model, so one integration can switch tiers by changing the model name alone. Measured on PopNow in November 2026: 2K text-to-image in about 39 seconds, image-to-image in 27 to 33 seconds. That makes it the sensible engine for previews, variant grids and batch catalogue jobs.

Call it with the model name microsoft/mai-image-2.7-flash/text-to-image on POST /jobs/createTask, from $0.03.

Introduction

Fast 1K–2K text-to-image with MAI-Image-2.7 Flash

MAI-Image-2.7 Flash brings Microsoft's 2.7 image architecture to high-throughput workloads. In our November 25, 2026 verification runs, 1K square output returned 1024 x 1024 and 2K 16:9 returned 2720 x 1536 with sharp multi-script storefront lettering.

Test notes

  • Strong value for catalog concepts, social headers, and rapid prompt iteration before upgrading final hero frames to MAI-Image-2.7.

Request parameters

ParameterRequiredDescription
promptYesDescribe what you want to make.
resolutionNoChoose an available output size. 1k · 2k · Default: 1k
aspect_ratioNoThe shape of the frame: wide, square or tall. 1:1 · 16:9 · 9:16 · 4:3 · 3:4 · 3:2 · 2:3 · 21:9 · 9:21 · 4:1 · 1:4 · Default: 1:1

Pricing

Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.

OptionUSD per image
resolution 1K$0.03
resolution 2K$0.0492

Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.

API quick start

Call the MAI-Image-2.7 Flash API in three steps

  1. Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
  2. Send the request. POST /jobs/createTask with model microsoft/mai-image-2.7-flash/text-to-image and an input object that follows the parameter table. The response returns a task ID straight away.
  3. Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -d '{
  "model": "microsoft/mai-image-2.7-flash/text-to-image",
  "input": {
    "prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
    "aspect_ratio": "1:1",
    "resolution": "1k"
  }
}'

# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.

What to build with the MAI-Image-2.7 Flash API

  • A preview-then-final pipeline: render every candidate with Flash, let the user star one, then resubmit the identical body to microsoft-mai-image-2-7 for the delivered file. Because the fields match, promotion is a model swap rather than a remapping.
  • A storefront backdrop changer: take a product shot, offer preset scenes, and send the shot with a prompt that pins angle and size. Our square shoe test held its shape and colour through a full background change in 27 seconds.
  • Bulk catalogue generation where hundreds of 1K images are queued at once, each with its own Idempotency-Key so client retries never duplicate a charge.

MAI-Image-2.7 Flash parameter notes

  • aspect_ratio has 11 values from 4:1 to 1:4 with 1:1 as default; resolution is 1k (default) or 2k. Observed sizes: 1024 × 1024 for 1K square, 2048 × 2048 for 2K square, 1760 × 2336 for 2K 3:4 and 2720 × 1536 for 2K 16:9.
  • Edit requests are validated against prompt and image_urls (one to five entries). resolution is not part of the edit schema, and our outputs followed the source shape at about one megapixel.
  • Flash takes negations literally. A trailing no text, no logo removed every trace of lettering from our packshot, so append it in your template for product shots where your own overlay adds copy later.
  • Geometric instructions get loosened: a requested spiral of books came back as a stepped stack. For templates that depend on one exact form, budget for a regenerate button or a quick review step.

How MAI-Image-2.7 Flash API pricing adds up

Both tasks bill per image. At 1K Flash costs a little over a third of the full MAI-Image-2.7 rate and at 2K under a third; 2K runs about 1.6 times Flash's own 1K price. Edits have a flat per-image rate plus a small charge for each image_urls entry after the first. Fetch a quote with the final body and record costUsd on completion.

  • resolution 1k: $0.03 per run, $3.00 for 100 runs
  • resolution 2k: $0.0492 per run, $4.92 for 100 runs

Async jobs, webhooks and rate limits

Every MAI-Image-2.7 Flash request is asynchronous: createTask returns a taskId straight away, and the result arrives when the job finishes. Poll GET /jobs/recordInfo every few seconds, or pass a public https callBackUrl and verify the X-Webhook-Signature header (HMAC-SHA256 over taskId, timestamp and the body hash) before trusting the payload. Each account gets 1,000 write requests per 10 seconds; a 429 carries Retry-After. Send an Idempotency-Key with createTask so a retried request for microsoft/mai-image-2.7-flash/text-to-image never runs or bills twice.

Common MAI-Image-2.7 Flash API errors

errorCodeWhat it usually means and how to fix it
invalid_requestAn image_urls array outside one to five items, an aspect_ratio that is not among the 11 enum values, or an empty prompt.
invalid_assetOne source could not be downloaded or is an unsupported type. Re-host it and resend the array in the same order.
rate_limitedBatch jobs can reach the per-account write limit. Honour Retry-After and spread submissions out instead of retrying in a tight loop.
generation_failedThe job ran but produced no usable image. Retry once with a fresh Idempotency-Key, then surface the failure to the user.

MAI-Image-2.7 Flash API questions

How much does the MAI-Image-2.7 Flash API cost?

MAI-Image-2.7 Flash starts at $0.0186 per image with Edit Image, its lowest-priced task. Prices for Create Image by option: 1K $0.03 per image, 2K $0.0492 per image. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.

What is the model name for MAI-Image-2.7 Flash in the API?

Put microsoft/mai-image-2.7-flash/text-to-image for Create Image; microsoft/mai-image-2.7-flash/edit for Edit Image in the model field of POST /jobs/createTask.

Can I switch between Flash and MAI-Image-2.7 without code changes?

For the body, yes: both models accept the same fields and enums on both tasks. Only the model identifier and the quoted price change.

Does Flash support a transparent background?

No. There is no background field. Generate on a plain backdrop and run a cutout step when you need alpha.

How large are Flash edit outputs?

Close to one megapixel: 1024 × 1024 from a 2048 square and 896 × 1184 from a 1760 × 2336 portrait-shaped still life.

What are the limits of the MAI-Image-2.7 Flash API?

Resolutions: 1K · 2K; Aspect ratios: 1:1 · 16:9 · 9:16 · 4:3 · 3:4 · 3:2 +5; Prompt length (characters): 10,000. Requests outside these limits are rejected before anything is charged.

Can I try MAI-Image-2.7 Flash without writing code?

Run MAI-Image-2.7 Flash in the Playground without an API key, using the same PopNow balance as the website, shown in USD. Each run appears in your developer history with its matching code.

All MAI models

MAI-Image-2.7 runs the same features at roughly three times the price and took 55 to 60 seconds for our 2K stills. It earns that time on skin texture and crowded scenes with believable scale. Flash is the better default for products, still life and rounds of drafts; move the chosen prompt to MAI-Image-2.7 for the hero version.

More about MAI-Image-2.7 Flash