Hugging Face (gateway)
Hugging Face (gateway)
Route Hugging Face model calls through the Respan gateway after the Hugging Face model you want is available in your Respan model list. Your application uses the OpenAI-compatible Respan endpoint and only sends RESPAN_API_KEY; provider credentials are managed in Respan.
Setup
Set environment variables
Configure the provider credentials required by your model in Respan. Once they are stored, no HUGGINGFACE_API_KEY is needed in application code. Check the exact model’s billing label in the model catalog; hosting a model on Hugging Face does not by itself make it available through Respan credits.
View your request
Open the Spans page to inspect the gateway request, model, latency, token usage, cost, and response content.
Switch models
Change the model parameter to use 1000+ models from different providers through the same gateway.
See the full model list.