...
https://docs.bfl.ai/guides/prompting_guide_flux2
| Hex Colors | Brand work, precise matching | color #FF5733 or hex #FF5733 |
| Camera References | Photorealism | shot on [camera], [lens], [settings] |
| Style Eras | Period-specific looks | 80s vintage, 2000s digicam |
| Multi-Reference | Composite images | [pro]: 8, [flex]: 10, [dev]: ~6 |
| Seed | Reproducible results | seed: 42 |
| Guidance [flex] | Prompt adherence | guidance: 4.5 (1.5-10) |
| Steps [flex] | Quality vs speed | steps: 50 (16-50) |
| Aspect Ratios | Use case optimization | 1:1, 16:9, 9:16, 4:3, 21:9 |
| Code Block |
|---|
prompt = "Realistic macro photograph of a hermit crab using a soda can as its shell, partially emerging from the can, captured with sharp detail and natural colors, on a sunlit beach with soft shadows and a shallow depth of field, with blurred ocean waves in the background. The can has the text `BFL Diffusers` on it and it has a color gradient that start with #FF5733 at the top and transitions to #33FF57 at the bottom."
image = pipe(
prompt_embeds=remote_text_encoder(prompt),
#image=load_image("https://huggingface.co/spaces/zerogpu-aoti/FLUX.1-Kontext-Dev-fp8-dynamic/resolve/main/cat.png") #optional image input
generator=torch.Generator(device=device).manual_seed(42),
num_inference_steps=50, #28 steps can be a good trade-off
guidance_scale=4,
).images[0] |
...
Test 6 - Other Models cover
+ random seed
Test 7 - Art Prompts
System info
| Code Block |
|---|
Mon Dec 8 14:39:24 2025 app: sdnext.git updated: 2025-12-06 hash: 764443213 url: https://github.com/liutyi/sdnext/tree/pytorch arch: x86_64 cpu: x86_64 system: Linux release: 6.17.0-7-generic python: 3.12.3 Torch: 2.9.1+xpu device: Intel(R) Arc(TM) Graphics (1) ram: free:118.76 used:4.31 total:123.07 xformers: diffusers: 0.36.0.dev0 transformers: 4.57.1 active: xpu dtype: torch.bfloat16 vae: torch.bfloat16 unet: torch.bfloat16 base: Diffusers/black-forest-labs/FLUX.2-dev [6aab690f83] refiner: none vae: none te: none unet: none Backend: ipex Pipeline: native Cross-attention: Scaled-Dot-Product |
...