Terracotta crater canyonExample 01flux-2-flex
flux-2-flex is available through TTAPI. State-of-the-art prompt adherence, photoreal detail, and in-context image editing.
Terracotta crater canyonExample 01
Floral kitten embraceExample 02
Autumn park conversationExample 03
Emerald fishing lakeExample 04Prompt to image, in context
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
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.
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
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.
Per-action, in quota
Usage is metered in quota by model, action, and output settings.
Headers and submit parameters
Use the endpoint below with your TTAPI key and the request fields shown.
/bfl/v1/flux-2-flexSubmit a flux-2-flex image task.
Official reference/flux/fetchRetrieve the generated image task result.
Official referenceHeaders
TT-API-KEYstringrequiredYour TTAPI API key.
Content-TypestringrequiredUse application/json.
Body
promptstringrequiredText description of the target image.
input_imagestringoptionalReference image URL or base64 value.
input_image_2stringoptionalSecond reference image for supported Flux.2 models.
input_image_3stringoptionalThird reference image for supported Flux.2 models.
input_image_4stringoptionalFourth reference image for supported Flux.2 models.
widthstringoptionalRequested output width.
heightstringoptionalRequested output height.
seedstringoptionalSeed for reproducible output.
output_formatenumoptionaljpeg or png, subject to model support.
safety_tolerancestringoptionalSupported safety tolerance value.
webhook_urlstringoptionalCallback URL for asynchronous completion.
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"}'