Notice: Black Friday 2026 × Cyber Monday: Get up to 30% extra on top-ups, DeepSeek free to use · View the promotion
21:9 widescreen Hero image: soft-lit empty space on the left, a floating semi-transparent glass image card and prismatic light bands on the right, in ice blue, coral pink and warm gold gradients, engraved with the glowing text mai-image-2.7.

Microsoft

MAI Image 2.7

mai-image-2.7/flash/edit

The precision-focused tier in Microsoft's MAI image series, supporting text-to-image and image-to-image editing, capable of object removal and replacement, inpainting, and enhancement, accepting up to 5 reference images per request for multi-image fusion, and maintaining stable composition across multiple editing rounds

Try mai-image-2.7/flash/edit

Input

Output

image
Fill in the parameters and run — results show up here.

Pricing

mai-image-2.7/flash/edit per image

Specifications Unit Price
1K $0.0185
2K $0.074

Overview

Designed for image editing and image modification scenarios, this model accepts 1 to 5 reference images plus a text prompt and outputs a static image. It suits designers, e-commerce operators, and content producers who want to create new versions from existing assets: adjusting image attributes, replacing elements, or repainting local regions while preserving the original composition and visual style. Output can be 1K or 2K, with a fixed aspect ratio selectable as square, portrait, or landscape, and results are saved as PNG, JPEG, or WebP.

Key Features

  • Multi-image input for fused editing — A single request can include up to 5 reference images, used to fuse subjects, products, scenes, and other assets.
  • Controllable resolution and aspect ratio — Output can be 1K or 2K, with a fixed portrait or landscape ratio chosen from seven options.
  • Optional transparent background output — When the background parameter is set to transparent, the result contains transparent regions for later compositing and layout.

Capabilities

  • Reference-image editing and repainting: Using 1 to 5 images as input along with a prompt, it modifies image content, handling object replacement, attribute adjustment, and local repainting while keeping the original compositional relationships in the output.
  • Resolution and aspect ratio control: Output resolution is chosen between 1K and 2K, and the aspect ratio is chosen from square, 4:3, 3:2, and 16:9 in both portrait and landscape, to match different placements.
  • Output format and background settings: Results can be saved as PNG, JPEG, or WebP; the background can be opaque or transparent, and the transparent option suits downstream workflows that require cutout compositing.
  • Prompt-driven detail modification: Text descriptions specify what to change, with prompts up to 20,000 characters, so multiple modification requests can be described in a single request.

Use Cases

  • E-commerce operators changing product image backgrounds — Upload a product image and a scene reference image to replace the background or adjust the mood of the main image, then output product visuals in each placement's aspect ratio for storefronts and ad delivery.
  • Design teams iterating on poster elements — Use an existing poster as the input image, replace visual elements via prompt while keeping the layout, and generate PNG or WebP files for downstream layout work.
  • Content production requiring transparent assets — Input an existing image and set a transparent background to output an image with transparent regions for overlaying onto other backgrounds or templates.
  • Fusing multiple reference assets into one image — Upload character, product, and style reference images together and fuse them into a single coherent composition for concept drafts and visual proposals.

Limitations and Selection Advice

A single editing request can include up to 5 reference images; if more assets need to be combined, you should composite the input yourself first. Maximum output resolution is 2K; no 4K option is provided, so large-format print or ultra-high-definition publishing scenarios require separate upscaling. Prompts are limited to 20,000 characters, and input images must be HTTPS links.

  • New model New model now available: mai-image-2.7/flash/edit
  • New model New model launched: mai-image-2.7/flash/text-to-image
  • New model New model released: mai-image-2.7/edit

Frequently asked questions

View all FAQs →
  • What editing operations can this model perform?

    It supports object removal, object replacement, attribute modification, local inpainting, and image enhancement, while keeping the composition and layout stable across multiple consecutive edits. When making these edits, write what to change and what to keep into the prompt, and leave the rest for the model to infer from the visual context.

  • What is the maximum number of reference images I can pass in a single request?

    Up to 5 images, at least 1, passed in via the image_urls array. For multi-reference fusion, pass the person, product, style, and scene each as separate reference images, and state in the prompt what role each image plays; the model will fuse them according to the visual context.

  • What is the maximum output resolution?

    Maximum 2K; no 4K option is offered. resolution accepts 1K or 2K, defaulting to 1K; if 4K output is required, you need to switch to another model that supports 4K.

  • How can I write prompts for better editing results?

    Organize the prompt in this order: first anchor what to keep, then write the changes, and finally write the blending requirements: ① Clearly state the composition, subject, lighting, and layout to preserve; ② Specify the exact objects to remove, replace, or modify and their target state; ③ Explain how the new elements should blend with the scene in terms of lighting, scale, and position. This model reasons from visual context when a prompt is ambiguous, so spelling out the constraints in full is more effective than piling on adjectives.

Related Models

View all models →

Same Type