Microsoft modelsimage generation api

microsoft/mai-image-2.5-pro/edit

Mai Image 2.5 Pro Edit by Microsoft - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly.

Input
The instruction describing how to edit the input image(s).
The URL of the image to edit. Provide one http(s) or data: URL.
The format of the generated image. Allowed values: jpeg, png.
The aspect ratio of the generated image. Allowed values: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16.
Idle

Example output — click Run to generate your own

API README

PRICED DRAFT — MANUAL REVIEW REQUIRED exact_model_mode: microsoft/mai-image-2.5-pro/edit original_unit: Text input: $7.50 / 1M tokens. Image input: $162 / 1M tokens. Image output: $162 / 1M tokens. Estimated cost with one input image: ~$0.18–$0.27 per output image. method: published estimated per-image range; conservative upper bound selected for manual review result_base_price: 0.27 result_price_formula: review_status: pending; model remains disabled checked_at: 2026-08-16

Related Models