API Free WeekHundreds of APIs are free to call this week.Browse free APIs

MAI Image 2.5 Pro (Edit)

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.

Base price
$0.27USD / run
Execution
async
Model type
image
Input fields
4

Try the model

Playground

Open playground
Input
The instruction describing how to edit the input image(s).

PNG, JPEG, WebP, or GIF · 20 MiB maximum

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.
OutputReady

Your output will appear here

Complete the inputs, then click Run.

Specifications

Pricing

Base price
$0.27 / run

Context & modalities

Input
Schema-defined
Output
image

Capabilities

Chat
Not supported
Vision
Not supported
Reasoning
Not supported
Structured output
Not supported
Function calling
Not supported
Audio input
Not supported

Access

Provider
Microsoft
Model ID
microsoft/mai-image-2.5-pro/edit
Execution
async
API
Unified Run API
Endpoint
/v1/run

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

Start building

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

Production API
Unified Run API endpoint
https://api.sandbase.ai/v1/run
Model ID
microsoft/mai-image-2.5-pro/edit
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "model": "microsoft/mai-image-2.5-pro/edit",
  "image": "https://storage.googleapis.com/falserverless/example_inputs/nano-banana-edit-input.png",
  "prompt": "Turn this into a clean, futuristic product shot with soft studio lighting.",
  "output_format": "png"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
  status=$(printf '%s' "$result" | jq -r .status)
  case "$status" in completed|failed|timeout) break ;; esac
  sleep 2
  result=$(curl --fail-with-body --silent \
    -H "Authorization: Bearer $SANDBASE_API_KEY" \
    "https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"

Choose your model

Compare models

All language models
ModelContextInput / 1MOutput / 1MReleased
Microsoft———Jul 30, 2026
Microsoft———Jun 3, 2026