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

MAI Image 2.7 API — Text-to-Image & Image Editing with Transparent Backgrounds

MAI Image 2.7 is Microsoft's image generation and editing model. Call MAI Image 2.7 and the faster, lower-cost MAI Image 2.7 Flash through one Muapi API key for text-to-image and multi-reference editing, with 1K or 2K output, custom sizes and transparent backgrounds.Pricing is pay-per-image with no subscription: $0.035 per image on MAI Image 2.7 and $0.010 on MAI Image 2.7 Flash, plus $0.008 per reference image on edits.

🆕 MAI Image 2.7

Standard tier for text-to-image and editing — live now2 models
T2INew
MAI Image 2.7

MAI Image 2.7

Text-to-image with accurate in-image text, 1K or 2K output, custom sizes and transparent backgrounds.

1K–2K
$0.035/image
Try Model
EditNew
MAI Image 2.7

MAI Image 2.7 Edit

Edit one image or combine up to 5 reference images with a text instruction.

1K–2K
From $0.043/image
Try Model

⚡ MAI Image 2.7 Flash

Faster, lower-cost tier at $0.010 per image2 models
T2INew
Flash

MAI Image 2.7 Flash

The faster, lower-cost tier for text-to-image, with the same parameters.

1K–2KFast
$0.010/image
Try Model
EditNew
Flash

MAI Image 2.7 Flash Edit

The faster, lower-cost tier for editing and combining up to 5 reference images.

1K–2KFast
From $0.018/image
Try Model

What is the MAI Image 2.7 API?

The MAI Image 2.7 API is Muapi's REST interface to Microsoft's MAI Image 2.7 model. It exposes four endpoints under one authentication flow and one asynchronous task lifecycle: text-to-image and image editing, each on the standard MAI Image 2.7 tier and the faster, lower-cost Flash tier.

Prompts can be up to 32,000 characters, text you put in quotes is rendered accurately, and output is 1K (about 1 megapixel) or 2K (about 4 megapixels) at seven aspect ratios or a custom width and height. Set background to transparent with PNG or WEBP output for cut-out assets.

Muapi prices every call per image, so you pay only for what you generate. Compare with [Seedream 5.5](/seedream-5.5) or browse every [image model](/playground/group/text-to-image).

MAI Image 2.7 API capabilities

Accurate in-image text

Put the exact text in quotes in your prompt and get clean lettering for posters, signs and labels.

1K and 2K output

Use 1K (about 1 megapixel) for drafts and 2K (about 4 megapixels) for finals from the same endpoint.

Custom sizes

Pick from seven aspect ratios or set an exact WIDTHxHEIGHT, with both sides divisible by 16 and at least 768.

Transparent backgrounds

Set background to transparent with PNG or WEBP output to produce logos, stickers and cut-outs.

Edit and combine up to 5 images

Edit a single photo or combine several references into one result with a text instruction.

Standard and Flash tiers

Choose MAI Image 2.7 or the faster, lower-cost Flash tier; both accept identical parameters.

MAI Image 2.7 use cases

Posters and ads

Generate marketing creative with exact headlines and clean typography.

Logos and cut-out assets

Produce transparent-background stickers, icons and product cut-outs.

Photo editing and restyling

Restyle or change a photo with a short instruction while keeping the composition.

High-volume iteration

Use Flash for fast, low-cost drafts, then finish the winners on the standard tier.

MAI Image 2.7 endpoints and pricing

EndpointInputPriceBest for
MAI Image 2.7 (text-to-image)Prompt$0.035/image at 1K and 2KHighest-quality text-to-image
MAI Image 2.7 EditPrompt + 1-5 images$0.035 + $0.008 per reference imageEdits and multi-reference composition
MAI Image 2.7 Flash (text-to-image)Prompt$0.010/image at 1K and 2KFast, low-cost drafts and bulk generation
MAI Image 2.7 Flash EditPrompt + 1-5 images$0.010 + $0.008 per reference imageFast, low-cost edits at scale

Quick start — MAI Image 2.7 API code examples

Submit a request, receive a request ID immediately, and poll the result endpoint until the task completes.

Generate an image

curl -X POST https://api.muapi.ai/api/v1/mai-image-2.7-text-to-image \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"A vibrant campus open-day poster with the headline \"OPEN DAY 2027\" in clean sans-serif lettering","size":"16:9","resolution":"2K"}'

# Response: {"request_id":"REQUEST_ID"}

Text-to-image at 2K with a 16:9 aspect ratio.

Edit an image

curl -X POST https://api.muapi.ai/api/v1/mai-image-2.7-image-edit \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"Turn this photo into a warm watercolor illustration","images_list":["https://example.com/photo.jpg"]}'

# Response: {"request_id":"REQUEST_ID"}

Edit or combine up to 5 reference images.

Create a transparent asset

curl -X POST https://api.muapi.ai/api/v1/mai-image-2.7-flash-text-to-image \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"A friendly fox logo, flat vector style","background":"transparent","output_format":"webp"}'

# Response: {"request_id":"REQUEST_ID"}
# Transparent output needs png or webp.

Flash text-to-image with a transparent WEBP background.

Poll the result

curl https://api.muapi.ai/api/v1/predictions/REQUEST_ID/result \
  -H "x-api-key: YOUR_API_KEY"

# Poll until status is completed, then read the image URL from the response.

Poll until the task is completed, then read the image URL from the response.

Frequently asked questions

What is the MAI Image 2.7 API?

It is Muapi's REST API for Microsoft's MAI Image 2.7 image model, with text-to-image and image-editing endpoints on a standard tier and a faster, lower-cost Flash tier under one API key.

How much does the MAI Image 2.7 API cost?

MAI Image 2.7 costs $0.035 per image and MAI Image 2.7 Flash costs $0.010 per image, at both 1K and 2K. Edits add $0.008 per reference image.

What is the difference between MAI Image 2.7 and Flash?

Both accept the same parameters. Flash is the faster, lower-cost tier; use it for drafts and high-volume jobs and the standard tier when you want the best quality.

How do I get a transparent background?

Set background to transparent and use png or webp as output_format. Transparent output is not available with jpeg.

What sizes are supported?

Seven aspect ratios (1:1, 4:3, 3:4, 3:2, 2:3, 16:9, 9:16) at 1K or 2K, or a custom WIDTHxHEIGHT such as 2048x2048 where both sides are divisible by 16, at least 768, and the total is at most 4,194,304 pixels.

How many reference images can I use?

Between 1 and 5 in images_list on the edit endpoints. One image is edited; two or more are combined into a single result.

How do I get a MAI Image API key?

Create a Muapi account, generate an API key on the access keys page, and send it in the x-api-key header. The same key works for all four MAI Image endpoints and every other model on Muapi.

Is MAI Image 2.7 available through the API now?

Yes. All four endpoints are live on Muapi, and sandbox keys return mock results with no credits deducted.

Ready to build with MAI Image 2.7?

Get one API key and start generating or editing images from $0.010 per image today.