Setup
Get your token from Hugging Face Settings.Config
Use it
hf: prefix auto-infers to the huggingface provider:
Features
| Feature | Supported |
|---|---|
| Streaming | Yes |
| Tool use | Model-dependent |
| Vision (images) | Model-dependent |
Provider Details
| Provider ID | huggingface |
| Env variable | HF_TOKEN |
| API type | Hugging Face Inference |
| Auto-infer prefix | hf: |
Notes
- Model IDs use the HuggingFace format:
org/model-name. - Not all models on HF Hub support the Inference API. Check the model card for availability.
- Free tier has rate limits. For production use, consider a HF Pro subscription or Inference Endpoints.