Master FLUX.2 prompting with structured JSON, hex colors, and multi-reference techniques
FLUX.2 delivers exceptional prompt following and supports advanced techniques like structured JSON prompting, precise hex color control, and multi-reference image editing. This guide covers everything you need to create stunning results.
No negative prompts: FLUX.2 does not support negative prompts. Focus on describing what you want, not what you donβt want.
FLUX.2 excels at interpreting structured JSON prompts, giving you precise control over every aspect of your image. This is particularly powerful for production workflows and automation.
Letβs build a product shot incrementally to see how each element contributes.Step 1: Generating a coffee mug
Copy
Ask AI
{ "scene": "Professional studio product photography setup with polished concrete surface", "subjects": [ { "description": "Minimalist ceramic coffee mug with steam rising from hot coffee inside", "pose": "Stationary on surface", "position": "Center foreground on polished concrete surface", "color_palette": ["matte black ceramic"] } ], "style": "Ultra-realistic product photography with commercial quality", "color_palette": ["matte black", "concrete gray", "soft white highlights"], "lighting": "Three-point softbox setup creating soft, diffused highlights with no harsh shadows", "mood": "Clean, professional, minimalist", "background": "Polished concrete surface with studio backdrop", "composition": "rule of thirds", "camera": { "angle": "high angle", "distance": "medium shot", "focus": "Sharp focus on steam rising from coffee and mug details", "lens-mm": 85, "f-number": "f/5.6", "ISO": 200 }}
Step 1: Single matte black mug with steam
Step 2: Adding a second mug in a different color
Copy
Ask AI
{ "scene": "Professional studio product photography setup with polished concrete surface", "subjects": [ { "description": "Minimalist ceramic coffee mug with steam rising from hot coffee inside", "pose": "Stationary on surface", "position": "Center foreground on polished concrete surface", "color_palette": ["matte black ceramic"] }, { "description": "Minimalist ceramic coffee mug, matching design to the black mug", "pose": "Stationary on surface", "position": "Right side of the black mug on polished concrete surface", "color_palette": ["matte yellow ceramic"] } ], "style": "Ultra-realistic product photography with commercial quality", "color_palette": ["matte black", "matte yellow", "concrete gray", "soft white highlights"], "lighting": "Three-point softbox setup creating soft, diffused highlights with no harsh shadows", "mood": "Clean, professional, minimalist", "background": "Polished concrete surface with studio backdrop", "composition": "rule of thirds", "camera": { "angle": "high angle", "distance": "medium shot", "focus": "Sharp focus on steam rising from coffee and both mugs in frame", "lens-mm": 85, "f-number": "f/5.6", "ISO": 200 }}
Step 2: Added a yellow mug to the composition
Step 3: Change the color of the steam
Copy
Ask AI
{ "scene": "Professional studio product photography setup with polished concrete surface", "subjects": [ { "description": "Minimalist ceramic coffee mug with bright red steam rising from hot coffee inside", "pose": "Stationary on surface", "position": "Center foreground on polished concrete surface", "color_palette": ["matte black ceramic", "bright red steam"] }, { "description": "Minimalist ceramic coffee mug, matching design to the black mug", "pose": "Stationary on surface", "position": "Right side of the black mug on polished concrete surface", "color_palette": ["matte yellow ceramic"] } ], "style": "Ultra-realistic product photography with commercial quality", "color_palette": ["matte black", "matte yellow", "bright red", "concrete gray", "soft white highlights"], "lighting": "Three-point softbox setup creating soft, diffused highlights with no harsh shadows", "mood": "Clean, professional, minimalist", "background": "Polished concrete surface with studio backdrop", "composition": "rule of thirds", "camera": { "angle": "high angle", "distance": "medium shot", "focus": "Sharp focus on steam rising from coffee and both mugs in frame", "lens-mm": 85, "f-number": "f/5.6", "ISO": 200 }}
Step 3: Changed the steam color to bright red
You can include the JSON directly in your prompt, or flatten it into natural language. FLUX.2 understands both formats.
Apply gradients by specifying start and end colors:Prompt:βA vase on a table in living room, the color of the vase is a gradient, starting with color #02eb3c and finishing with color #edfa3c. The flowers inside the vase have the color #ff0088β
Example Prompt:βCreate a vertical infographic about coffee consumption worldwide. Title: βGlobal Coffee Cultureβ. Include 3 sections with statistics, use icons for each country, color scheme #4A2C2A (brown) and #F5E6D3 (cream). Modern minimalist style with clean typography.β
FLUX.2 excels at generating clean typography, product marketing materials, and magazine layouts.
Product advertisement with clean typography
Magazine cover layout
Product Ad:βSamsung Galaxy S25 Ultra product advertisement, βUltra-strong titaniumβ headline, βShielded in a strong titanium frame, your Galaxy S25 Ultra always stays protectedβ subtext, close-up of phone edge showing titanium frame, dark gradient background, clean minimalist tech aesthetic, professional product photographyβMagazine Cover:βWomenβs Health magazine cover, April 2025 issue, βSpring forwardβ headline, woman in green outfit sitting on orange blocks, white sneakers, βCovid: five years onβ feature text, β15 skincare habitsβ callout, professional editorial photography, magazine layout with multiple text elementsβ
Prompting in the native language of the content youβre creating often produces more culturally authentic resultsβlocal markets, architecture, and atmosphere are rendered with greater accuracy.
Generate each panel separately while keeping character descriptions consistent:
Panel 1: The Crisis
Panel 2: The Transformation
Panel 3: The Battle
Panel 4: Victory
Panel 1 Prompt: The Crisis
βStyle: Classic superhero comic Character: Worried scientist frantically typing on glowing holographic keyboard, face illuminated by blue light showing deep concern Setting: Massive computer server room with sparking circuits and red warning lights flashing on monitors Text: βThe AI models are corrupting! We need Diffusion Man!β Mood: Tense, urgent + dramatic blue and red tonesβ
Panel 2 Prompt: The Transformation
βStyle: Classic superhero comic with dynamic action lines and electric energy effects Character: Diffusion Man/Mild-mannered programmer (30 years old, brown skin tone, short natural fade haircut with black hair, black-framed glasses, light blue button-up shirt, athletic build, strong jawline) body begins to glow with swirling gradients of deep purple, electric blue, and hot pink energy, mathematical equations and neural network patterns flowing around him in glowing lines Setting: Small office with computer monitors displaying code and error messages Text: βWhen noise becomes signal, I amβ¦ DIFFUSION MAN!β Mood: Powerful, transformative + dramatic backlighting and energy radiating outward in wavesβ
Panel 3 Prompt: The Battle
βStyle: Classic superhero comic with explosive action and dynamic composition Character: Diffusion Man (athletic 30-year-old with brown skin tone and short natural fade haircut with black hair, wearing sleek bodysuit with gradient patterns from deep purple to electric blue to hot pink, glowing neural network emblem on chest with interconnected nodes, short gradient cape, purple half-mask showing strong jawline and confident expression) extends both hands forward in powerful stance, shooting beams of structured noise and latent space energy at corrupted digital monsters made of glitching pixels and broken code Setting: Digital cyberspace environment with floating data cubes and cascading binary code Text: βTime to DENOISE this chaos!β Mood: Intense, action-packed + bright energy flashes and electric effectsβ
Panel 4 Prompt: Victory
βStyle: Classic superhero comic with warm, triumphant colors and clean composition Character: Diffusion Man (athletic 30-year-old with brown skin tone and short natural fade haircut with black hair, wearing sleek gradient bodysuit from deep purple to electric blue to hot pink, glowing neural network emblem on chest, short gradient cape flowing behind him, purple half-mask, strong jawline, confident heroic smile) stands heroically giving thumbs up gesture to grateful scientist beside him, her computer screens now showing stable green indicators and success messages Setting: Calm server room with soft blue ambient lighting and orderly data streams flowing smoothly in organized patterns Text: βYou saved us, Diffusion Man! The models are generating perfectly again!β Mood: Victorious, hopeful + golden sunset-like tones streaming through windowsβ
Character Consistency: Notice how Diffusion Manβs description stays detailed and consistent across panelsβbrown skin tone, short natural fade haircut, gradient bodysuit from purple to blue to pink, neural network emblem, purple half-mask. Repeat these details in every panel prompt.
βfilm grain, warm color cast, soft focus, 80s vintage photoβ
Analog Film
βshot on Kodak Portra 400, natural grain, organic colorsβ
Modern Photorealism
2000s Digicam
80s Vintage
Modern Photorealism:βSoaking wet tiger cub taking shelter under a banana leaf in the rainy jungle, close up photoβ2000s Digicam:βSloth out drinking in Bangkok at night in a street full of party folks, 2000s digicam style, people in the background fadingβ80s Vintage:βA group of baby penguins in a trampoline park, having the time of their lives, 80s vintage photoβ
Prompt:βA spiritual architectural photograph captured on expired Kodak Ektachrome 64 slide film cross-processed from 1987 with a 35mm spherical lens at f/5.6, featuring model standing before small forest chapel in clearing. The model wears the outfit, positioned on stone steps leading to wooden chapel, red creating stark contrast against weathered brown timber. Background shows traditional Schwarzwald chapel - dark wood construction with small bell tower, carved wooden door, religious paintings under eaves, surrounding clearing with wild flowers, tall firs creating natural cathedral, small cemetery with wooden crosses. Dappled forest light at 1/125. Cross-processed Ektachrome showing extreme color shifts - cyan-magenta split, warm wood tones pushed to orange-brown, oversaturated red, crushed black shadows, blown highlights, heavy grain creating mysterious atmosphere. Composition emphasizes sacred spaces and pilgrimage. Thomas Struth church interiors, Candida HΓΆfer architectural documentation, religious tourism meets fashion editorial, spiritual Schwarzwald mysticism.β
For multi-reference editing, describe how each input should be used. The model combines clothing items, accessories, and style references into a cohesive scene based on your prompt.
Use JSON structured prompts when you need precise control over multiple elements. Start simple and add complexity as needed.
Be Specific with Colors
Always associate hex codes with specific objects. βThe car is #FF0000β works better than βuse red #FF0000 in the image.β
Describe What You Want
FLUX.2 has no negative prompts. Instead of βno blur,β say βsharp focus throughout.β Instead of βno people,β describe an βempty scene.β
Reference Camera and Style
For photorealism, specify camera models, lenses, and film stocks. βShot on Fujifilm X-T5, 35mm f/1.4β produces more authentic results than βprofessional photo.β
Use Native Languages
Prompt in the language that best describes your desired cultural context. French for Parisian scenes, Japanese for anime styles.
Layer Multi-Reference Carefully
When using multiple input images, clearly describe the role of each: subject from image 1, style from image 2, background from image 3.