# FLUX.1 Kontext Max - API, Playground & Pricing

> Run FLUX.1 Kontext Max by Black Forest Labs via API, Playground, or MCP from $0.08 per run - no provider API key needed. The top Kontext tier: demanding instruction edits and typography, or a new picture from a prompt.

Page: https://flymy.ai/models/flux-kontext-max/

Models / Image editing

FLUX.1 Kontext Max is Black Forest Labs' highest-fidelity editor: change a picture by instruction, text in the image included, or draw from a prompt. Run it in the playground, call its API, or let Claude Code, Codex or Cursor run it through one FlyMy.AI MCP. No Black Forest Labs API key: runs are billed to your FlyMy.AI balance.

[▶ Try in Playground](https://app.flymy.ai/models/flymyai/flux-kontext-max) [<> Get API](https://flymy.ai/models/flux-kontext-max/#api)

**Provider**

[Black Forest Labs](https://flymy.ai/models/provider/black-forest-labs/)

**Category**

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

**Price**

$0.08 / run ($0.08 at the defaults)

**Aspect ratio**

21:9, 16:9, 4:3, 3:2, 1:1, 2:3 and 3 more

**Returns**

`output`

**Commercial use**

Allowed

**Model ID**

`flymyai/flux-kontext-max`

![FLUX.1 Kontext Max by Black Forest Labs: image editing sample, precise edits and text to image](https://flymy.ai/img/models/flux-kontext-max.jpg)

FLUX.1 Kontext Max sample from the FlyMy.AI catalog

$ YOUR NEXT RUN

Claude Code, Codex, Cursor, Any agent

## Use FLUX.1 Kontext Max 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/flux-kontext-max.md. Help me connect the FlyMy.AI MCP to this assistant, then run FLUX.1 Kontext Max (flymyai/flux-kontext-max) for this task: Replace the background of the photo I attach with a picnic blanket in a sunny park using FLUX.1 Kontext Max.
```

[Open FlyMy.AI](https://app.flymy.ai/new-agent) [Download brief](https://flymy.ai/models/flux-kontext-max.md)

## What FLUX.1 Kontext Max does

Send an input_image, a link or an upload, and a prompt that says what to change: the sky, an outfit, an object, the style or a line of text. The rest of the picture stays as it was, and characters and objects stay consistent across edits. Send no input_image and Kontext Max draws a new picture from the prompt. aspect_ratio is optional (21:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16 or 9:21): an edit keeps the shape of the picture unless you set one, and a new picture is 1:1. prompt_upsampling, on by default, lets the model enrich the prompt, seed repeats a result, safety_tolerance is 1 (the strictest) or 2 (the default) and output_format is jpeg (the default) or png. Output: output, one picture.

Each run makes one picture for a fixed price. Kontext Max is the top Kontext tier, with the strongest prompt adherence and typography of the family for demanding edits, slower and pricier than Kontext Pro. It does not make video.

## FLUX.1 Kontext Max inputs

Every input of `flymyai/flux-kontext-max` as its live schema lists them. Returns `output` (array).

| Input | Type, values and default |
|---|---|
| [#](https://flymy.ai/models/flux-kontext-max/#input-prompt) `prompt` | string required What to change in the picture, or, without a picture, what to draw (up to 2,000 characters) |
| [#](https://flymy.ai/models/flux-kontext-max/#input-aspect_ratio) `aspect_ratio` | string optional Allowed: 21:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:21 Shape of the result: 21:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16 or 9:21. An edit keeps the shape of the picture unless you set it; a new picture is 1:1 by default |
| [#](https://flymy.ai/models/flux-kontext-max/#input-seed) `seed` | integer optional Allowed: 0 to 2147483647 A number that fixes the random start, to repeat or to vary a result; left out, one is chosen |
| [#](https://flymy.ai/models/flux-kontext-max/#input-prompt_upsampling) `prompt_upsampling` | boolean optional Default: `true` Let the model enrich the prompt before it draws (on by default) |
| [#](https://flymy.ai/models/flux-kontext-max/#input-safety_tolerance) `safety_tolerance` | string optional Allowed: 1, 2 Default: `2` How strict the content check is: 1 is the strictest, 2 the default |
| [#](https://flymy.ai/models/flux-kontext-max/#input-input_image) `input_image` | file optional Allowed: image file, as a URL or upload The picture to edit: a link or an upload. Without it Kontext draws a new picture from the prompt |
| [#](https://flymy.ai/models/flux-kontext-max/#input-output_format) `output_format` | string optional Allowed: png, jpeg Default: `jpeg` File type of the result: jpeg (default) or png |

## 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 picnic blanket in a sunny park using FLUX.1 Kontext Max.”** runs `flymyai/flux-kontext-max`

**“With FLUX.1 Kontext Max, change the color of the jacket in my photo to deep green and keep everything else the same.”** runs `flymyai/flux-kontext-max`

**“With FLUX.1 Kontext Max, draw a matte black headphone set floating on a purple gradient from this description alone, with no picture to start from.”** runs `flymyai/flux-kontext-max`

## FLUX.1 Kontext Max price

$0.08 per run. A run at the default settings costs $0.08. 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/)

## FLUX.1 Kontext Max 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 | Aspect ratio |
|---|---|---|---|---|---|
| **FLUX.1 Kontext Max** | Black Forest Labs | Image editing | $0.08 / run | $0.08 | 21:9, 16:9, 4:3, 3:2, 1:1, 2:3 and 3 more |
| [Topaz Image Upscale Precision](https://flymy.ai/models/topaz-image-upscale-precision/) | Topaz Labs | Upscaling | from $0.08 / run | $0.08 |  |
| [MAI-Image 2.7 Edit](https://flymy.ai/models/mai-image-2-7-edit/) | Microsoft | Image editing | from $0.0349 / run | $0.0431 |  |
| [FLUX.1 Kontext Pro](https://flymy.ai/models/flux-kontext-pro/) | Black Forest Labs | Image editing | $0.04 / run | $0.04 | 21:9, 16:9, 4:3, 3:2, 1:1, 2:3 and 3 more |

## FLUX.1 Kontext Max 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/flux-kontext-max/predict/async/result/?request_id=<prediction_id>`.

```
curl -X POST https://api.flymy.ai/api/v1/flymyai/flux-kontext-max/predict/async/ \
  -H "X-API-KEY: $FLYMYAI_API_KEY" \
  -F 'prompt=Replace the background with a marble table by a sunny window' \
  -F "input_image=@photo.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/flux-kontext-max",
    payload={
        "prompt": "Replace the background with a marble table by a sunny window",
        "input_image": "https://example.com/photo.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",
    "input_image": "https://example.com/photo.jpg"
  },
  "flymyai/flux-kontext-max",
);
console.log(response.output_data);
```

### MCP

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

```
{
  "endpoint_id": "flymyai/flux-kontext-max",
  "input": {
    "prompt": "Replace the background with a marble table by a sunny window",
    "input_image": "https://example.com/photo.jpg"
  }
}
```

## Questions about FLUX.1 Kontext Max

**Do I need a Black Forest Labs API key for FLUX.1 Kontext Max?**

No. FLUX.1 Kontext Max runs on FlyMy.AI's account, so you need no Black Forest Labs key or plan: sign in to FlyMy.AI once and each run is billed to your FlyMy.AI balance.

**How much does FLUX.1 Kontext Max cost?**

$0.08 per run. There is no subscription or minimum; the price comes from FlyMy.AI billing and was checked on 2026-11-18.

**Can I try FLUX.1 Kontext Max before I write code?**

Yes. Open FLUX.1 Kontext Max in the FlyMy.AI playground at https://app.flymy.ai/models/flymyai/flux-kontext-max, fill in its inputs and run it; the same run is one API call later, billed the same way.

**How do I use FLUX.1 Kontext Max 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 picnic blanket in a sunny park using FLUX.1 Kontext Max." Your agent reads the inputs with get_model_schema and runs flymyai/flux-kontext-max with run_model.

**What does FLUX.1 Kontext Max need as input?**

FLUX.1 Kontext Max requires prompt; it also takes 6 optional inputs, each listed on this page with its allowed values and default.

**Can I call FLUX.1 Kontext Max from my own code?**

Yes. Send form fields to https://api.flymy.ai/api/v1/flymyai/flux-kontext-max/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.

### FLUX.1 Kontext Pro

Black Forest Labs' everyday Kontext: edit a picture by instruction, or draw one from a prompt.

Image editing / $0.04 / run

Link: https://flymy.ai/models/flux-kontext-pro/

### FLUX.1 Canny Pro

Black Forest Labs' edge-guided FLUX: keep a sketch's layout, restyle everything else.

Edge-guided image / $0.05 / run

Link: https://flymy.ai/models/bfl-flux-pro-canny/

### 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/

### 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/models/mai-image-2-7-edit/

### 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/

## Go to the source

[FLUX.1 Kontext Max in the playground →](https://app.flymy.ai/models/flymyai/flux-kontext-max), [FLUX.1 Kontext Max guide in the docs →](https://docs.flymy.ai/guides/flux), [Image editing models →](https://flymy.ai/models/image-editing/), [Black Forest Labs models →](https://flymy.ai/models/provider/black-forest-labs/), [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.
