MAI Image 2.7
Text-to-image with accurate in-image text, 1K or 2K output, custom sizes and 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.
Text-to-image with accurate in-image text, 1K or 2K output, custom sizes and transparent backgrounds.
Edit one image or combine up to 5 reference images with a text instruction.
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).
Put the exact text in quotes in your prompt and get clean lettering for posters, signs and labels.
Use 1K (about 1 megapixel) for drafts and 2K (about 4 megapixels) for finals from the same endpoint.
Pick from seven aspect ratios or set an exact WIDTHxHEIGHT, with both sides divisible by 16 and at least 768.
Set background to transparent with PNG or WEBP output to produce logos, stickers and cut-outs.
Edit a single photo or combine several references into one result with a text instruction.
Choose MAI Image 2.7 or the faster, lower-cost Flash tier; both accept identical parameters.
Generate marketing creative with exact headlines and clean typography.
Produce transparent-background stickers, icons and product cut-outs.
Restyle or change a photo with a short instruction while keeping the composition.
Use Flash for fast, low-cost drafts, then finish the winners on the standard tier.
| Endpoint | Input | Price | Best for |
|---|---|---|---|
| MAI Image 2.7 (text-to-image) | Prompt | $0.035/image at 1K and 2K | Highest-quality text-to-image |
| MAI Image 2.7 Edit | Prompt + 1-5 images | $0.035 + $0.008 per reference image | Edits and multi-reference composition |
| MAI Image 2.7 Flash (text-to-image) | Prompt | $0.010/image at 1K and 2K | Fast, low-cost drafts and bulk generation |
| MAI Image 2.7 Flash Edit | Prompt + 1-5 images | $0.010 + $0.008 per reference image | Fast, low-cost edits at scale |
Submit a request, receive a request ID immediately, and poll the result endpoint until the task completes.
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.
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.
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.
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.
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.
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.
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.
Set background to transparent and use png or webp as output_format. Transparent output is not available with jpeg.
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.
Between 1 and 5 in images_list on the edit endpoints. One image is edited; two or more are combined into a single result.
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.
Yes. All four endpoints are live on Muapi, and sandbox keys return mock results with no credits deducted.
Get one API key and start generating or editing images from $0.010 per image today.