import os from huggingface_hub import InferenceClient

client = InferenceClient( provider="fal-ai", api_key=os.environ["HF_TOKEN"], )

output is a PIL.Image object

image = client.text_to_image( "Astronaut riding a horse", model="Tongyi-MAI/Z-Image-Turbo", )

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support