flux-kontext-pro

by Black Forest LabsImage

flux-kontext-pro is available through TTAPI. State-of-the-art prompt adherence, photoreal detail, and in-context image editing.

InputPrompttext
Models8available
FlowAsyncresult URL
Price3 quota/ image
Porcelain-inspired armored warrior with blue floral patterns and gold accentsPorcelain warriorExample 01
Traditional Batak houses beside a turquoise volcanic lakeBatak lakesideExample 02
Layered terracotta crater canyon beneath a deep blue skyTerracotta crater canyonExample 03
Young woman embracing a sleeping calico kitten among flowersFloral kitten embraceExample 04
Examples

Prompt to image, in context

01 · Porcelain warriorflux-kontext-pro
Prompt

Super detailed high quality 32K resolution. A reimagined Mandalorian warrior standing proudly, adorned with a unique porcelain-inspired suit of armor. The armor retains the iconic Mandalorian silhouette, featuring sleek and angular plates, but is redefined with intricate blue floral patterns reminiscent of traditional Chinese or Delft pottery, seamlessly integrated across the glossy white surface of the armor. The helmet, instantly recognizable with its iconic T-shaped visor, is enhanced with golden accents tracing its edges, adding a regal and ceremonial touch. Golden embellishments continue along the chest plate, shoulder guards, and gauntlets, blending futuristic functionality with timeless artistry. The armor combines Mandalorian practicality with an elegant, almost royal aesthetic. The background features a grand hall with ornate golden arches and subtle lighting, casting warm reflections off the armor's polished surface and highlighting the intricate floral designs. The soft, glowing light creates a dramatic contrast, emphasizing the combination of Mandalorian strength and traditional artistic beauty. A fusion of Star Wars legacy with classical artistic refinement, showcasing the Mandalorian in a completely new and breathtaking style. Created by Sasan.

02 · Batak lakesideflux-kontext-pro
Prompt

Serene volcanic lakeside scene, traditional Batak wooden houses with curved steep roofs, tall coconut palms, calm turquoise lake, distant misty volcano, golden hour warm sunlight, soft morning fog, tropical foliage framing shot, documentary travel photography, ultra realistic texture --ar 16:9

03 · Terracotta crater canyonflux-kontext-pro
Prompt

Massive layered red rock crater canyon, cloudless deep blue sky, sharp shadow texture on rock strata, tiny observation deck on cliff edge, grand vast natural landscape, wide-angle shot, vivid earthy terracotta color, sharp photorealistic, Ansel Adams landscape style --ar 9:16

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"}'