Hugging Face Inference Providers (formerly Inference API)
Paidby Hugging Face
Provided by Hugging Face
Overview
Hugging Face Inference Providers is the current form of what used to be called the Hugging Face Inference API. It gives developers one API, and one Hugging Face token, for running open AI models that are hosted by a range of companies such as Cerebras, Groq, Together AI, Replicate and fal. Requests go through Hugging Face, which routes each one to a provider serving the chosen model and can switch to another if the first is down or rate limited.
It covers text generation with chat models, image and video generation, embeddings for search, and classic machine learning tasks such as classification, summarisation and speech recognition. You can call it with the official Python and JavaScript clients, with plain HTTP, or by pointing an existing OpenAI client at Hugging Face's router address, since the chat endpoint follows the OpenAI format. You can let the router pick a provider, ask for the fastest or cheapest one, or name a provider yourself. A browser playground lets you try chat models before writing code.
Billing is pay-as-you-go at the provider's own rates, with no markup added by Hugging Face. Free accounts receive no monthly credits and must buy credits to use it; PRO, Team and Enterprise subscriptions include a small monthly credit. The original serverless service still exists as a provider called HF Inference, which the documentation says now focuses mainly on CPU tasks and smaller models.
Categories
Features
- One API and token for models hosted by many inference providers
- Automatic routing with failover to another provider
- Fastest, cheapest or named-provider selection per request
- OpenAI-compatible chat completions endpoint
- Python and JavaScript client libraries
- Text, image, video, embedding, classification and speech tasks
- Browser playground for testing chat models
- Usage breakdown by model and provider in account settings
- Organisation billing with spending limits for teams
Privacy
See the official privacy policy. Requests pass through Hugging Face as a proxy and are then processed by the third-party provider that serves the model.
Pros & Cons
Pros
- No markup on top of provider prices
- Existing OpenAI client code works by changing the base URL
- Not tied to one hosting company
- A single bill covers every provider you use
Cons
- Free accounts get no included credits and must buy credits first
- Needs a Hugging Face account and access token
- The OpenAI-compatible endpoint handles chat only; other tasks need the Hugging Face clients
- The legacy HF Inference provider now mainly serves CPU and smaller models
Community Reviews (0)
No written reviews yet — be the first to rate this tool.
Similar Tools
-
AI APIs · Cohere
Provides large language models via API, with a free trial tier.
Freemium API -
Runs LLM inference at very high speed via API, with a free tier.
Freemium Web API -
AI APIs · Together AI
Provides API access to open-source AI models.
Paid Web API -
AI APIs · OpenRouter
Provides one API endpoint for many different AI models, including free ones.
Freemium Web API