🔥 Black Friday AI API deals are live· 🎬 Seedance 2.5 — 20% off, up to 42% below market, until Nov 30Ends in--d --:--:--See deals →

MAI Image 2.7: AI Image Generator

MAI Image 2.7 API: Microsoft's frontier-quality image generation with accurate text, 2K output and transparent backgrounds. Pay per image, no subscription.

Interactive model controls

Generate images from text with Microsoft MAI Image 2.7. Strong prompt following and accurate in-image text, 1K/2K or custom sizes up to about 4 megapixels, and transparent backgrounds.

📝

Overview

About this model

MAI Image 2.7 is Microsoft's standard-tier MAI Image 2.7 model, here for text-to-image generation. It follows long prompts closely (up to 32,000 characters), renders quoted text accurately, outputs 1K (about 1 megapixel) or 2K (about 4 megapixels) at seven aspect ratios or a custom WIDTHxHEIGHT, and can produce transparent PNG/WebP assets.

1Marketing: Posters, ads and social graphics with accurate on-image headlines.
2Design: Logos, stickers and cut-out assets with transparent backgrounds.
3E-commerce: Product scenes and restyled photography.
4Content: Editorial art, thumbnails and cover images at scale.
💰

Pricing & Value

Cost analysis

muapiapp$0.035 per image

Flat across 1K and 2K.

** Competitor pricing is estimated based on similar model architectures and usage tiers.

⚙️

Technical Details

Configuration schema

Promptstring

Text prompt (1-32,000 characters). Put text that must appear in the image in quotes.

Default ValueA vibrant campus open-day poster, bold geometric shapes, a smiling student with a backpack, the headline "OPEN DAY 2027" in clean sans-serif lettering, warm natural light, crisp print-ready design
Sizestring

Aspect ratio (1:1, 4:3, 3:4, 3:2, 2:3, 16:9, 9:16) or a custom WIDTHxHEIGHT such as 2048x2048. Custom sizes need both sides divisible by 16, each at least 768, and at most 4,194,304 total pixels.

Default Value1:1
ResolutionEnum (2 options)

1K is about 1 megapixel, 2K about 4 megapixels. Applies to aspect-ratio sizes only.

Default Value1K
BackgroundEnum (2 options)

Use transparent for cut-out assets (needs png or webp output).

Default Valueopaque
Output FormatEnum (3 options)

Output image format.

Default Valuepng
📖

Implementation Guide

Developer documentation

How to Use MAI Image 2.7

  1. Write your prompt: Describe the subject, style and lighting. Put any text that must appear in the image in quotes.
  2. Pick size and resolution: Choose an aspect ratio (1:1, 4:3, 3:4, 3:2, 2:3, 16:9, 9:16) with 1K or 2K, or a custom WIDTHxHEIGHT (both sides divisible by 16, at least 768, at most 4,194,304 total pixels).
  3. Optional: Set background to transparent with png or webp output for cut-out assets.
  4. Submit: Send the request and poll for the result, or pass a webhook query parameter.
curl -X POST https://api.muapi.ai/api/v1/mai-image-2.7-text-to-image \
  -H "x-api-key: $MUAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "A campus open-day poster with the headline \"OPEN DAY 2027\"", "size": "16:9", "resolution": "2K"}'
❓

Common Questions

Frequently asked

What does it cost?

$0.035 per image. Pricing is flat across 1K and 2K and across sizes.

How do I get a transparent background?

Set `background` to `transparent` and use `png` or `webp` as `output_format`.

What custom sizes are allowed?

Both sides must be divisible by 16, each at least 768, and the total at most 4,194,304 pixels (for example 2048x2048 or 3072x1344).

How many images per request?

One image per request, in the format set by `output_format`.