Hugging Face Inference Endpoints Explained: Serverless GPUs for Your Models
Hugging face inference endpoints explained: dedicated GPU APIs for any Hub model, with autoscaling, scale-to-zero, engines and current hourly pricing.
By Galactic News Editorial · Published 2026-11-18T19:47:18+00:00 · Updated 2026-11-18T19:47:18+00:00
Hugging Face Inference Endpoints Explained: Serverless GPUs for Your Models
Hugging Face Inference Endpoints turn any model on the Hub into a production API on dedicated, autoscaling infrastructure managed by Hugging Face. Pick a model, pick a GPU, and you get a private HTTPS endpoint. This guide explains what the service is, how it differs from serverless inference, what it costs, and how to deploy your first endpoint.
What hugging face inference endpoints are
An Inference Endpoint is built from a model on the Hub. Hugging Face runs it on dedicated infrastructure on a cloud provider of your choice, with autoscaling, logs and metrics included. You do not manage servers, Kubernetes, CUDA versions or VPNs. The platform handles that under the hood, so you focus on the model and the application calling it.
Endpoints support open-source inference engines. The default for new deployments is vLLM. SGLang is the recommended engine for retrieval workloads. TGI, the older text generation engine, entered maintenance mode in 2026, though existing TGI deployments keep working. You can also bring a custom container if your model needs a different serving stack. Every endpoint exposes an OpenAI-compatible messages API, so existing clients need only a new base URL and key.
Inference Endpoints vs serverless inference
Hugging Face offers two ways to call a model. Inference Providers, the serverless route, gives pay-per-token access to hundreds of models through partner providers. There is nothing to deploy and nothing to keep warm. It is the fastest way to prototype.
Inference Endpoints are the dedicated route. You get your own GPU instances, a private URL, autoscaling rules you control, and service guarantees. The trade-off is cost structure. Serverless bills per token. Endpoints bill per minute while replicas run. For steady traffic, a dedicated endpoint is often cheaper per request. For spiky or tiny traffic, serverless usually wins. Pick serverless to test an idea. Pick Endpoints when the model is part of a product with real users.
Autoscaling and scale to zero
An endpoint scales up as traffic rises and down as it falls, so you pay for capacity you use rather than capacity you guessed. You set the minimum and maximum replica counts. Set the minimum to 1 when you need the endpoint always warm, with no cold start. Set it to 0 to scale to zero, which stops compute charges after about 15 minutes without traffic.
Scale to zero has a real cost. The first request after idle hits a cold start while a replica initializes, which usually takes a few minutes. During that window the endpoint can return an error instead of an answer, because there is no built-in request queue. Hugging Face documents this directly. Use scale to zero for internal tools, demos and off-hours workloads. Keep at least one replica warm for anything users depend on.
Autoscaling can also follow a daily schedule. You can keep replicas warm during business hours and scale to zero overnight. That pattern cuts the bill by roughly 60 to 75 percent for a business-hours workload, against keeping the endpoint warm around the clock.
What it costs
Endpoints bill per minute for each replica while it is initializing or running. Paused endpoints stop billing. A payment method and credits are required before the first deployment, and there is no free tier for dedicated endpoints. The current published rates on Hugging Face's pricing page include:
| Hardware | Memory | Price per hour | Good for |
|---|---|---|---|
| CPU, Intel Sapphire Rapids | 2 GB | $0.03 | Classifiers, embeddings, small models |
| NVIDIA T4 | 14 GB | $0.50 | Small chat models up to about 13B |
| NVIDIA L4 | 24 GB | $0.80 | Mid-size chat and embedding models |
| NVIDIA L40S | 48 GB | $1.80 | Larger chat and image models |
| NVIDIA A100 | 80 GB | $2.50 | 70B models and high-throughput retrieval |
| NVIDIA H200 | 141 GB | $5.00 | Very large models and heavy production loads |
Do the monthly math before you deploy. A single T4 at one replica around the clock costs about $365 a month. The same endpoint on a business-hours schedule costs far less. Set a maximum replica count so a traffic spike cannot run away with the bill. Check the pricing page before you deploy, because hardware rates change.
Deploying your first endpoint in five steps
- Pick the model. Choose a model from the Hub that fits your GPU. A 7B model fits a T4. A 70B model needs an A100 or larger.
- Create the endpoint. In the Hub interface or with the
huggingface_hubPython library, callcreate_inference_endpointwith the model, hardware and engine. - Set scaling rules. Choose minimum and maximum replicas. Enable scale to zero only if cold starts are acceptable for this workload.
- Wait for initialization. The first start takes a few minutes while weights load. Check the endpoint status until it reports running.
- Call it like an OpenAI API. Point your client at the endpoint URL with
/v1/at the end, pass your Hugging Face token as the key, and send a chat completion request.
You can manage the full lifecycle through the same library: list endpoints, update them, scale them to zero manually, and delete them when the work is done. Delete endpoints you no longer need. A paused endpoint stops billing, but a forgotten running one does not.
When Endpoints are the wrong choice
Skip Endpoints when traffic is tiny or unpredictable. Serverless inference costs nothing while idle and needs no deployment. Skip them when you need hardware or regions Hugging Face does not offer. Endpoints run in United States and European cloud regions, with no native Asia-Pacific or Middle East regions. Skip them when you need a compliance guarantee Hugging Face does not provide for the service. Check the compliance documentation against your own requirements before committing.
Self-hosting with vLLM or Ollama is the alternative when you need full control, custom networking, or the lowest cost at very high volume. Endpoints charge a premium over raw GPU rental. The premium buys managed scaling, monitoring and Hub integration. If your team has the operations skill and the traffic to justify it, self-hosting can be cheaper. If not, the premium is the point.
Bottom line
Hugging Face Inference Endpoints are the fastest path from a Hub model to a production API you own. You pick the model, the GPU and the scaling rules. Hugging Face runs the infrastructure. Start with a T4 and scale to zero for a first deployment, keep one replica warm for anything users depend on, and set a maximum replica count before you ship. When traffic grows past the point where per-token serverless pricing hurts, a dedicated endpoint is usually the next step.