# MAI-Image 2.7 Edit - API, Playground & Pricing

> Run MAI-Image 2.7 Edit by Microsoft via API, Playground, or MCP from $0.0349 per run - no provider API key needed. Microsoft's editor: one to five pictures changed or combined from a plain instruction.

Page: https://flymy.ai/models/mai-image-2-7-edit/

Models / Image editing

MAI-Image 2.7 Edit changes one to five of your pictures from a text instruction, or uses several as references for one result. Run it in the playground, call its API, or let Claude Code, Codex or Cursor run it through one FlyMy.AI MCP. No Microsoft API key: runs are billed to your FlyMy.AI balance.

[▶ Try in Playground](https://app.flymy.ai/models/flymyai/mai-image-2_7-edit) [<> Get API](https://flymy.ai/models/mai-image-2-7-edit/#api)

**Provider**

[Microsoft](https://flymy.ai/models/provider/microsoft/)

**Category**

[Image editing](https://flymy.ai/models/image-editing/) / Image editing

**Price**

from $0.0349 / run ($0.0431 at the defaults)

**Resolution**

1K, 2K

**Returns**

`images`

**Commercial use**

Allowed

**Model ID**

`flymyai/mai-image-2_7-edit`

![MAI-Image 2.7 Edit by Microsoft: image editing sample, edit pictures from an instruction](https://flymy.ai/img/models/mai-image-2-7-edit.jpg)

MAI-Image 2.7 Edit sample from the FlyMy.AI catalog

$ YOUR NEXT RUN

Claude Code, Codex, Cursor, Any agent

## Use MAI-Image 2.7 Edit in your assistant

Paste this prompt into Claude Code, Codex, Cursor or any agent. It reads the guide and helps you connect.

```
Read https://flymy.ai/skill.md and https://flymy.ai/models/mai-image-2-7-edit.md. Help me connect the FlyMy.AI MCP to this assistant, then run MAI-Image 2.7 Edit (flymyai/mai-image-2_7-edit) for this task: Replace the background of the photo I attach with a rainy neon street at night using MAI-Image 2.7 Edit.
```

[Open FlyMy.AI](https://app.flymy.ai/new-agent) [Download brief](https://flymy.ai/models/mai-image-2-7-edit.md)

## What MAI-Image 2.7 Edit does

Send images, one to five pictures as links or uploads (PNG, JPEG or WebP), and say in prompt, up to 8,000 characters, what to change, naming the picture to edit as the first, the second and so on. image_size picks one of seven shapes; left out, the model picks a size close to your pictures, and for one picture its own shape at 1K scale. resolution is 1K or 2K, and background transparent gives a clear background as png or webp. One result per request.

It is billed on the tokens a run uses, and each picture you send counts by its size, so a large photo adds to the price; the price shown before the run is an upper bound held on your balance. It does not make a picture from text alone (MAI-Image 2.7 does), take custom pixel sizes or make video.

## MAI-Image 2.7 Edit inputs

Every input of `flymyai/mai-image-2_7-edit` as its live schema lists them. Returns `images` (array).

| Input | Type, values and default |
|---|---|
| [#](https://flymy.ai/models/mai-image-2-7-edit/#input-prompt) `prompt` | string required What to change in the pictures, or how to combine them |
| [#](https://flymy.ai/models/mai-image-2-7-edit/#input-images) `images` | string required One to five pictures to edit or to use as references, links or uploads (PNG, JPEG or WebP). Name the one to change in the prompt (first picture, second picture). Each picture is counted as its pixels / 1,024 image tokens at $8 per million (a 1024x1024 picture is 1,024 tokens; a 12-megapixel photo is about $0.094) |
| [#](https://flymy.ai/models/mai-image-2-7-edit/#input-image_size) `image_size` | string optional Allowed: square_hd, portrait_4_3, landscape_4_3, portrait_3_2, landscape_3_2, portrait_16_9, landscape_16_9 The shape of the picture at 1K: square_hd 1024x1024, portrait_4_3 768x1024, landscape_4_3 1024x768, portrait_3_2 768x1152, landscape_3_2 1152x768, portrait_16_9 768x1360, landscape_16_9 1360x768 (2K doubles each side); left out, the model picks a size close to your pictures |
| [#](https://flymy.ai/models/mai-image-2-7-edit/#input-resolution) `resolution` | string optional Allowed: 1K, 2K Default: `1K` 1K (about 1 megapixel, 1,024 image tokens at most) or 2K (each side doubled, up to 4,096 tokens: about four times the price of the picture) |
| [#](https://flymy.ai/models/mai-image-2-7-edit/#input-background) `background` | string optional Allowed: opaque, transparent Default: `opaque` opaque, or transparent (PNG or WebP output only: with jpeg the request is refused) |
| [#](https://flymy.ai/models/mai-image-2-7-edit/#input-output_format) `output_format` | string optional Allowed: png, jpeg, webp Default: `png` The file format of the picture: png (default), jpeg or webp |

## Ask your agent

Requests to paste as they are, once the FlyMy.AI MCP is connected.

**“Replace the background of the photo I attach with a rainy neon street at night using MAI-Image 2.7 Edit.”** runs `flymyai/mai-image-2_7-edit`

**“With MAI-Image 2.7 Edit, change the color of the jacket in my photo to deep green and keep everything else the same.”** runs `flymyai/mai-image-2_7-edit`

**“Edit the picture I attach with MAI-Image 2.7 Edit: add the headline "Grand opening" in clean bold type.”** runs `flymyai/mai-image-2_7-edit`

## MAI-Image 2.7 Edit 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. A run at the default settings costs $0.0431. A run costs $0.0349 to $0.795, depending on images and resolution and prompt. Billed to your FlyMy.AI balance; no seats, no subscription and no minimum.

[Every model's price →](https://flymy.ai/models/pricing/) [Usage pricing →](https://flymy.ai/pricing/)

## MAI-Image 2.7 Edit vs similar models

Popular image editing models beside it, with prices from billing and settings from each live schema.

| Model | Provider | Kind | Price | Default run | Resolution |
|---|---|---|---|---|---|
| **MAI-Image 2.7 Edit** | Microsoft | Image editing | from $0.0349 / run | $0.0431 | 1K, 2K |
| [Topaz Image Upscale Precision](https://flymy.ai/models/topaz-image-upscale-precision/) | Topaz Labs | Upscaling | from $0.08 / run | $0.08 |  |
| [SeedVR2 Image Upscale](https://flymy.ai/models/seedvr2-image-upscale/) | ByteDance | Upscaling | from $0.001 / run | $0.004 |  |
| [MAI-Image 2.7 Flash Edit](https://flymy.ai/models/mai-image-2-7-flash-edit/) | Microsoft | Image editing | from $0.0103 / run | $0.0129 | 1K, 2K |

## MAI-Image 2.7 Edit API

The same model from your own code or from an agent. Send your FlyMy.AI API key in the `X-API-KEY` header; [get a key](https://app.flymy.ai/developers) in your account.

### cURL

Form fields, not JSON; files go as uploads or public URLs. The answer is a `prediction_id`; read the result at `https://api.flymy.ai/api/v1/flymyai/mai-image-2_7-edit/predict/async/result/?request_id=<prediction_id>`.

```
curl -X POST https://api.flymy.ai/api/v1/flymyai/mai-image-2_7-edit/predict/async/ \
  -H "X-API-KEY: $FLYMYAI_API_KEY" \
  -F 'prompt=Replace the background with a marble table by a sunny window' \
  -F 'images=["https://example.com/front.jpg", "https://example.com/back.jpg"]'
```

### Python

The FlyMy.AI SDK sends the same fields; a file input also takes a public URL.

```
# pip install flymyai
import os

from flymyai import client

fma = client(apikey=os.environ["FLYMYAI_API_KEY"])
task = fma.predict_async_task(
    model="flymyai/mai-image-2_7-edit",
    payload={
        "prompt": "Replace the background with a marble table by a sunny window",
        "images": [
            "https://example.com/front.jpg",
            "https://example.com/back.jpg"
        ]
    },
)
# a long run: wait for its result (up to 15 minutes here)
result = task.result(timeout=900)
print(result.inference_responses[0].output_data)
```

### JavaScript / TypeScript

The FlyMy.AI SDK sends the same fields; a file input also takes a public URL.

```
// npm install flymyai-js-client
import { FlyMyAI } from "flymyai-js-client";

const client = new FlyMyAI({ apiKey: process.env.FLYMYAI_API_KEY });
const response = await client.predict(
  {
    "prompt": "Replace the background with a marble table by a sunny window",
    "images": [
      "https://example.com/front.jpg",
      "https://example.com/back.jpg"
    ]
  },
  "flymyai/mai-image-2_7-edit",
);
console.log(response.output_data);
```

### MCP

Your agent calls `get_model_schema`, then `run_model` with:

```
{
  "endpoint_id": "flymyai/mai-image-2_7-edit",
  "input": {
    "prompt": "Replace the background with a marble table by a sunny window",
    "images": [
      "https://example.com/front.jpg",
      "https://example.com/back.jpg"
    ]
  }
}
```

## Questions about MAI-Image 2.7 Edit

**Do I need a Microsoft API key for MAI-Image 2.7 Edit?**

No. MAI-Image 2.7 Edit runs on FlyMy.AI's account, so you need no Microsoft key or plan: sign in to FlyMy.AI once and each run is billed to your FlyMy.AI balance.

**How much does MAI-Image 2.7 Edit cost?**

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. There is no subscription or minimum; the price comes from FlyMy.AI billing and was checked on 2026-11-18.

**Can I try MAI-Image 2.7 Edit before I write code?**

Yes. Open MAI-Image 2.7 Edit in the FlyMy.AI playground at https://app.flymy.ai/models/flymyai/mai-image-2_7-edit, fill in its inputs and run it; the same run is one API call later, billed the same way.

**How do I use MAI-Image 2.7 Edit in Claude Code, Codex or Cursor?**

Add the FlyMy.AI MCP with one command and sign in, then ask in plain words, for example: "Replace the background of the photo I attach with a rainy neon street at night using MAI-Image 2.7 Edit." Your agent reads the inputs with get_model_schema and runs flymyai/mai-image-2_7-edit with run_model.

**What does MAI-Image 2.7 Edit need as input?**

MAI-Image 2.7 Edit requires prompt and images; it also takes 4 optional inputs, each listed on this page with its allowed values and default.

**Can I call MAI-Image 2.7 Edit from my own code?**

Yes. Send form fields to https://api.flymy.ai/api/v1/flymyai/mai-image-2_7-edit/predict/async/ with your FlyMy.AI API key in the X-API-KEY header.

## More image editing models

Change a picture you already have: background, objects, style, text in the frame, its resolution, or turn it into a vector graphic.

### MAI-Image 2.7 Flash Edit

Low-cost edits of up to five pictures from an instruction, with the same shapes and sizes.

Image editing / from $0.0103 / run

Link: https://flymy.ai/models/mai-image-2-7-flash-edit/

### Topaz Image Upscale Precision

Gigapixel-grade enlargement for product shots, portraits and scans that must stay true.

Upscaling / from $0.08 / run

Link: https://flymy.ai/models/topaz-image-upscale-precision/

### SeedVR2 Image Upscale

Cheap upscales in volume for renders, product photos and screenshots.

Upscaling / from $0.001 / run

Link: https://flymy.ai/models/seedvr2-image-upscale/

### Seedream 5.5 Layers

Seedream 5.5 that takes a poster or banner apart: a base image plus transparent layers with names and boxes.

Image to layers / from $0.02 / image

Link: https://flymy.ai/models/bytedance-seedream-5-5-layers/

### GPT Image 2.0 Edit

OpenAI's 2.0 editor, kept for pipelines that already depend on its output.

Image editing / from $0.009 / run

Link: https://flymy.ai/models/gpt-image-2-0-edit/

### GPT Image 2.5 Edit

The 2.5 Flare editor: swap a product, background or headline and leave the rest alone.

Image editing / from $0.009 / run

Link: https://flymy.ai/models/gpt-image-2-5-edit/

## Go to the source

[MAI-Image 2.7 Edit in the playground →](https://app.flymy.ai/models/flymyai/mai-image-2_7-edit), [Image editing models →](https://flymy.ai/models/image-editing/), [Microsoft models →](https://flymy.ai/models/provider/microsoft/), [Model endpoints in the docs →](https://docs.flymy.ai/api/models-endpoints), [Every model on FlyMy.AI →](https://flymy.ai/models/), [Model prices →](https://flymy.ai/models/pricing/), [Every MCP in the catalog →](https://flymy.ai/mcp/#catalog)

From the FlyMy.AI model catalog of 2026-11-18: inputs from each model's live schema, prices from FlyMy.AI billing. Requests are examples to paste, not recorded runs.

---

For agents: the FlyMyAI operating guide (sign up, connect, run models, tools and agents) is https://flymy.ai/skill.md, and https://flymy.ai/llms.txt lists the other pages and the documentation.
