Skip to content
MizanStack

What is actually free on Hugging Face (and what is not)

A free Hugging Face account can host a static demo and download any public model, but it cannot call a hosted model without buying credits. Many articles call the whole platform "free"; the limits below come from the official docs, checked on 6 November 2026.

Free versus paid on Hugging Face

  • Free: a Hugging Face account, downloading public models and datasets, hosting public repos (best-effort storage), Static Spaces, using other people's ZeroGPU Spaces, and up to 2 ZeroGPU Spaces of your own if your account qualifies.
  • Not free: calling models through Inference Providers. Free accounts get no monthly credits, so you buy credits. PRO ($9/month) includes $2 of credits a month (see the plans page (opens in a new tab) and the pricing docs (opens in a new tab)).
  • Not free: creating a normal Gradio or Docker Space. The docs say it needs a paid plan (PRO for a personal account), except the ZeroGPU exception above.
  • Limited: free accounts have 100 GB of private storage, 5 minutes of ZeroGPU a day, and request rate limits.

Treat every number on this page as a snapshot. Hugging Face changes plans, hardware and quotas, and its own docs say some free-tier numbers can change with platform health. The sources are listed at the end.

Step 1: account and a safe token

  1. Create a free account at huggingface.co and verify your email. A verified email also matters later for hosting a ZeroGPU Space.

  2. Open your token settings (opens in a new tab) and create a token. For code that only calls Inference Providers, the docs recommend a fine-grained token with the "Make calls to Inference Providers" permission. Use a separate token for each app or machine, so you can delete one without breaking the others.

  3. Install the Hugging Face command line tool and log in:

    pip install -U "huggingface_hub"
    hf auth login

The docs also offer a standalone installer for the hf tool. Either way, hf --help confirms it works.

Inference Providers: the part that is not free

Inference Providers is one API in front of many AI companies. You send a request to Hugging Face, it routes it to a provider, and you pay the provider's rate with no markup from Hugging Face, according to the pricing page.

What the credits rules say

  • Free users: no monthly credits. You can use the service only by purchasing credits (or by upgrading to PRO).
  • PRO users: $2.00 of credits every month. Team and Enterprise organizations get $2.00 per seat.
  • For PRO and up, these credits are general compute credits. They can also pay for upgraded Spaces hardware and ZeroGPU use beyond the daily quota.
  • Credits apply only when requests are routed by Hugging Face. If you add your own provider key, the provider bills you directly and the credits do not apply.

So "free Inference Providers credits" is true only for paid plans. If you see an older tutorial promising free API calls to big models on a free account, check it against the pricing page (opens in a new tab) before you build on it.

Try it with a small test

Set HF_TOKEN in your terminal first (do not type the token inside the command, it would stay in your shell history). This reads it silently and exports it:

read -s HF_TOKEN && export HF_TOKEN

To see which models are served by at least one provider:

hf models ls --warm

Then a minimal chat request, using the example model from the official quickstart (the model list changes, so pick one from the list above if it is gone). This call is billed. On a free account, buy credits first or it will fail:

curl https://router.huggingface.co/v1/chat/completions \
  -H "Authorization: Bearer $HF_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"messages": [{"role": "user", "content": "Say hello in one sentence."}], "model": "openai/gpt-oss-120b:fastest", "stream": false}'

Adding :cheapest to the model name asks for the lowest-priced provider, and :fastest (the default) asks for the highest throughput. Check your spending any time on the billing page (opens in a new tab).

Spaces: free hosting for a demo, with a catch

A Space is a small app hosted by Hugging Face from a git repo. There are three kinds, and the free rules differ.

  • Static Spaces (plain HTML, CSS, JavaScript): free for everyone. They are served without running on compute, so creating one never needs a paid plan.
  • Gradio and Docker Spaces: they run on compute, and the docs say creating them requires a paid plan (PRO for personal accounts). The default CPU Basic hardware (2 vCPU, 16 GB RAM, 50 GB non-persistent disk, per the GPU docs (opens in a new tab)) has no hourly price, but the paid-plan rule for creating the Space still applies.
  • Exception: free personal accounts in good standing (verified email, account older than 30 days, per the ZeroGPU docs (opens in a new tab)) can host up to 2 Gradio Spaces on ZeroGPU.

Free hardware goes to sleep when unused. The docs give 48 hours of inactivity for CPU Basic, and visitors wake it up automatically. Upgraded hardware is billed by the minute while it is starting or running, even with no visitors.

ZeroGPU

  • It shares NVIDIA RTX Pro 6000 Blackwell GPUs. Your function asks for a GPU when called and releases it afterwards, using the @spaces.GPU decorator.
  • Only the Gradio SDK is supported. Compatibility is more limited than a normal GPU Space.
  • Daily GPU quota per account: 2 minutes unauthenticated, 5 minutes for a free account (see the ZeroGPU docs (opens in a new tab)), 40 minutes for PRO and Team members, 60 for Enterprise members. The quota resets 24 hours after your first GPU use.
  • The default GPU function limit is 60 seconds. You can ask for more with @spaces.GPU(duration=120), but shorter durations get better queue priority.
  • Using other people's ZeroGPU Spaces is free for all users. Your visitors spend their own quota, not yours.

