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.

$ YOUR NEXT RUN
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.
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 |
|---|---|
# prompt | string required |
# aspect_ratio | string required Allowed: 16:9, 3:7, 9:16, 1:1, 1:2, 7:3 Default: 1:1 |
# seed | integer required Allowed: 1 to 10000000 Default: 42 |
# prompt_upsampling | boolean required Default: true |
# safety_tolerance | integer required Allowed: 0 to 2 Default: 2 |
# 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.
flymyai/flux-kontext-proflymyai/flux-kontext-proflymyai/flux-kontext-proFLUX.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.
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.
Go to the source
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.





