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/text-to-image

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/text-to-image

Input

Output

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

Pricing

mai-image-2.7/flash/text-to-image per image

Specifications Unit Price
1K $0.0149
2K $0.0594

Positioning Overview

This is a text-to-image generation model that outputs static images based on natural language prompts. The currently available input method is the prompt, with a maximum length of 20,000 characters. Target users include creative designers, content operators, and visual developers, who can use it to rapidly generate visual assets such as concept art, social media illustrations, and poster drafts.

Core Highlights

  • Long prompts for describing complex scenes — Prompts support up to 20,000 characters, accommodating detailed descriptions of scenes, styles, and composition.
  • Multiple aspect ratios available — Provides 7 aspect ratios in total, including square, 4:3, 3:2, and 16:9 in both landscape and portrait orientations, suitable for different layouts.
  • 1K or 2K resolution output — Each request can select either 1K or 2K output resolution, meeting the needs of drafts or final images.
  • Transparent background and format options — A transparent background can be selected, and images can be output in PNG, JPEG, or WebP format as needed.

Capability Description

  • Text-to-image generation: Input a natural language prompt, and the model generates a static image matching the description, suitable for rapidly producing visual concepts from text.
  • Aspect ratio control: Select one of square, portrait 4:3, landscape 4:3, portrait 3:2, landscape 3:2, portrait 16:9, or landscape 16:9 via the image_size parameter, suitable for layouts such as posters, header images, or square images.
  • Resolution and format options: resolution can be set to 1K or 2K, and output_format can be set to PNG, JPEG, or WebP, allowing you to choose output clarity and file format according to the publishing channel.
  • Transparent background output: When background is set to transparent, a transparent-background image is generated, making it easy to overlay the subject asset onto other design drafts.

Use Cases

  • Designers rapidly producing concept art — Designers input detailed scene descriptions and generate 1K or 2K images as inspiration sketches or proposal illustrations for internal review and presentations.
  • Content operators creating social media illustrations — Operators use prompts to generate square or portrait images, choose a suitable format, and directly use them as illustrations for platforms such as WeChat Official Accounts and Xiaohongshu.
  • Ad and poster draft generation — Creative teams generate scene concept art in 16:9 or 4:3 aspect ratios as poster backgrounds or ad visual drafts for subsequent layout.
  • Transparent background asset creation — Visual developers generate subject images with transparent backgrounds, export them as PNG, and embed them into web pages, app interfaces, or e-commerce detail pages.

Limitations and Selection Advice

The maximum output resolution is 2K, with no 4K option; each request generates only one image; the prompt is required and must be between 1 and 20,000 characters; the aspect ratio, resolution, background, and output format must each be selected from the given options.

  • 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