If your demo needs a paid GPU and you cannot cover it, the docs mention a community GPU grant you can apply for from the Space settings. It is not guaranteed.

Run a demo for free: the practical path

The only route that is free for every account with no conditions is a Static Space. It cannot run a Python model on the server, but it can serve a web page that does everything in the visitor's browser, or links to other demos. Here is the flow.

  1. On the Spaces page choose Create new Space, pick Static as the SDK, and set visibility. Public is the default; read the privacy section before you pick it.

  2. The Space is a git repo. Its README.md has a block at the top with sdk: static, and your page lives in index.html. If you use a build tool such as Vite, the docs describe app_build_command and app_file in that same block.

  3. Create the Space in the web UI first, then copy only the files you want public into a clean folder (here ./site), so a .env or other private file is never pushed. Replace my-static-demo with your Space name:

    hf upload my-static-demo ./site . --repo-type=space
  4. Each new commit rebuilds and restarts the Space. Open its page and test.

Want a Python model demo instead? Qualify for the 2 free ZeroGPU Spaces (verified email, account older than 30 days), use the Gradio SDK, and decorate the GPU function with @spaces.GPU. Read the ZeroGPU docs (opens in a new tab) first, especially the rule about placing the model on cuda at module level.

Hosting models and datasets

  • Public storage on a free account is described as "best-effort". The docs say they want to stay generous, but beyond the first few gigabytes you should upload only content that is useful to others.
  • Private storage: 100 GB on a free account. PRO gets 1 TB, and extra private storage is pay-as-you-go (see the storage limits (opens in a new tab)).
  • File and repo guidance: files under 200 GB are recommended, 500 GB is the hard limit for one file, and fewer than 100k files per repo is recommended (same storage limits (opens in a new tab) page).
  • For large datasets the docs ask for a dataset card and a format that works well with the platform (Parquet or WebDataset), and not to upload data nobody will reuse.

A private dataset takes two commands. The first creates the repo, the second uploads a local folder into /train inside it:

hf repos create my-cool-dataset --repo-type dataset --private
hf upload my-cool-dataset ./data /train --repo-type=dataset

Downloading is free too. This fetches one file from a public model:

hf download gpt2 config.json

Downloads and API calls have rate limits (opens in a new tab) counted in 5-minute windows. For a free user the docs list 1,000 API calls, 5,000 file downloads (resolvers) and 200 page loads per window, and say anonymous and free numbers can change. Always pass your token, as the docs say this is the number one fix for being rate-limited.

Where the Hugging Face free tier falls short

  • Anyone who wants a free, always-on API for a product. Free credits do not exist for free accounts, and free Spaces sleep.
  • Anyone who needs a large GPU every day. 5 minutes of ZeroGPU a day is enough to try a demo, not to train or serve users.
  • Teams with private or regulated data. Anything in a free public repo can be read by anyone, and the private protections you may need (such as protected Spaces) belong to paid plans.
  • People who need guarantees. Public storage is "best-effort" and the docs say free limits can change.

Compared with the alternatives

  • Run the model on your own computer (for example with Ollama, see our guide to running models locally, or llama.cpp): no per-request cost and your prompts stay on your machine, but you need hardware that fits the model. Hugging Face is still where you download the weights.
  • A general static host such as GitHub Pages: fine for a plain web page demo, but it knows nothing about models or datasets. A Static Space gives you the same kind of page next to your model repo.
  • Another provider's own free tier: some AI companies offer free API access directly. Their limits change as often as these do; read their pages before comparing.

Tokens, secrets and public repos on Hugging Face

  • With Inference Providers, your prompt goes to Hugging Face and is then forwarded to the chosen provider, whose own terms apply.
  • A public Space or repo is visible to everyone, including its source code and commit history. Anything committed once stays in the history.
  • Never hard-code a token in your app. In a Space, put it in Settings as a secret: secrets cannot be read back, and are not copied when someone duplicates your Space. Variables are public.
  • If a token leaks, delete or refresh it at once on the tokens page (opens in a new tab). The docs also suggest passing tokens through environment variables, not typing them in commands.

Hugging Face free tier FAQ

Do I get free credits when I sign up?

Not according to the pricing page: free users have none. PRO has $2.00 a month.

Can I host a Gradio demo with no payment?

Only through the ZeroGPU route (up to 2 Spaces, account in good standing). Otherwise a Gradio Space needs a paid plan, and a Static Space is the free option.

Will my free Space stay online?

It sleeps after about two days without use and wakes when someone visits. It is not meant for an always-on service.

Is it still free if I go over a limit?

Rate limits return an error (429) until the window passes. For ZeroGPU, the extra-usage credits at $1 per 10 minutes (opens in a new tab) are for PRO, Team and Enterprise, not for free accounts. Check the docs for your case.

Checked against the official Hugging Face docs on 6 November 2026. Free tiers change often, so check the sources.