Skip to main content

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. Four model variants are available:
Which model should I use?
  • Use [max] for the ultimate quality and fidelity in premium production workloads
  • Use [pro] for production workloads requiring high quality and speed
  • Use [dev] for development, experimentation, and when you need a balance of quality and control
  • Use [flex] when you need maximum control over generation parameters or require exceptional typography

Generating an image

Here’s how to generate images with FLUX.2:
Using FLUX.2 [dev] The dev variant offers a great balance for development and iteration:
Using FLUX.2 [flex] The flex variant provides maximum customization with the guidance_scale and steps parameters. It also excels at typography and text rendering.

Parameters

Common Parameters (All Models) Additional Parameters for [dev] and [flex] FLUX.2 [dev] and FLUX.2 [flex] support additional parameters:

Image-to-Image with Reference Images

FLUX.2 supports powerful image-to-image editing using the reference_images parameter. Pass one or more image URLs to guide generation. Core Capabilities: Single Reference Image Edit or transform a single input image:
Multiple Reference Images Combine elements from multiple images. Reference them by index (image 1, image 2, etc.):
Using Image Indexing Reference specific images by their position in the array:
Using Natural Language FLUX.2 understands the content in your images, so you can describe elements naturally:
Color Editing with Reference Images To change colors precisely, provide a color swatch image as a reference:
Best Practices for Reference Images
  1. Use image indexing — Reference images by number (“image 1”, “image 2”) for precise control
  2. Be descriptive — Clearly describe what you want to change or combine
  3. Use high-quality inputs — Better input images lead to better results
  4. 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
JSON Schema Reference Here’s the recommended schema for structured prompts:
Composition Options Camera Angle Options

HEX Color Code Prompting

FLUX.2 supports precise color control using HEX codes. Include the keyword “color” or “hex” followed by the code:
Gradient Example

Advanced Use Cases

Infographics FLUX.2 can create complex, visually appealing infographics. Specify all data and content explicitly:
Website & App Design Mocks Generate full web design mockups for prototyping:
Comic Strips Create consistent comic-style illustrations:
Stickers Generate die-cut sticker designs:

Photography Styles

FLUX.2 excels at various photography aesthetics. Add style keywords to your prompts:

Multi-Language Support

FLUX.2 supports prompting in many languages without translation:

Prompting Best Practices

Golden Rules
  1. Order by importance — List the most important elements first in your prompt
  2. Be specific — The more detailed, the more controlled the output
Prompt Framework Follow this structure: Subject + Action + Style + Context
  • 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
Avoid Negative Prompting FLUX.2 does not support negative prompts. Instead of saying what you don’t want, describe what you do want:

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
Colors not matching
  • Use HEX codes with “color” or “hex” keyword
  • Be explicit about which element should have which color
Composition not as expected
  • Use JSON structured prompts for precise control
  • Specify camera angle, distance, and composition type
  • Use position descriptors (foreground, midground, background)
Check out all available Flux models here