flux-2-pro

by Black Forest LabsImage

Flux 2 Pro is a Black Forest Labs image generation API on TTAPI. Generate or edit images with prompt input and up to four official reference images.

InputPrompttext
Models8available
FlowAsyncresult URL
Price40% offofficial
Silver nine-tailed kitsune sitting on a mossy bridge over a moonlit koi pondMoonlit kitsune gardenExample 01
Photorealistic studio portrait of a woman in her early forties with natural curls and frecklesHonest studio portraitExample 02
Public library carved into a basalt coastal cliff glowing at blue hourCliffside library duskExample 03
Midnight train crossing flooded salt flats beneath forked lightningMidnight salt-flat trainExample 04
Examples

Prompt to image, in context

A neon samurai, his body adorned with holographic armor that shifts in color with every step, walks through the neon-drenched streets of a cybernetic Tokyo. His katana, humming with digitized energy, slices through the rain, leaving a trail of flickering blue data in its wake. His helmet bears no visor, only an ever-changing LED mask that reflects the emotions of a warrior who has forgotten his own face. , pinkpixelicious, aidmamj6.1,

A futuristic eco-city covered in massive vertical gardens,where skyscrapers intertwine with lush greenery. A boy wearing a futuristic outfit adorned with nature-inspired patterns sits on a rooftop platform,overlooking aerial walkways and flowing water features surrounded by vegetation. The golden hues of sunset cast dynamic shadows,creating a harmonious yet mysterious atmosphere.,kcyberpunk,

The image is a digital illustration in a detailed, vibrant, high contrast, semi-realistic art style with 90s retro futuristic anime elements without noise or comic halftone effect. The subject is a woman with dark shoulder length hair and green eyes. Her face showing a serious expression. The theme of her body is a vivid red. Her body is slender and athletic. Her body is cyborg with mechanical parts integrated into it. Her arms and chest are fully mechanical. she is wearing a red futuristic, cybernetic, high-tech suit with a vivid red color, reminiscent of military or space gear. the background features a greenish, (dark), abandined, industrial setting with metallic pipes and machinery, creating a sense of a dystopian or sci-fi environment. The compostition and the poses are dynamic. The composition is dominated by cool tones, with a muted, slightly gritty texture that enhances the gritty, futuristic atmosphere.

Commercial product photography for a premium unbranded wristwatch: brushed titanium case, deep forest-green sunburst dial, domed sapphire crystal, and charcoal suede strap, standing upright on a split block of dark slate. Three-quarter macro view at 85 mm, precise knurling and believable micro-scratches, controlled softbox highlights tracing the crystal and bezel, crisp contact shadow, faint cool rim light, black-to-graphite seamless studio background, restrained luxury mood, photorealistic e-commerce campaign finish. No logo, no text, no watermark, no floating parts.

Design a sophisticated square botanical exhibition poster printed on slightly fibrous off-white paper. Central midnight-blue iris rendered as a crisp screen print, with a vermilion circle and thin black stems. Exact typography must be perfectly legible and spelled exactly: large headline "NIGHT BLOOM"; smaller line "BOTANICAL EXHIBITION"; date line "SEPTEMBER 12–28". Swiss-modernist grid, generous negative space, deep navy, vermilion and warm ivory palette, photographed straight-on with subtle paper texture. Include no other words, no logos, no watermark, no misspellings, no warped letters.

A mischievous spider in a pirate hat atop a vibrant yellow flower appears to move its legs and gaze around curiously, the camera zooming in for a close-up view of its detailed features and the dramatic contrast between the arachnid and the delicate bloom. cinematic_1940s

Bright commercial food photograph of a single yuzu tart with glossy pale-yellow curd, toasted meringue peaks and a paper-thin candied citrus wheel, on a small white porcelain plate. Macro three-quarter angle, crisp afternoon sunlight casting leaf shadows across a sky-blue tabletop, realistic crumb, tiny caramelized tips and translucent citrus pulp, fresh lemon, cream and blue palette, clean modern bakery campaign. No text, no logo, no watermark, no extra desserts.

intensely focused Viking woman warrior with curly hair hurling a burning meteorite from her hand towards the viewer, the glowing sphere leaves the woman's body getting closer to the viewer leaving a trail of smoke and sparks, intense battlegrounds in snowy conditions, army banners, swords and shields on the ground <lora:Dever_Flux_Enhancer:0.5>

Architectural photograph of a compact desert house built from rammed earth and dark timber, centered around a shaded courtyard with one old olive tree and a narrow reflecting pool. Eye-level 24 mm tilt-shift lens, late-afternoon sun revealing layered earth texture, precise straight verticals, restrained sand, charcoal and sage palette, minimal linen furniture visible through open sliding panels, realistic construction joints and drainage, calm contemporary residential design. No people, no text, no watermark, no impossible cantilevers.

Capabilities

What you can build with flux-2-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-2-pro40% 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-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-2-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"}'