Models / Images / Black Forest Labs

FLUX.1 Kontext Pro Edit API

FLUX.1 Kontext Pro Edit API: $0.128 per image, prepaid, no subscription. Black Forest Labs's image model on one key; a failed generation is not charged.

flux-kontext-pro-editImagesper image

Price · per image, USD

Get a key
SettingsUplinkSwitch
any settings$0.128
Charged when the request is accepted; refunded in full if the generation fails.

Sample · 2026-10-23, 1:1

FLUX.1 Kontext Pro Edit output for the prompt shown

FLUX.1 Kontext Pro Edit

2026-10-2302 / 02
Prompt
The same scene at night: dark blue sky with stars, the lighthouse lamp lit and casting a beam across the sea
Input
nano-banana-2 output

What a run costs · USD, live

$0.128 per image at any settings.

RunAt $0.128 per image
One image$0.128
10 images$1.28
100 images$12.80

Compare · per image, live

FLUX.1 Kontext Pro Edit from $0.128 per image; FLUX.2 Flex Edit from $0.1688; FLUX.2 Pro Edit from $0.0563.

Call it · POST /v1/images/generations or POST /v1/images/edits or POST /v1/generations

Python, OpenAI SDK
from openai import OpenAI

client = OpenAI(base_url="https://api.uplinkswitch.com/v1", api_key="sk-uplink-live-...")
result = client.images.generate(
    model="flux-kontext-pro-edit",
    prompt="A red paper boat on a calm blue pond, morning light",
    extra_body={"input": {"image_urls":["https://example.com/input.png"]}},
)
print(result.data[0].url)
curl
curl https://api.uplinkswitch.com/v1/images/generations \
  -H "Authorization: Bearer $UPLINK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "flux-kontext-pro-edit",
  "prompt": "A red paper boat on a calm blue pond, morning light",
  "input": {
    "image_urls": [
      "https://example.com/input.png"
    ]
  }
}'

# the image URL is in data[0].url

POST /v1/images/generations answers like OpenAI's image API, with the image URL in data[0].url, on our domain. Past about 100 seconds it answers 504 with a generation id to poll on GET /v1/generations/{id}.

Settings · in input

NameTypeValuesDefault
prompt requiredstring——
image_urls requiredurls——
sizestring1:1, 4:3, 3:4, 16:9, 9:16, 21:9, 9:211:1
output_formatstringpng, jpg—

Questions

From $0.128 per image. The price depends on the settings in the table and is fixed when the request is accepted.

Create one in the console at uplinkswitch.ai/console: prepaid credit from $10, no subscription, and the key is live at once. Send it as the bearer token to /v1/images/generations with model flux-kontext-pro-edit; the same key calls every other model in the catalog.

No. You add credit and each request is paid from it. There is no monthly fee and no minimum per request.

It is refunded in full, automatically. You pay only for files you receive.

Thirty days, at a URL on api.uplinkswitch.com. Download what you want to keep.

Yes. The same key calls every image, video, speech and 3D model and every chat model in the catalog.
Join on Telegram
Help