Models / Image editing

FLUX.1 Kontext Pro - API, Playground & Pricing

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.

Provider
Black Forest Labs
Category
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
FLUX.1 Kontext Pro sample from the FlyMy.AI catalog

$ YOUR NEXT RUN

Claude CodeCodexCursorAny 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.AIDownload brief

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).

InputType, 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.

“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.

FLUX.1 Kontext Pro vs similar models

Popular image editing models beside it, with prices from billing and settings from each live schema.

ModelProviderKindPriceDefault runAspect ratio
FLUX.1 Kontext ProBlack Forest LabsImage editing$0.04 / run$0.0421:9, 16:9, 4:3, 3:2, 1:1, 2:3 and 3 more
Topaz Image Upscale PrecisionTopaz LabsUpscalingfrom $0.08 / run$0.08
MAI-Image 2.7 EditMicrosoftImage editingfrom $0.0349 / run$0.0431
FLUX.1 Kontext MaxBlack Forest LabsImage editing$0.08 / run$0.0821: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 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.

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.