FLUX.2
Black Forest Labs has released FLUX.2 with support on Together AI. FLUX.2 is the next generation of image models, featuring enhanced control through JSON structured prompts, HEX color code support, reference image editing, and exceptional text rendering capabilities. Three model variants are available:| Model | Best For | Key Features |
|---|---|---|
| FLUX.2 [pro] | Maximum quality | Up to 9 MP output, fastest generation |
| FLUX.2 [dev] | Development & iteration | Great balance of quality and flexibility |
| FLUX.2 [flex] | Maximum customization | Adjustable steps & guidance, better typography |
Generating an image
Here’s how to generate images with FLUX.2:

steps and guidance parameters. It also excels at typography and text rendering.

Parameters
Common Parameters (All Models)| Parameter | Type | Description | Default |
|---|---|---|---|
prompt | string | Text description of the image to generate | Required |
width | integer | Image width in pixels (256-1920) | 1024 |
height | integer | Image height in pixels (256-1920) | 768 |
seed | integer | Seed for reproducibility | Random |
prompt_upsampling | boolean | Automatically enhance prompt for better generation | true |
output_format | string | Output format: jpeg or png | jpeg |
reference_images | array | Reference image URL(s) for image-to-image editing | - |
| Parameter | Type | Description | Default |
|---|---|---|---|
steps | integer | Number of inference steps (higher = better quality, slower) | Model default |
guidance | float | Guidance scale (higher values follow prompt more closely) | Model default |
Image-to-Image with Reference Images
FLUX.2 supports powerful image-to-image editing using thereference_images parameter. Pass one or more image URLs to guide generation.
Core Capabilities:
| Capability | Description |
|---|---|
| Multi-reference editing | Use multiple images in a single edit |
| Sequential edits | Edit images iteratively |
| Color control | Specify exact colors using hex values or reference images |
| Image indexing | Reference specific images by number: “the jacket from image 2” |
| Natural language | Describe elements naturally: “the woman in the blue dress” |
→













- Use image indexing — Reference images by number (“image 1”, “image 2”) for precise control
- Be descriptive — Clearly describe what you want to change or combine
- Use high-quality inputs — Better input images lead to better results
- Combine with HEX colors — Use specific color codes or color swatch images for precise color changes
JSON Structured Prompts
FLUX.2 is trained to understand structured JSON prompts, giving you precise control over subjects, composition, lighting, and camera settings. Basic JSON Prompt Structure
| Option | Description |
|---|---|
rule of thirds | Classic balanced composition |
golden spiral | Fibonacci-based natural flow |
minimalist negative space | Clean, spacious design |
diagonal energy | Dynamic, action-oriented |
vanishing point center | Depth and perspective focus |
triangular arrangement | Stable, hierarchical layout |
| Angle | Use Case |
|---|---|
eye level | Natural, relatable perspective |
low angle | Heroic, powerful subjects |
bird's-eye | Overview, patterns |
worm's-eye | Dramatic, imposing |
over-the-shoulder | Intimate, narrative |
HEX Color Code Prompting
FLUX.2 supports precise color control using HEX codes. Include the keyword “color” or “hex” followed by the code:

Advanced Use Cases
Infographics FLUX.2 can create complex, visually appealing infographics. Specify all data and content explicitly:



Photography Styles
FLUX.2 excels at various photography aesthetics. Add style keywords to your prompts:| Style | Prompt Suffix |
|---|---|
| Modern Photorealism | close up photo, photorealistic |
| 2000s Digicam | 2000s digicam style |
| 80s Vintage | 80s vintage photo |
| Analogue Film | shot on 35mm film, f/2.8, film grain |
| Vintage Cellphone | picture taken from a vintage cellphone, selfie style |

Multi-Language Support
FLUX.2 supports prompting in many languages without translation:

Prompting Best Practices
Golden Rules- Order by importance — List the most important elements first in your prompt
- Be specific — The more detailed, the more controlled the output
- Subject: The main focus (person, object, character)
- Action: What the subject is doing or their pose
- Style: Artistic approach, medium, or aesthetic
- Context: Setting, lighting, time, mood
| ❌ Don’t | ✅ Do |
|---|---|
portrait, --no text, --no extra fingers | tight head-and-shoulders portrait, clean background, natural hands at rest out of frame |
landscape, --no people | serene mountain landscape, untouched wilderness, pristine nature |
Troubleshooting
Text not rendering correctly- Use FLUX.2 [flex] for better typography
- Put exact text in quotes within the prompt
- Keep text short and clear
- Use HEX codes with “color” or “hex” keyword
- Be explicit about which element should have which color
- Use JSON structured prompts for precise control
- Specify camera angle, distance, and composition type
- Use position descriptors (foreground, midground, background)