flux-kontext-max

by Black Forest LabsImage

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

InputPrompttext
Models8available
FlowAsyncresult URL
Price5 quota/ image
Psychedelic triple-exposure portrait with rainbow thermal colorsThermal triple exposureExample 01
Elderly man and young woman talking on an autumn park benchAutumn park conversationExample 02
Dia de los Muertos dancer jumping through gold confettiMuertos dancerExample 03
Futuristic female mercenary rendered in charcoal and watercolorCharcoal mercenaryExample 04
Examples

Prompt to image, in context

01 · Thermal triple exposureflux-kontext-max
Prompt

An experimental, psychedelic portrait features a triple exposure of a woman's face, layered and shifted horizontally to create a disorienting, motion-blurred effect. The facial features overlap intricately, showing multiple sets of eyes, noses, and lips that blend into one another. A heavy, tactile film grain and low-fidelity print texture coat the entire image, giving it the raw, gritty look of a vintage underground punk zine or a distorted analog video still. The composition explodes with a saturated, rainbow-colored thermal prism effect. Neon shades of hot pink, electric blue, bright yellow, and acidic green bleed into the woman's face and straight blonde hair. The intense color channels misalign and blend unevenly across the shadows and highlights, enhancing the chaotic, hallucinatory, and dreamlike atmosphere of the artwork. <lora:Purple_Graphics_KR2:1.3>

02 · Autumn park conversationflux-kontext-max
Prompt

Elderly white man and young woman sitting on European park bench in autumn, golden hour backlight halo, warm knit scarves, candid gentle smile, fallen yellow maple leaves, blurred crowd background, natural candid documentary photo, soft bokeh, warm earthy color palette --ar 1:1

03 · Muertos dancerflux-kontext-max
Prompt

Mexican Dia de los Muertos male dancer mid-jump, colorful sugar skull face paint, embroidered black mariachi suit, floating gold confetti, neon bar sign background, dramatic flash lighting, dynamic motion shot, cinematic high contrast, sharp texture details --ar 16:9

Capabilities

What you can build with flux-kontext-max

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-max5 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-max

Submit a flux-kontext-max image task.

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

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