flux-kontext-pro

by Black Forest LabsImage

Flux Kontext Pro is a Black Forest Labs image editing API on TTAPI. Run in-context edits from a prompt and reference image through the official Flux channel.

InputPrompttext
Models8available
FlowAsyncresult URL
Price3 quota/ image
Lo-fi illustration turned into a photoreal indoor sceneIllustration to photoExample 01
Freiburg selfie scene covered in snowSnow-covered FreiburgExample 02
Waterfront building reimagined as a ceremonial kite archiveHarbor kite archiveExample 03
Wide cinematic gas station swallowed by crimson fog with green overhead lightsCrimson fog gas stationExample 04
Examples

Prompt to image, in context

Make this a 90s cartoon

Remove the background

Abstract expressionist painting Pop Art and cubism early 20 century, straight lines and solids, cute cat face without body, warm colors, green, intricate details, hologram floating in space, a vibrant digital illustration, black background, flat color, 2D, strong lines.

Replace 'joy' with 'Pro'

Replace text with 'COOL!!'

Transform the reference subject into a high-fashion editorial scene inside a vast Victorian glasshouse during a thunderstorm, preserving facial identity, silver hair, and elegant silhouette. Surround the subject with towering tropical leaves, wet stone flooring, scattered fallen petals, and misted glass panes streaked with rain. Outfit evolved into sculptural avant-garde couture in black lacquered fabric with subtle emerald accents, dramatic tailoring, refined textures, and striking accessories. Cinematic natural storm light, reflections in puddles, soft fog, deep contrast, sophisticated composition, premium magazine aesthetic, ultra-detailed materials, poised and enigmatic mood.

Change the car color to red

Change the background to a beach while keeping the person in the exact same position, scale, and pose. Maintain identical subject placement, camera angle, framing, and perspective. Only replace the environment around them

Close-up of a vintage car hood under heavy rain, droplets cascading down the deep cherry-red paint, windshield blurred with streaks of water, glowing headlights diffused through mist, reflections of crimson neon signage spelling "FLUX" dancing across the wet chrome grille, steam rising from the engine, ambient red light enveloping the scene, moody composition, shallow depth of field, monochromatic red palette, cinematic lighting with glossy textures.

Capabilities

What you can build with flux-kontext-pro

Prompt driven generation

Submit a concise prompt and get production-ready image output through one TTAPI job.

Core controls only

Keep integration simple with prompt, model, output settings, and callback handling.

Async result flow

Use polling or webhook callbacks so long-running generations do not block your UI.

Ready for product UI

Return Flux.2 Pro results that can be displayed, stored, or passed into downstream workflows.

Pricing

Per-action, in quota

Usage is metered in quota by model, action, and output settings.

Image generation and editingOfficial pricing
ModelTTAPI billingUnit
flux-kontext-pro3 quota/ request
API request

Headers and submit parameters

Use the endpoint below with your TTAPI key and the request fields shown.

GeneratePOST
/bfl/v1/flux-kontext-pro

Submit a flux-kontext-pro image task.

Official reference
POSThttps://api.ttapi.io/bfl/v1/flux-kontext-pro

Headers

TT-API-KEYstringrequired

Your TTAPI API key.

Content-Typestringrequired

Use application/json.

Body

promptstringrequired

Text description of the target image.

input_imagestringoptional

Reference image URL or base64 value.

input_image_2stringoptional

Second reference image for supported Flux.2 models.

input_image_3stringoptional

Third reference image for supported Flux.2 models.

input_image_4stringoptional

Fourth reference image for supported Flux.2 models.

widthstringoptional

Requested output width.

heightstringoptional

Requested output height.

seedstringoptional

Seed for reproducible output.

output_formatenumoptional

jpeg or png, subject to model support.

safety_tolerancestringoptional

Supported safety tolerance value.

webhook_urlstringoptional

Callback URL for asynchronous completion.

Open the official TTAPI documentation
Integrate

From key to first result

Copy the resolved endpoint, authentication headers, and request body for this model.

curl --request POST \
  --url https://api.ttapi.io/bfl/v1/flux-kontext-pro \
  --header 'TT-API-KEY: $TTAPI_KEY' \
  --header 'Content-Type: application/json' \
  --data '{"prompt":"editorial portrait in soft window light","output_format":"jpeg","webhook_url":"https://example.com/webhooks/flux"}'