https://fal.ai/models/fal-ai/flux-2-flex


https://huggingface.co/black-forest-labs/FLUX.2-dev

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]


https://huggingface.co/spaces/black-forest-labs/FLUX.2-dev


https://docs.bfl.ai/guides/prompting_guide_flux2





Prompt: Cowboy holding a pole of road sign with text "Flux.2 Dev". text "32B" is handwritten on a corner of the sign. Golden Gate bridge on the background.

Parameters: Steps: 20| Size: 1024x1024| Seed: 2926064816| CFG scale: 6| App: SD.Next| Version: 38e4541| Pipeline: Flux2Pipeline| Operations: txt2img| Model: FLUX.2-dev-SDNQ-uint4-svd-r32


Time: 31m 6.81s | total 1876.27 pipeline 1866.74 callback 7.97 vae 1.49 | GPU 37742 MB 29% | RAM 45.16 GB 36%