Titanium phone advertisementExample 01flux-2-flex
Flux 2 Flex is a Black Forest Labs image generation API on TTAPI. Generate or edit images with prompt input and up to four official reference images.
Titanium phone advertisementExample 01
Renaissance nobleman portraitExample 02
Mountain line sketchExample 03
Fluffy monster donutExample 04Prompt to image, in context
Samsung Galaxy S25 Ultra product advertisement, 'Ultra-strong titanium' headline, close-up of phone edge showing titanium frame, dark gradient background, clean minimalist tech aesthetic
A high-quality 3D render of a cute fluffy monster eating a giant donut; the fur simulation is incredibly detailed, the donut glaze is sticky and reflective, bright daylight lighting, shallow depth of field.
Fluffy cotton candy sculpted into voluminous 3D letters spelling "Flex" in swirls of bubblegum pink, baby blue, and soft lavender, held on a wooden stick in front of a vintage pastel cotton candy cart with hand-painted signage reading "Run FLUX.2 [flex] on Replicate!" on a sunny carnival boardwalk. Shot on Kodak Portra 160 with a Mamiya RZ67, bright midday summer sunlight, the spun sugar texture catching light with wispy translucent edges and denser pillowy centers, visible sticky strands, a vintage pastel Ferris wheel and striped circus tents in the soft-focus background, weathered wooden boardwalk planks beneath.
A detailed oil painting portrait of a Renaissance nobleman with intricate lace collar
Change colors of the vase. In a cozy living room setting, visualize a gradient vase placed on a table, flowing from rich #6a0dad to soft #ff69b4. Add an artistic carving text with a big font on vase says "FLEX" in the middle.
Photorealistic infographic showing the complete Berlin TV Tower (Fernsehturm) from ground base to antenna tip, full vertical view with entire structure visible including concrete shaft, metallic sphere, and antenna spire. Slight upward perspective angle looking up toward the iconic sphere, perfectly centered on clean white background. Left side labels with thin horizontal connector lines: the text '368m' in extra large bold dark grey numerals (#2D3748) positioned at exactly the antenna tip with 'TOTAL HEIGHT' in small caps below. The text '207m' in extra large bold with 'TELECAFÉ' in small caps below, with connector line touching the sphere precisely at the window level. Right side label with horizontal connector line touching the sphere's equator: the text '32m' in extra large bold dark grey numerals with 'SPHERE DIAMETER' in small caps below. Bottom section arranged in three balanced columns: Left - Large text '986' in extra bold dark grey with 'STEPS' in caps below. Center - 'BERLIN TV TOWER' in bold caps with 'FERNSEHTURM' in lighter weight below. Right - 'INAUGURATED' in bold caps with 'OCTOBER 3, 1969' below. At the very bottom center, below the columns, add small italicized text 'Run Flux.2 on Replicate' in medium grey (#A0AEC0). All typography in modern sans-serif font (such as Inter or Helvetica), color #2D3748 unless specified, clean minimal technical diagram style. Horizontal connector lines are thin, precise, and clearly visible, touching the tower structure at exact corresponding measurement points. Professional architectural elevation drawing aesthetic with dynamic low angle perspective creating sense of height and grandeur, poster-ready infographic design with perfect visual hierarchy.
A simple line sketch of a mountain landscape
Create a richly detailed airborne regatta above a vast salt flat at golden sunrise, using the reference images to preserve the marionette captain, quilted sail materials, and cloud barge design. Show multiple puppet-crewed vessels drifting in layered formation through bright apricot and pale cyan sky, long reflections shimmering below. The main vessel dominates the foreground with crisp readable painted lettering on the sail: "SKY HARBOR CUP". Include smaller banners with clean simple text such as "HEAT 3" and "NORTH WIND". Emphasize precise composition, stable geometry, handcrafted textures, taut ropes, stitched cloth, varnished wood, tiny brass fittings, and playful theatrical charm. Cinematic wide shot, storybook realism, airy scale, high detail, elegant color harmony, gentle atmosphere, no modern city elements.
Create a whimsical late-afternoon glasshouse scene centered on an elegant brass automaton florist arranging rare blooms on a long wooden counter. Use the reference images to keep the machine design, greenhouse structure, and plant palette consistent. The composition should feel airy and meticulously organized, with hanging ferns, fogged glass panes, tiled flooring, labeled drawers, bundles of stems, and polished tools. Include a small hand-painted shop sign with clear readable text: "VERDANT CLOCKWORK BLOOMS". Refined cinematic realism, intricate materials, stable geometry, balanced depth, warm sunlight diffused through glass, crisp focus on the central display, charming invention and quiet wonder.
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"}'