# MAI-Image 2.7 Flash Edit MCP and API by Microsoft | FlyMy.AI

> MAI-Image 2.7 Flash Edit changes one to five of your pictures from a text instruction, at a lower cost than MAI-Image 2.7 Edit.

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

MCP / Models / Image editing

# MAI-Image 2.7 Flash Edit MCP: low-cost picture edits

MAI-Image 2.7 Flash Edit changes one to five of your pictures from a text instruction, at a lower cost than MAI-Image 2.7 Edit. Run it from Claude Code, Codex, Cursor or any MCP client through one FlyMy.AI MCP, or call its API.

[Use MAI-Image 2.7 Flash Edit](https://flymy.ai/mcp/models/mai-image-2-7-flash-edit/#start) [Inputs and price](https://flymy.ai/mcp/models/mai-image-2-7-flash-edit/#inputs)

No API key, from $0.0103 / run, Image editing, Microsoft, Commercial use

$ YOUR NEXT RUN

Claude Code, Codex, Cursor, Any agent

## Use MAI-Image 2.7 Flash 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/mcp/models/mai-image-2-7-flash-edit.md. Help me connect the FlyMy.AI MCP to this assistant, then run MAI-Image 2.7 Flash Edit (flymyai/mai-image-2_7-flash-edit) for this task: Replace the background of the photo I attach with a rainy neon street at night using MAI-Image 2.7 Flash Edit.
```

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

## What MAI-Image 2.7 Flash Edit does

It takes the same inputs as MAI-Image 2.7 Edit: images, one to five pictures, prompt, up to 8,000 characters, image_size (left out, the model picks a size close to your pictures), resolution 1K or 2K, background and output_format. One result per request.

It is billed on the tokens a run uses at a lower rate than MAI-Image 2.7 Edit, and each picture you send counts by its size; 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 Flash does), take custom pixel sizes or make video.

## MAI-Image 2.7 Flash Edit inputs

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

| Input | Type, values and default |
|---|---|
| [#](https://flymy.ai/mcp/models/mai-image-2-7-flash-edit/#input-prompt) `prompt` | string required What to change in the pictures, or how to combine them |
| [#](https://flymy.ai/mcp/models/mai-image-2-7-flash-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 $2.50 per million (a 1024x1024 picture is 1,024 tokens; a 12-megapixel photo is about $0.029) |
| [#](https://flymy.ai/mcp/models/mai-image-2-7-flash-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/mcp/models/mai-image-2-7-flash-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/mcp/models/mai-image-2-7-flash-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/mcp/models/mai-image-2-7-flash-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 Flash Edit.”** runs `flymyai/mai-image-2_7-flash-edit`

**“With MAI-Image 2.7 Flash 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-flash-edit`

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

## MAI-Image 2.7 Flash Edit price

From $0.0103 per run, depending on the size of the pictures you send, resolution and prompt. Pictures of 1.048576 megapixels in all cost $0.0129 with the default settings. A run at the default settings costs $0.0129. A run costs $0.0103 to $0.246, depending on images and resolution and prompt. Billed to your FlyMy.AI balance; no seats, no subscription and no minimum.

[See usage pricing →](https://flymy.ai/pricing/)

## Call MAI-Image 2.7 Flash Edit from code

The same model, from an agent or from your own code. Keys stay in your FlyMy.AI account.

### From an agent, through the MCP

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

```
{
  "endpoint_id": "flymyai/mai-image-2_7-flash-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"
    ]
  }
}
```

### From your code, over HTTP

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-flash-edit/predict/async/result/?request_id=<prediction_id>`.

```
curl -X POST https://api.flymy.ai/api/v1/flymyai/mai-image-2_7-flash-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"]'
```

## Questions about MAI-Image 2.7 Flash Edit

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

No. MAI-Image 2.7 Flash 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 Flash Edit cost?**

From $0.0103 per run, depending on the size of the pictures you send, resolution and prompt. Pictures of 1.048576 megapixels in all cost $0.0129 with the default settings. There is no subscription or minimum; the price comes from FlyMy.AI billing and was checked on 2026-11-18.

**How do I use MAI-Image 2.7 Flash 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 Flash Edit." Your agent reads the inputs with get_model_schema and runs flymyai/mai-image-2_7-flash-edit with run_model.

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

MAI-Image 2.7 Flash 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 Flash Edit from my own code?**

Yes. Send form fields to https://api.flymy.ai/api/v1/flymyai/mai-image-2_7-flash-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 Edit

Microsoft's editor: one to five pictures changed or combined from a plain instruction.

Image editing / from $0.0349 / run

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

### Ideogram 4.5 Edit

Ideogram's editor: masked edits, text swaps and Precise Edit that keeps every untouched pixel.

Image editing / from $0.008 / image

Link: https://flymy.ai/mcp/models/ideogram-4-5-edit/

### Ideogram Vector Image to Vector

Turn a logo, sketch or scan you only have as pixels into an editable SVG, in detailed or simple mode.

Image to vector / $0.10 / run

Link: https://flymy.ai/mcp/models/ideogram-vector-image-to-vector/

### Kling Image V4 Edit

Restyle a photo, place a product in a new scene or merge subjects from up to ten images.

Image editing / from $0.063 / run

Link: https://flymy.ai/mcp/models/kling-image-v4-image-to-image/

### Krea 3 Edit

Krea 3 for edits: up to eight pictures changed or combined from an instruction, billed per megapixel.

Image editing / from $0.0063 / run

Link: https://flymy.ai/mcp/models/krea-3-edit/

### Muse Image Edit

Meta's editor: precise changes that leave the rest of the picture alone, from up to ten pictures.

Image editing / $0.01 / image

Link: https://flymy.ai/mcp/models/muse-image-edit/

## Go to the source

[MAI-Image 2.7 Flash Edit in the playground →](https://app.flymy.ai/models/flymyai/mai-image-2_7-flash-edit), [Model endpoints in the docs →](https://docs.flymy.ai/api/models-endpoints), [Image editing guide →](https://docs.flymy.ai/guides/generate-images), [Every model on FlyMy.AI →](https://flymy.ai/mcp/models/), [Every MCP in the catalog →](https://flymy.ai/mcp/#catalog), [Usage pricing →](https://flymy.ai/pricing/)

From the FlyMy.AI model catalog of 2026-11-18: inputs from the 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.
