Generate high-fidelity images with advanced control, exact colors, and flexible aspect ratios.
FLUX.2 brings enterprise-grade efficiency and professional precision to text-to-image generation. It closes the gap between generated and real imagery with accurate hands, faces, and textures—all while respecting brand guidelines through hex-code color steering. [max] offers the highest quality with grounding search for real-time information.
Try it live — Test FLUX.2 [max], [pro], and [flex] in the playground. [klein] is available via API and on Hugging Face.
Explore why FLUX.2 is the choice for professional workflows.
Photorealism & Detail
Typography & Design
Grounding Search
Creative & Culture
Advanced Control
Close the gap between Generated and Real.
FLUX.2 produces realistic image details up to 4MP: accurate hands, faces, fabrics, logos, and small objects that other models miss. Ideal for creative photography, e-commerce shots, and product marketing.
From UI mockups to Infographics.
FLUX.2 renders clear, legible typography and adheres to complex layout instructions.
Web Design: Landing page mockups with readable headers
Infographics: Structured data visualizations
Advertising: Production-ready ad creatives
Generate images grounded in real-time information with FLUX.2 [max]. searches the web when needed, you can create visuals of yesterday’s football game, the weather in real-time of any cities or re-create historical events.
Comics, Memes, and Trends.
FLUX.2 understands internet culture, tone, and style. Prompt in your native language with state-of-the-art instruction following.
Comics & Graphic Novels: Maintain consistent styles for storytelling
Memes & Social: Generate culturally relevant content
Multilingual: Native language support
Structured PromptingUse structured prompts for precise control over generation. Perfect for production workflows and automation.
Example: Structured Prompting
Copy
Ask AI
{ "subject": "Mona Lisa painting by Leonardo da Vinci", "background": "museum gallery wall, ornate gold frame", "lighting": "soft gallery lighting, warm spotlights", "style": "digital art, high contrast", "camera_angle": "eye level view", "composition": "centered, portrait orientation"}
Exact Color ControlFLUX.2 supports precise color matching using hex color codes. Specify exact brand colors without approximation, making it ideal for professional design workflows.Method 1: Using Hex Codes in PromptsThe best way to include hex codes in your prompt is by signaling with keywords like “color” or “hex” followed by the code:Example: Apply hex colors to specific objects
Integrate FLUX.2 text-to-image generation into your application in three steps.
1
Authenticate
Get your API key from the BFL Dashboard. You will use this in the x-key header.
2
Create a Generation Request
Send a POST request to the endpoint for your chosen model. The prompt is required.
[klein] 4B
[klein] 9B
[max]
[pro]
Copy
Ask AI
curl -X POST https://api.bfl.ai/v1/flux-2-klein-4b \ -H 'accept: application/json' \ -H "x-key: $BFL_API_KEY" \ -H 'Content-Type: application/json' \ -d '{ "prompt": "A serene mountain landscape at golden hour, soft diffused light filtering through clouds, creating long shadows across the valley", "width": 1024, "height": 1024 }'
Copy
Ask AI
curl -X POST https://api.bfl.ai/v1/flux-2-klein-9b \ -H 'accept: application/json' \ -H "x-key: $BFL_API_KEY" \ -H 'Content-Type: application/json' \ -d '{ "prompt": "A serene mountain landscape at golden hour, soft diffused light filtering through clouds, creating long shadows across the valley", "width": 1024, "height": 1024 }'
Copy
Ask AI
curl -X POST https://api.bfl.ai/v1/flux-2-max \ -H 'accept: application/json' \ -H "x-key: $BFL_API_KEY" \ -H 'Content-Type: application/json' \ -d '{ "prompt": "Cinematic shot of a futuristic city at sunset, 85mm lens", "width": 1920, "height": 1080, "safety_tolerance": 2 }'
flux-2-pro-preview reflects our latest advances and is continuously updated. Use flux-2-pro if you need a pinned model. See Preview Endpoint for details.
Copy
Ask AI
curl -X POST https://api.bfl.ai/v1/flux-2-pro-preview \ -H 'accept: application/json' \ -H "x-key: $BFL_API_KEY" \ -H 'Content-Type: application/json' \ -d '{ "prompt": "Cinematic shot of a futuristic city at sunset, 85mm lens", "width": 1920, "height": 1080, "safety_tolerance": 2 }'
3
Check Pricing
The API response includes pricing information. The cost field shows the credits charged for the request.
Copy
Ask AI
# Response includes cost information{ "id": "task-id-here", "polling_url": "<polling_url>", "cost": 3.0, # Credits charged for this request "input_mp": 0.0, # Input megapixels "output_mp": 2.07 # Output megapixels}
4
Retrieve the Result
Poll the polling_url until the status is Ready.
Copy
Ask AI
# Poll until status is 'Ready'curl -X GET "$POLLING_URL" \ -H 'accept: application/json' \ -H "x-key: $BFL_API_KEY"
Sub-Second GenerationFrom $0.014/image. Runs on consumer GPUs (~13GB VRAM). Apache 2.0 license. Perfect for real-time applications and local deployment.
FLUX.2 [klein] 9B
Frontier Quality at SpeedFrom $0.015/image. Matches models 5x its size. 9B flow model with 8B Qwen3 text embedder for superior prompt understanding. FLUX Non-Commercial License.
FLUX.2 [max]
Top-Tier QualityHighest image quality and prompt adherence. Includes grounding search for real-time information. Best for professional content needing the final touch.
FLUX.2 [pro]
Fast & EfficientBest balance of speed and cost. Ideal for high-volume applications needing fast turnaround.
FLUX.2 [flex]
Quality with ControlAdjustable steps and guidance. Best when you need fine-grained control over generation.