# FLUX.1 Kontext Pro MCP and API by Black Forest Labs | FlyMy.AI

> FLUX.1 Kontext Pro from Black Forest Labs edits a picture from a plain instruction: change the background, outfit or objects, and keep the rest.

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

MCP / Models / Image editing

# FLUX.1 Kontext Pro MCP: instruction edits with no API key

FLUX.1 Kontext Pro from Black Forest Labs edits a picture from a plain instruction: change the background, outfit or objects, and keep the rest. Run it from Claude Code, Codex, Cursor or any MCP client through one FlyMy.AI MCP, or call its API.

[Use FLUX.1 Kontext Pro](https://flymy.ai/mcp/models/flux-kontext-pro/#start) [Inputs and price](https://flymy.ai/mcp/models/flux-kontext-pro/#inputs)

No API key, $0.04 / run, Image editing, Black Forest Labs, Commercial use

$ 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/mcp/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/mcp/models/flux-kontext-pro.md)

## What FLUX.1 Kontext Pro does

Send an input_image and a prompt that says what to change. Kontext Pro is strong at targeted edits that leave everything else in place; for the hardest edits and text, use Kontext Max. Choose an aspect_ratio (1:1, 16:9, 9:16, 1:2, 7:3 or 3:7), a seed, safety_tolerance and prompt_upsampling.

## FLUX.1 Kontext Pro inputs

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

| Input | Type, values and default |
|---|---|
| [#](https://flymy.ai/mcp/models/flux-kontext-pro/#input-prompt) `prompt` | string required |
| [#](https://flymy.ai/mcp/models/flux-kontext-pro/#input-aspect_ratio) `aspect_ratio` | string required Allowed: 16:9, 3:7, 9:16, 1:1, 1:2, 7:3 Default: `1:1` |
| [#](https://flymy.ai/mcp/models/flux-kontext-pro/#input-seed) `seed` | integer required Allowed: 1 to 10000000 Default: `42` |
| [#](https://flymy.ai/mcp/models/flux-kontext-pro/#input-prompt_upsampling) `prompt_upsampling` | boolean required Default: `true` |
| [#](https://flymy.ai/mcp/models/flux-kontext-pro/#input-safety_tolerance) `safety_tolerance` | integer required Allowed: 0 to 2 Default: `2` |
| [#](https://flymy.ai/mcp/models/flux-kontext-pro/#input-input_image) `input_image` | file required Allowed: image file, as a URL or upload |

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

**“Edit the picture I attach with FLUX.1 Kontext Pro: add the headline "Grand opening" in clean bold type.”** 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.

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

## Call FLUX.1 Kontext Pro 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/flux-kontext-pro",
  "input": {
    "prompt": "Replace the background with a marble table by a sunny window",
    "aspect_ratio": "1:1",
    "seed": "42",
    "prompt_upsampling": "true",
    "safety_tolerance": "2",
    "input_image": "https://example.com/photo.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/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 'aspect_ratio=1:1' \
  -F 'seed=42' \
  -F 'prompt_upsampling=true' \
  -F 'safety_tolerance=2' \
  -F "input_image=@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-09.

**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, aspect_ratio, seed, prompt_upsampling, safety_tolerance and input_image; it also takes 0 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, or its resolution.

### FLUX.1 Kontext Max

The top Kontext tier for demanding instruction edits and typography changes.

Image editing / $0.08 / run

Link: https://flymy.ai/mcp/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/mcp/models/bfl-flux-pro-canny/

### GPT Image 2.6 Edit

OpenAI's current editor: fix packaging text or swap a product while the rest stays put.

Image editing / from $0.009 / run

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

### GPT Image 2.6 Sunburst Edit

The 2.6 precision editor for brand assets and retouching that must not drift.

Image editing / from $0.009 / run

Link: https://flymy.ai/mcp/models/gpt-image-2-6-sunburst-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/mcp/models/gpt-image-2-5-edit/

### GPT Image 2.5 Sunburst Edit

The 2.5 precision editor that holds composition steady across many rounds of changes.

Image editing / from $0.009 / run

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

## 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), [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-09: 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.
