Models / Image editing
FLUX.1 Kontext Max - API, Playground & Pricing
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.
- Provider
- Black Forest Labs
- Category
- 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

$ YOUR NEXT RUN
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.
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 |
|---|---|
# prompt | string required What to change in the picture, or, without a picture, what to draw (up to 2,000 characters) |
# 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 |
# 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 |
# prompt_upsampling | boolean optional Default: true Let the model enrich the prompt before it draws (on by default) |
# safety_tolerance | string optional Allowed: 1, 2 Default: 2 How strict the content check is: 1 is the strictest, 2 the default |
# 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 |
# 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.
flymyai/flux-kontext-maxflymyai/flux-kontext-maxflymyai/flux-kontext-maxFLUX.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.
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 | Topaz Labs | Upscaling | from $0.08 / run | $0.08 | |
| MAI-Image 2.7 Edit | Microsoft | Image editing | from $0.0349 / run | $0.0431 | |
| 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 |
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 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.
Go to the source
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.





