from huggingface_hub import InferenceClient
client = InferenceClient("black-forest-labs/FLUX.1-schnell", token="hf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
https://huggingface.co/spaces/black-forest-labs/FLUX.1-schnell
# output is a PIL.Image object
image = client.text_to_image("A handrawn colorful mind map diagram, rugosity drawn lines, clear shapes, brain silhouette, text areas. must include the texts LITERACY/MENTAL βββ PEACE [Dove Icon] βββ HEALTH [Vitruvian Man ~60px] βββ CONNECT [Brain-Mind Connection Icon] βββ INTELLIGENCE β βββ EVERYTHING [Globe Icon ~50px] βββ MEMORY βββ READING [Book Icon ~40px] βββ SPEED [Speedometer Icon] βββ CREATIVITY βββ INTELLIGENCE [Lightbulb + Infinity ~30px]")
Join the conversation
Join the community of Machine Learners and AI enthusiasts.
Sign Upfrom gradio_client import Client, file
client = Client("black-forest-labs/FLUX.1-schnell")
client.predict(
prompt="A handrawn colorful mind map diagram, rugosity drawn lines, clear shapes, brain silhouette, text areas. must include the texts LITERACY/MENTAL βββ PEACE [Dove Icon] βββ HEALTH [Vitruvian Man ~60px] βββ CONNECT [Brain-Mind Connection Icon] βββ INTELLIGENCE β βββ EVERYTHING [Globe Icon ~50px] βββ MEMORY βββ READING [Book Icon ~40px] βββ SPEED [Speedometer Icon] βββ CREATIVITY βββ INTELLIGENCE [Lightbulb + Infinity ~30px]",
seed=1872187377,
randomize_seed=True,
width=1024,
height=1024,
num_inference_steps=4,
api_name="/infer"
)