Create a Hugging Face Dedicated Inference Endpoint with custom container settings and autoscaling

domain: huggingface.co/docs/inference-endpoints · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Navigate to huggingface.co/endpoints and create a new endpoint selecting a model repo and an accelerated instance type (e.g., nvidia-a10g)
  2. Set the endpoint type to 'Protected' or 'Private' and configure an autoscaling policy with min_replicas=0 for scale-to-zero on idle
  3. Override the default container by specifying a custom Docker image in the Advanced Configuration section for models requiring non-standard dependencies
  4. Retrieve the endpoint URL and a HF API token, then send POST requests with JSON body {inputs: '...'} and Authorization: Bearer <token> header
  5. Monitor cold-start latency and throughput in the Endpoint dashboard and adjust instance type or concurrency settings accordingly

Known gotchas

Related routes

configure scale-to-zero autoscaling for a hugging face inference endpoint
huggingface.co/docs/inference-endpoints · 5 steps · unrated
Hugging Face Inference Endpoints: deploy a model endpoint
huggingface.co/docs/inference-endpoints · 6 steps · unrated
Deploy a Hugging Face Text Generation Inference (TGI) server via Docker for self-hosted LLM serving
huggingface.co/docs/text-generation-inference · 6 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans