flux.1-schnell
#162
by
bswgenai
- opened
since 19-April-2025, I noticed the flux.1-schnell model is not generating images from text.
I can see it is now a Gated model and I got "You have been granted access to this model"
from huggingface_hub import InferenceClient
client = InferenceClient(
provider="hf-inference",
api_key="hf_xxxxxxxxxxxxxxxxxxxxxxx",
)
output is a PIL.Image object
image = client.text_to_image(
"Astronaut riding a horse",
model="black-forest-labs/FLUX.1-schnell",
)
image.save("output2.png")