...
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
...