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

> Run FLUX.1 Kontext Pro by Black Forest Labs via API, Playground, or MCP from $0.04 per run - no provider API key needed. Black Forest Labs' everyday Kontext: edit a picture by instruction, or draw one from a prompt.

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

Models / Image editing

FLUX.1 Kontext Pro from Black Forest Labs edits a picture from a plain instruction and keeps the rest, or draws a new picture from a prompt alone. 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-pro) [<> Get API](https://flymy.ai/models/flux-kontext-pro/#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.04 / run ($0.04 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-pro`

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

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

$ YOUR NEXT RUN

Claude Code, Codex, Cursor, Any agent

## Use FLUX.1 Kontext Pro 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-pro.md. Help me connect the FlyMy.AI MCP to this assistant, then run FLUX.1 Kontext Pro (flymyai/flux-kontext-pro) for this task: Replace the background of the photo I attach with a rainy neon street at night using FLUX.1 Kontext Pro.
```

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

## What FLUX.1 Kontext Pro 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 Pro 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 Pro is strong at targeted edits that leave everything else in place; for the hardest edits and for text in the picture, use Kontext Max. It does not make video.

## FLUX.1 Kontext Pro inputs

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

| Input | Type, values and default |
|---|---|
| [#](https://flymy.ai/models/flux-kontext-pro/#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-pro/#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-pro/#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-pro/#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-pro/#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-pro/#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-pro/#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 rainy neon street at night using FLUX.1 Kontext Pro.”** runs `flymyai/flux-kontext-pro`

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

**“With FLUX.1 Kontext Pro, draw a pair of running shoes over a wet city street at night from this description alone, with no picture to start from.”** runs `flymyai/flux-kontext-pro`

## FLUX.1 Kontext Pro price

$0.04 per run. A run at the default settings costs $0.04. 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 Pro 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 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 |
| [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 Max](https://flymy.ai/models/flux-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 |

## FLUX.1 Kontext Pro 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-pro/predict/async/result/?request_id=<prediction_id>`.

```
curl -X POST https://api.flymy.ai/api/v1/flymyai/flux-kontext-pro/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-pro",
    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-pro",
);
console.log(response.output_data);
```

### MCP

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

```
{
  "endpoint_id": "flymyai/flux-kontext-pro",
  "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 Pro

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

No. FLUX.1 Kontext Pro 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 Pro cost?**

$0.04 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 Pro before I write code?**

Yes. Open FLUX.1 Kontext Pro in the FlyMy.AI playground at https://app.flymy.ai/models/flymyai/flux-kontext-pro, 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 Pro 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 FLUX.1 Kontext Pro." Your agent reads the inputs with get_model_schema and runs flymyai/flux-kontext-pro with run_model.

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

FLUX.1 Kontext Pro 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 Pro from my own code?**

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

The top Kontext tier: demanding instruction edits and typography, or a new picture from a prompt.

Image editing / $0.08 / run

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

### 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 Pro in the playground →](https://app.flymy.ai/models/flymyai/flux-kontext-pro), [FLUX.1 Kontext Pro 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.
