Python
Official SDK- Package
huggingface_hub (InferenceClient)- Install
- Install
pip install huggingface_hub - Repo
- github.com/huggingface/huggingface_hub
- Docs
- huggingface.co/docs/huggingface_hub/guides/inference
From the docs
For convenience, the huggingface_hub library provides an InferenceClient that automatically handles provider selection and request routing. ... When using the Hugging Face inference clients (JavaScript or Python), you can explicitly specify a provider or let the system choose automatically.