flux-2-flex

by Black Forest LabsImage

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

InputPrompttext
Models8available
FlowAsyncresult URL
Price40% offofficial
Layered terracotta crater canyon beneath a deep blue skyTerracotta crater canyonExample 01
Young woman embracing a sleeping calico kitten among flowersFloral kitten embraceExample 02
Elderly man and young woman talking on an autumn park benchAutumn park conversationExample 03
Aerial view of a fishing boat drifting across an emerald forest lakeEmerald fishing lakeExample 04
Examples

Prompt to image, in context

01 · Terracotta crater canyonflux-2-flex
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

02 · Floral kitten embraceflux-2-flex
Prompt

A dreamlike, painterly portrait of a young woman with pale skin and closed eyes, gently pressing a sleeping calico kitten against her cheek. Her hand rests softly against her neck in an intimate, protective gesture. A dense wreath of white daisies, pale peach blossoms, soft pink flowers, silver leaves, and delicate stems surrounds her, blending seamlessly into her long dark hair and floral dress. The cat appears peaceful; its eyes are closed and its white paws are visible. The background is a sea of flowers, making the delicate flowers and faces seem to glow. Calm, emotional mood, tender connection, vintage botanical atmosphere, soft diffused light, color palette of muted cream, gray, peach, and green, fine fabric texture, delicate petals, realistic fur detail, shallow depth of field, centered composition, cinematic close-up portrait, elegant magical realism, painterly texture, balanced frontal composition, medium close-up. Photorealistic, concept art, sharp focus, harmony, serenity, tranquility, soft pastel colors, ambient occlusion, cozy ambient lighting, highest quality, whispered, hidden secrets, fantasy, dreamlike, surrealism, sharp focus, highly detailed, dreamy, cinematic, trending on ArtStation, captivating, fantastic, splash art, photorealistic, concept art, sharp focus, harmony, mysterious glow, superb composition, ink and watercolor style sketch with accentuated linework.

03 · Autumn park conversationflux-2-flex
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

Capabilities

What you can build with flux-2-flex

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-2-flex40% off official pricing/ request
API request

Headers and submit parameters

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

POSThttps://api.ttapi.io/bfl/v1/flux-2-flex

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