MAI-Image 2.7 (Edit)
MAI-Image 2.7 Edit changes one to five of your pictures from a text instruction. About $0.043 for a 1-megapixel picture at 1K.
MAI-Image 2.7 Edit is the editing mode of Microsoft's image model. Send one to five pictures and say in the prompt what to change: it edits them from your instruction, and several pictures can serve as references for one result. On November 17, 2026 it ranked first on the Artificial Analysis image-editing leaderboard (Elo 1215).
Describe the change in prompt (up to 8,000 characters). images holds the pictures. image_size picks one of seven shapes (left out, the model picks a size close to your pictures: for one picture, its own shape at 1K scale); resolution is 1K or 2K; background transparent gives a clear background (PNG or WebP output). One result per request.
Inputs: prompt and images (both required), image_size, resolution, background and output_format. Output: images, the result as one image file.
Price: billed on what the run uses, at list. The result costs $34 per million image tokens (1,024 for 1K), each picture you send $8 per million tokens (its pixels / 1,024: $0.0082 for a 1024x1024 picture, about $0.094 for a 12-megapixel photo) and the prompt $5 per million, rounded up to $0.0001: about $0.043 for one 1-megapixel picture at 1K. The price shown before the run is an upper bound held on your balance; you are charged exactly what the run cost. It does not make a picture from text alone (use MAI-Image 2.7 (Text-to-Image)), take custom pixel sizes or make video.
- Image to Image
Price: From $0.0349 per run, depending on the size of the pictures you send, resolution and prompt. Pictures of 1.048576 megapixels in all cost $0.0431 with the default settings.
Run MAI-Image 2.7 (Edit) via API
curl -X POST https://api.flymy.ai/api/v1/flymyai/mai-image-2_7-edit/predict \
-H "X-API-KEY: $FLYMYAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt":"Make the sky pink and keep everything else the same","images":["https://flymy.ai/img/models/bytedance-seedance-2-5-image-to-video.jpg"],"resolution":"1K"}'API documentation · Create a free account · Pricing