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

> Run MAI-Image 2.7 Flash by Microsoft via API, Playground, or MCP from $0.0103 per run - no provider API key needed. The lower-cost MAI-Image 2.7: the same shapes and 2K size for about a third of the price.

Page: https://flymy.ai/models/mai-image-2-7-flash-text-to-image/

Models / Text to image

MAI-Image 2.7 Flash, the lower-cost tier of Microsoft's image model, turns a prompt into a 1K or 2K picture for about a third of the price. 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-flash-text-to-image) [<> Get API](https://flymy.ai/models/mai-image-2-7-flash-text-to-image/#api)

**Provider**

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

**Category**

[Text to image](https://flymy.ai/models/text-to-image/) / Text to image

**Price**

from $0.0103 / run ($0.0103 at the defaults)

**Resolution**

1K, 2K

**Returns**

`images`

**Commercial use**

Allowed

**Model ID**

`flymyai/mai-image-2_7-flash-text-to-image`

![MAI-Image 2.7 Flash by Microsoft: text to image sample, low-cost pictures from a prompt](https://flymy.ai/img/models/mai-image-2-7-flash-text-to-image.jpg)

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

$ YOUR NEXT RUN

Claude Code, Codex, Cursor, Any agent

## Use MAI-Image 2.7 Flash 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-flash-text-to-image.md. Help me connect the FlyMy.AI MCP to this assistant, then run MAI-Image 2.7 Flash (flymyai/mai-image-2_7-flash-text-to-image) for this task: Generate a product photo of a ceramic coffee mug on a sunlit kitchen counter with MAI-Image 2.7 Flash.
```

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

## What MAI-Image 2.7 Flash does

It takes the same inputs as MAI-Image 2.7: prompt, up to 8,000 characters, image_size (seven shapes, square, 4:3, 3:2 and 16:9, each also in portrait), resolution 1K or 2K, background (opaque or transparent, the clear one as png or webp) and output_format. It makes one picture per request.

It is billed on the tokens a run uses at about a third of the price of MAI-Image 2.7, and a 2K picture costs about four times a 1K one; the price shown before the run is an upper bound held on your balance. It does not edit a picture you send (MAI-Image 2.7 Flash Edit does), take custom pixel sizes or make video.

## MAI-Image 2.7 Flash inputs

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

| Input | Type, values and default |
|---|---|
| [#](https://flymy.ai/models/mai-image-2-7-flash-text-to-image/#input-prompt) `prompt` | string required What to draw: the subject, the scene, the light and the style |
| [#](https://flymy.ai/models/mai-image-2-7-flash-text-to-image/#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 Default: `square_hd` 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) |
| [#](https://flymy.ai/models/mai-image-2-7-flash-text-to-image/#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-flash-text-to-image/#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-flash-text-to-image/#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.

**“Generate a product photo of a ceramic coffee mug on a sunlit kitchen counter with MAI-Image 2.7 Flash.”** runs `flymyai/mai-image-2_7-flash-text-to-image`

**“Make three versions of a poster for a jazz night on Friday with MAI-Image 2.7 Flash and send me the links.”** runs `flymyai/mai-image-2_7-flash-text-to-image`

**“Create a flat vector illustration of a barista pouring latte art in a busy cafe with MAI-Image 2.7 Flash.”** runs `flymyai/mai-image-2_7-flash-text-to-image`

## MAI-Image 2.7 Flash price

From $0.0103 per run, depending on resolution and prompt. A run at the default settings costs $0.0103. A run costs $0.0103 to $0.041, depending on 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 Flash vs similar models

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

| Model | Provider | Kind | Price | Default run | Resolution |
|---|---|---|---|---|---|
| **MAI-Image 2.7 Flash** | Microsoft | Text to image | from $0.0103 / run | $0.0103 | 1K, 2K |
| [Nano Banana 2.1](https://flymy.ai/models/nano-banana-2-1/) | Google | Text and image to image | from $0.0336 / image | $0.0336 | 1K, 2K, 4K |
| [Seedream 5.0 Pro](https://flymy.ai/models/bytedance-seedream-5-0-pro/) | ByteDance | Text and image to image | from $0.045 / run | $0.09 |  |
| [MAI-Image 2.7](https://flymy.ai/models/mai-image-2-7-text-to-image/) | Microsoft | Text to image | from $0.0349 / run | $0.0349 | 1K, 2K |

## MAI-Image 2.7 Flash 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-flash-text-to-image/predict/async/result/?request_id=<prediction_id>`.

```
curl -X POST https://api.flymy.ai/api/v1/flymyai/mai-image-2_7-flash-text-to-image/predict/async/ \
  -H "X-API-KEY: $FLYMYAI_API_KEY" \
  -F 'prompt=A ceramic mug on a sunlit kitchen counter, product photo'
```

### 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-flash-text-to-image",
    payload={
        "prompt": "A ceramic mug on a sunlit kitchen counter, product photo"
    },
)
# 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": "A ceramic mug on a sunlit kitchen counter, product photo"
  },
  "flymyai/mai-image-2_7-flash-text-to-image",
);
console.log(response.output_data);
```

### MCP

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

```
{
  "endpoint_id": "flymyai/mai-image-2_7-flash-text-to-image",
  "input": {
    "prompt": "A ceramic mug on a sunlit kitchen counter, product photo"
  }
}
```

## Questions about MAI-Image 2.7 Flash

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

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

From $0.0103 per run, depending on resolution and prompt. 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 Flash before I write code?**

Yes. Open MAI-Image 2.7 Flash in the FlyMy.AI playground at https://app.flymy.ai/models/flymyai/mai-image-2_7-flash-text-to-image, 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 Flash in Claude Code, Codex or Cursor?**

Add the FlyMy.AI MCP with one command and sign in, then ask in plain words, for example: "Generate a product photo of a ceramic coffee mug on a sunlit kitchen counter with MAI-Image 2.7 Flash." Your agent reads the inputs with get_model_schema and runs flymyai/mai-image-2_7-flash-text-to-image with run_model.

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

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

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

## More image generation models

Text to image: product shots, ads, posters, illustrations and editable vector graphics from a prompt, many with reference images.

### MAI-Image 2.7

Microsoft's image model: 1K or 2K pictures in seven shapes, with an optional clear background.

Text to image / from $0.0349 / run

Link: https://flymy.ai/models/mai-image-2-7-text-to-image/

### Nano Banana 2.1

Gemini's newest image model: 14 references, up to 4K, with adjustable thinking.

Text and image to image / from $0.0336 / image

Link: https://flymy.ai/models/nano-banana-2-1/

### Seedream 5.0 Pro

ByteDance's precise 5.0 tier for product shots and layouts, blending up to 10 reference images.

Text and image to image / from $0.045 / run

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

### Seedream 5.5

ByteDance's newest Seedream: images and edits of up to 10 references that keep the rest steady.

Text and image to image / from $0.02 / run

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

### Nano Banana 2

Gemini 3.1 Image: up to 10 images per run at up to 4K, with optional web search.

Text and image to image / from $0.0672 / image

Link: https://flymy.ai/models/nano-banana-2/

### Nano Banana

The original Gemini 2.5 image model: quick drafts and conversational edits.

Text and image to image / $0.039 / run

Link: https://flymy.ai/models/nano-banana/

## Go to the source

[MAI-Image 2.7 Flash in the playground →](https://app.flymy.ai/models/flymyai/mai-image-2_7-flash-text-to-image), [Text to image models →](https://flymy.ai/models/text-to-image/), [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.
