---
title: "Getting Started with Hugging Face Inference Endpoints"
description: "Hugging Face Inference Endpoints deploys Hub models to managed cloud infrastructure in a few clicks, demonstrated here with a fine-tuned Swin image classifier on a GPU instance in AWS eu-west-1."
url: "https://swe.quest/articles/getting-started-with-hugging-face-inference-endpoints-d2f6b69d4c5ca480"
canonical: "https://huggingface.co/blog/inference-endpoints"
source: "Hugging Face"
published: "2022-10-14"
difficulty: "medium"
kind: "How-to"
reading_minutes: 5
tags: ["inference","ml-platform","cloud"]
---

# Getting Started with Hugging Face Inference Endpoints

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2022-10-14, 5 min read, How-to. Original: [https://huggingface.co/blog/inference-endpoints](https://huggingface.co/blog/inference-endpoints)

## Summary

Hugging Face Inference Endpoints deploys Hub models to managed cloud infrastructure in a few clicks, demonstrated here with a fine-tuned Swin image classifier on a GPU instance in AWS eu-west-1. Endpoints come in three security levels: public (no auth), protected (organization token required) and private, which is reachable only from your own AWS VPC through AWS PrivateLink. The walkthrough calls a protected endpoint from Python with a bearer token, checks the analytics and logs (including errors from a missing Content-Type header), then wires up a private endpoint by creating a VPC endpoint in the AWS console and testing it with curl from EC2.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [ML platforms](https://swe.quest/tags/ml-platform.md) (AI & ML)
- [Cloud platforms](https://swe.quest/tags/cloud.md) (Infrastructure)

## Prerequisites

- AWS VPC basics ([easy posts on Cloud platforms](https://swe.quest/tags/cloud.md?difficulty=easy))
- REST API calls ([easy posts on API design](https://swe.quest/tags/api-design.md?difficulty=easy))

## Keywords

Hugging Face Inference Endpoints, AWS PrivateLink, VPC Endpoint, Swin Transformer, AutoTrain

## Related posts

- [Why we’re switching to Hugging Face Inference Endpoints, and maybe you should too](https://swe.quest/articles/why-we-re-switching-to-hugging-face-inference-endpoints-and-maybe-you-should-too-bfdcddeceab350fa.md): Hugging Face · 2023-02-15 · Medium · 6 min read · Inference & serving, ML platforms, Cost optimization, Cloud platforms
  A team moved CPU-based transformer inference off a self-built FastAPI + Docker + AWS ECS/Fargate stack onto Hugging Face Inference Endpoints, collapsing deployment to train, push to Hub, deploy.
- [Deploy Hugging Face models easily with Amazon SageMaker](https://swe.quest/articles/deploy-hugging-face-models-easily-with-amazon-sagemaker-e09e9e34ef94ffa8.md): Hugging Face · 2021-07-08 · Medium · 9 min read · Inference & serving, Cloud platforms, ML platforms, Python
  Hugging Face Inference Deep Learning Containers and the SageMaker Hugging Face Inference Toolkit let Transformers models be deployed as SageMaker endpoints with a few lines of Python, using transformers pipelines for zero-code pre- and post-processing.
- [Run AI workloads on any cloud, store on Hugging Face: zero-egress storage with SkyPilot](https://swe.quest/articles/run-ai-workloads-on-any-cloud-store-on-hugging-face-zero-egress-storage-with-595c5291113e315b.md): Hugging Face · 2026-07-07 · Medium · 8 min read · Storage systems, Cloud platforms, Model training, Cost optimization, ML platforms
  SkyPilot now supports Hugging Face Storage as a first-class backend (\`store: hf\`), so jobs on any of 20+ clouds, Kubernetes or on-prem can mount Hub buckets (read-write) or model/dataset repos (read-only) via an \`hf://\` URL and an existing \`HF\_TOKEN\`.
- [Deploy LLMs with Hugging Face Inference Endpoints](https://swe.quest/articles/deploy-llms-with-hugging-face-inference-endpoints-3facefc244b0efa0.md): Hugging Face · 2023-07-04 · Medium · 6 min read · Inference & serving, LLMs, Python, JavaScript
  Falcon 40B Instruct can be deployed to Hugging Face Inference Endpoints through the web UI by choosing a repository, cloud, region and instance.
- [Running Privacy-Preserving Inferences on Hugging Face Endpoints](https://swe.quest/articles/running-privacy-preserving-inferences-on-hugging-face-endpoints-de0383d315f32496.md): Hugging Face · 2024-04-16 · Medium · 8 min read · Privacy, Inference & serving, Cryptography, Machine learning, Python
  Zama's Concrete ML models, compiled for Fully Homomorphic Encryption (FHE), can be deployed as Hugging Face Inference Endpoints using custom inference handlers.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
