MAI-Image 2.7 Flash (Text-to-Image)
MAI-Image 2.7 Flash is the lower-cost tier of Microsoft's image model: a prompt to a 1K or 2K picture for about a third of the price, from $0.01.
MAI-Image 2.7 Flash is the lower-cost tier of Microsoft's MAI-Image 2.7 family. It turns a text prompt into a picture, as a PNG, JPEG or WebP file, for about a third of the price of MAI-Image 2.7. On November 17, 2026 it ranked 11th on the Artificial Analysis text-to-image leaderboard (Elo 1158).
Describe the picture in prompt (up to 8,000 characters). image_size picks one of seven shapes (square, 4:3, 3:2 and 16:9, each also in portrait); resolution is 1K (about one megapixel) or 2K (each side doubled). background transparent makes a picture with a clear background (PNG or WebP output). It makes one picture per request.
Inputs: prompt (required), image_size, resolution, background and output_format. Output: images, the picture as one image file.
Price: billed on what the run uses, at list. A picture costs $10 per million image tokens (1,024 for a 1K picture, so $0.0102) and the prompt $1.75 per million text tokens, rounded up to $0.0001: a 1K picture costs about $0.010, a 2K picture about $0.041. 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 edit a picture you send (use MAI-Image 2.7 Flash (Edit)), take custom pixel sizes or make video.
- Text to Image
Price: From $0.0103 per run, depending on resolution and prompt. One run with default settings costs $0.0103.
Run MAI-Image 2.7 Flash (Text-to-Image) via API
curl -X POST https://api.flymy.ai/api/v1/flymyai/mai-image-2_7-flash-text-to-image/predict \
-H "X-API-KEY: $FLYMYAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt":"A red paper boat on calm water at sunrise, soft morning light","resolution":"1K"}'API documentation · Create a free account · Pricing