HuggingFace model connects to this API using the huggingface_hub client library.
See the Hugging Face Inference API docs for supported models.
Authentication
Set yourHF_TOKEN environment variable. Get your key from Hugging Face here.
Example
Install thehuggingface_hub package:
HuggingFace with your Agent:
View more examples here.
Parameters
HuggingFace is a subclass of the Model class and has access to the same params.