Host your Streamlit app for your team.

Try free
← Blog

Hugging Face Spaces: What Is Free, What Costs Money, and GPUs From $0.40 an Hour (2026)

The free CPU Basic machine has 2 vCPU and 16 GB, but a free account can now create only static Spaces and two Gradio Spaces on ZeroGPU; Gradio and Docker Spaces need PRO at $9 a month. The full hardware price list from $0.03 to $23.50 an hour, sleep after 48 hours, ZeroGPU quotas, storage, Streamlit's move to Docker, and how much of 16 GB a small app actually used when we ran one.

Fastero Dev TeamFastero Dev Team2026-12-02

We read Hugging Face's Spaces documentation and pricing page on 2 December 2026, line by line, for what a Space gets for nothing and what each upgrade costs. Then we ran four small apps on a Windows 11 laptop the way a Space runs them, one server process each, in Gradio 6.33.0 and Streamlit 1.68.0 on Python 3.14.3, and measured their memory with psutil while a headless browser played up to five visitors.

The short answer: Hugging Face's free CPU Basic machine has 2 vCPU, 16 GB of RAM and 50 GB of disk that is wiped on restart, and a Space on it sleeps after 48 hours without a visitor. But a free personal account can now create only static HTML Spaces and up to 2 Gradio Spaces on ZeroGPU, Hugging Face's shared free GPU. Gradio and Docker Spaces on CPU need PRO, $9 a month, or Team at $20 per user. Paid hardware runs from $0.03 an hour (8 vCPU, 32 GB) and $0.40 (a 16 GB T4) to $23.50, billed by the minute. Streamlit now runs only as a Docker Space. Checked 2 December 2026.

Fastero

Host your Streamlit app for your team.

Deploy from GitHub with your team's login and secrets built in — no Docker, no auth proxy.

Try free →

Is Hugging Face Spaces free? What a free account gets, and what PRO adds

Partly: the hardware has a free tier, but creating most kinds of Space no longer does. From Hugging Face's Spaces overview, ZeroGPU docs and pricing page, read 2 December 2026:

Free account PRO, $9 a month Team, $20 per user a month
Spaces you can create Static HTML; up to 2 Gradio Spaces on ZeroGPU Static, Gradio and Docker; up to 10 on ZeroGPU Gradio and Docker for the organization; up to 50 on ZeroGPU
Gradio or Docker Space on free CPU Basic (2 vCPU, 16 GB) No Yes Yes
ZeroGPU time a day 5 minutes 40 minutes, then $1 per 10 minutes 40 minutes, then $1 per 10 minutes
Protected visibility, custom domain, Dev Mode No Yes Yes
Private storage included 100 GB 1 TB, then $18 per TB a month 1 TB per seat

The first row is the change that catches people out. The overview now says: "Static Spaces are free for everyone. Gradio and Docker Spaces run on compute and require a paid plan to create: PRO for personal accounts, Team or Enterprise for organizations. Free personal accounts in good standing can still host up to 2 Gradio Spaces running on ZeroGPU." Good standing means "verified email, account older than 30 days". Static Spaces can be plain HTML or a JavaScript app built with a command such as npm run build.

Using other people's Spaces stays free: "ZeroGPU Spaces are available to use for free to all users", within a GPU quota of 2 minutes a day without signing in. And Hugging Face still gives community GPU grants, applied for from a Space's settings, to demos that make the cut.

Not every Hugging Face page has caught up. Gradio's sharing guide still says "Hugging Face Spaces provides the infrastructure to permanently host your machine learning model for free!" The Spaces docs set the rules, and the Spaces changelog doesn't date the change.

Hugging Face Spaces pricing: every hardware option

The full list from the Spaces GPU docs, which matches the pricing page:

Hardware vCPU RAM GPU memory Price an hour
CPU Basic 2 16 GB None Free
CPU Upgrade 8 32 GB None $0.03
T4 small 4 15 GB 16 GB $0.40
T4 medium 8 30 GB 16 GB $0.60
1x L4 8 30 GB 24 GB $0.80
A10G small 4 15 GB 24 GB $1.00
A10G large 12 46 GB 24 GB $1.50
1x L40S 8 62 GB 48 GB $1.80
A100 large 12 142 GB 80 GB $2.50
1x RTX PRO 6000 23 256 GB 96 GB $2.75
2x A10G large 24 92 GB 48 GB $3.00
4x L4 48 186 GB 96 GB $3.80
4x A10G large 48 184 GB 96 GB $5.00
2x RTX PRO 6000 46 512 GB 192 GB $5.50
4x L40S 48 382 GB 192 GB $8.30
4x A100 48 568 GB 320 GB $10.00
4x RTX PRO 6000 92 1,024 GB 384 GB $11.00
8x A100 96 1,136 GB 640 GB $20.00
8x RTX PRO 6000 184 2,048 GB 768 GB $22.00
8x L40S 192 1,534 GB 384 GB $23.50

Disk comes with the machine, from 50 GB on CPU and the small T4 up to 8,000 GB on eight A100s, and it is wiped whenever the Space restarts. The H100 options were removed in December 2025.

Scatter chart of Hugging Face Spaces single-GPU hardware, price per hour against GPU memory: T4 small 16 GB at $0.40, T4 medium 16 GB at $0.60, L4 24 GB at $0.80, A10G small 24 GB at $1.00, A10G large 24 GB at $1.50, L40S 48 GB at $1.80, A100 large 80 GB at $2.50 and RTX PRO 6000 96 GB at $2.75, with ZeroGPU's 48 GB share at $0

Single-GPU hardware for a Space, price per hour against GPU memory, from Hugging Face's Spaces docs and pricing page, read 2 December 2026.

Per GB of GPU memory, the cheapest are at the two ends: 2.5 cents an hour on the T4 small and 2.9 on the RTX PRO 6000, against 6.3 on the A10G large.

"Billing on Spaces is based on hardware usage and is computed by the minute", whether anyone uses the Space or not, and only while it is starting or running: "there is no cost during build." Upgraded hardware never sleeps unless you set a custom sleep time, so a forgotten GPU Space bills all month. Pausing it or switching back to CPU Basic stops the bill, and each replica, for spreading traffic over several copies, is billed separately.

Bar chart of the monthly cost to keep a personal Hugging Face Space running: static HTML and Gradio on ZeroGPU free, CPU Basic $9 for the PRO plan, CPU Upgrade $31, T4 small $297, L4 $585, A10G small $729, L40S $1,305, A100 large $1,809 and RTX PRO 6000 $1,989

Cost of a personal Space running all month: PRO's $9 plus each machine's monthly price from huggingface.co/pricing (hourly price times 720 hours), read 2 December 2026.

How much of the free 16 GB does a small app use?

Less than 2%. We ran four small apps the way a Space does, as one server process: a one-box Gradio "hello" app, a Gradio demo of a scikit-learn random forest (100 trees, trained at start-up on 20,000 invented rows), and the same two in Streamlit. Each ran three times while we recorded the server's memory idle, then with one and five browser tabs making five requests each.

The model demo in Gradio:

import gradio as gr
from sklearn.datasets import make_classification
from sklearn.ensemble import RandomForestClassifier
 
X, y = make_classification(n_samples=20_000, n_features=4, n_informative=3,
                           n_redundant=0, random_state=0)
model = RandomForestClassifier(n_estimators=100, random_state=0).fit(X, y)
 
def predict(a, b, c, d):
    p = model.predict_proba([[a, b, c, d]])[0]
    return {"class 0": float(p[0]), "class 1": float(p[1])}
 
demo = gr.Interface(predict, [gr.Slider(-3, 3, 0, label=n) for n in "abcd"],
                    gr.Label(label="Prediction"), title="Tiny classifier",
                    flagging_mode="never")
demo.launch()  # locally we also passed server_name and server_port

The Tiny classifier Gradio app running on localhost, with four sliders labelled a to d, Clear and Submit buttons, and a prediction of class 1

The Gradio model demo running on localhost with Gradio 6.33.0. Invented data.

App Idle Peak with up to 5 visitors Share of 16 GB
Gradio: hello app 169 MB 178 MB 1.1%
Gradio: model demo 268 MB 278 MB 1.7%
Streamlit: hello app 72 MB 170 MB 1.0%
Streamlit: model demo 72 MB 264 MB 1.6%

Bar chart of four small apps' peak server memory against a free Space's 16 GB: Gradio hello app 178 MB (1.1%), Gradio model demo 278 MB (1.7%), Streamlit hello app 170 MB (1.0%) and Streamlit model demo 264 MB (1.6%), all far below Streamlit Community Cloud's 2.7 GB

Server memory of four small apps, median of three runs on Windows 11 with Python 3.14.3, Gradio 6.33.0, Streamlit 1.68.0 and scikit-learn 1.9.1. Invented data.

Three things stand out:

  • The framework costs about 170 MB. Gradio loads everything at start-up, so its hello app sat at 169 MB before anyone visited. Streamlit idled at 72 MB and reached 170 MB on the first visit, when the script imported pandas, NumPy and Altair.
  • A small scikit-learn model added about 100 MB in either framework, and going from one visitor to five added under 2 MB.
  • The rest of the 16 GB is room for a model. As arithmetic, not a measurement: weights take 2 bytes per parameter at 16-bit precision, so a 1-billion-parameter model needs about 2 GB and a 7-billion-parameter one about 14 GB, nearly all of CPU Basic. Fitting is not the same as running quickly on 2 vCPU; that's what the GPUs are for.

When does a Space sleep, and how does it wake up?

On CPU Basic, a Space "will go to sleep if inactive for more than a set time (currently, 48 hours). Anyone visiting your Space will restart it automatically." The visitor waits while it starts, but nobody has to click a button, as on Streamlit Community Cloud, which sleeps apps after 12 hours (why a Streamlit app keeps sleeping).

Changing that takes paid hardware, where the default flips: "By default, an upgraded Space will never go to sleep." Anyone with write access can also pause a Space, and "Paused time is not billed."

ZeroGPU: free GPU time, with a daily quota

ZeroGPU lends a Space a GPU only while a function decorated with @spaces.GPU runs, then hands it back. The GPU is now an Nvidia RTX PRO 6000 Blackwell: the default size, large, is half of one with 48 GB, and xlarge is the whole card with 96 GB, at twice the quota cost.

Who is using the Space GPU time included a day Queue priority
Not signed in 2 minutes Low
Free account 5 minutes Medium
PRO or Team member 40 minutes, then $1 per 10 minutes from credits Highest
Enterprise member 60 minutes, then $1 per 10 minutes from credits Highest

The quota is the visitor's, not the owner's, and "Included daily quota resets exactly 24 hours after your first GPU usage." A call gets 60 seconds of GPU unless it asks for more. The limits: "Currently, ZeroGPU Spaces are exclusively compatible with the Gradio SDK", PyTorch from 2.8.0, no torch.compile (ahead-of-time compilation works), and Python 3.12.12 or 3.10.13.

Host your Streamlit app for your team.

Start free →

Storage: what survives a restart

Nothing on the Space's own disk: "This disk space is ephemeral, meaning its content will be lost if your Space restarts or is stopped." The old paid persistent-storage tiers are gone; the configuration reference now says "The persistent storage feature is no longer available so this setting will be ignored."

To keep files, mount a Storage Bucket, Hugging Face's S3-like store, as a volume. Buckets count against your account's storage: 100 GB private on a free account, 1 TB on PRO, then $18 per TB a month. A dataset repository or an outside database also works.

Private Spaces, secrets and sign-in

A Space is public, protected (code private, app public; paid plans only, since 18 March 2026) or private: "Private Spaces are fully private: the source code and the running app are only accessible to the owner and collaborators." Everyone else gets a 404, so every viewer needs a Hugging Face account with access. Custom domains work on public and protected Spaces only.

Variables are public and copied when someone duplicates the Space; secrets "are private and their value cannot be read from the Space’s settings page once set", and duplicates don't get them. In Gradio and Docker Spaces both arrive as environment variables. Two lines in the README add Sign in with Hugging Face, limited to one organization's members:

hf_oauth: true
hf_oauth_authorized_org: your-org-name

Which SDKs can a Space use in 2026: Gradio, Docker, static, and Streamlit?

The configuration reference says the SDK "Can be either gradio, docker, or static." Streamlit left the list on 30 April 2025, by Hugging Face's changelog, and its page now says: "If you wish to deploy a Space with Streamlit, please pick the Docker SDK, then use the Streamlit template."

So a Streamlit app on Spaces is a Docker Space, which on a personal account needs PRO. The README sets the SDK and the app's port (7860 by default):

---
title: My Streamlit app
sdk: docker
app_port: 8501
---

And a Dockerfile in the shape Hugging Face's Docker docs ask for, running as user 1000:

FROM python:3.12-slim
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY --chown=user requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY --chown=user . .
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]

We built it locally with the Streamlit model demo as app.py and a requirements file pinning Streamlit 1.68.0 and scikit-learn 1.9.1, plus psutil to measure it. The build took 109 seconds, and the app answered on port 8501 2.4 seconds after the container started. Inside it, on Linux with Python 3.12.16, the server used 65 MB idle and 282 MB with visitors, 7% more than the same app on Windows.

For a Gradio Space, set python_version in the README: it "Defaults to 3.10.", which stopped getting security fixes on 1 October 2026. The two frameworks side by side: Streamlit vs Gradio.

Limits people hit on Spaces

  • Only Static on a new free account. ZeroGPU hosting opens at 30 days old with a verified email; CPU Gradio or Docker Spaces need PRO.
  • Files vanish. Uploads, caches and SQLite files go at every restart, rebuild and sleep.
  • Outbound connections fail. Only ports 80, 443 and 8080 are open: "Any requests going to other ports will be blocked." A Postgres database on 5432 or MySQL on 3306 is out of reach.
  • No GPU at build time. In a Docker Space, CUDA checks fail during the build and work only when the app runs.
  • Permission errors in Docker. The container runs as user 1000, so COPY needs --chown=user.

When a Space is the right home, and when it isn't

Spaces is the right home for public machine learning demos: a model gets a public page, an API, a place in the Hugging Face community and a GPU from $0.40 an hour, or free GPU time through ZeroGPU. Raw CPU is cheap too, 8 vCPU and 32 GB for $0.03 an hour.

It's a poorer fit for a private app a team uses at work: every viewer needs a Hugging Face account added to the Space, the disk forgets everything at each restart, only three ports are open, and a CPU app no longer has a free tier. Other homes for a Streamlit app: Streamlit's free Community Cloud, paid hosts compared, and deploying it yourself.

Where Fastero fits

Fastero is an AI and data platform where people and AI agents work together on a team's data. It hosts Streamlit apps for the case Spaces is weakest at:

  • Private to the team. Every app sits behind the organization's login; colleagues sign in with their own account, and viewers are free.
  • Imported from Git. Paste the repository's URL, and st.secrets works as it does locally.
  • Awake when needed. On Free an app sleeps when idle and wakes when opened, with 8 hours of app compute a day; always-on apps are part of Pro, $20 per editor a month (pricing).
  • Bigger machines by the hour. The standard machine, 1 CPU and 2 GB, is included. On Pro an app can use Medium (2 CPUs, 8 GB) at $0.20 an hour, Large (4 CPUs, 16 GB) at $0.40 or Extra large (8 CPUs, 32 GB) at $0.80, charged by the second from money added to the balance.

A Streamlit sales explorer app hosted on Fastero, with category, channel, country and segment filters, monthly revenue metrics and a bar chart of revenue by month

A Streamlit app hosted on Fastero, on a demo workspace's invented sales data.

Public model demos, Gradio apps and anything that needs a GPU belong on Spaces.

FAQ

Is Hugging Face Spaces still free?

Partly. Static HTML Spaces are free, and a free personal account in good standing can host 2 Gradio Spaces on ZeroGPU. A Gradio or Docker Space on CPU needs PRO ($9 a month) or Team to create, though the CPU Basic hardware, 2 vCPU and 16 GB of RAM, has no hourly charge.

How much does a GPU on Hugging Face Spaces cost?

From $0.40 an hour for a 16 GB T4, billed by the minute, through $2.50 for an 80 GB A100, up to $23.50 for eight L40S GPUs. ZeroGPU is free within a daily quota: 5 minutes on a free account, 40 on PRO.

How long before a Hugging Face Space goes to sleep?

On free CPU Basic hardware, after 48 hours without visitors; it restarts when someone opens it. Paid hardware never sleeps unless you set a sleep time, and a sleeping or paused Space isn't billed.

Can I host a Streamlit app on Hugging Face Spaces?

Yes, as a Docker Space: Hugging Face deprecated its built-in Streamlit SDK on 30 April 2025. On a personal account, creating a Docker Space needs PRO at $9 a month.

Does a Hugging Face Space keep files after a restart?

No. The Space's disk is ephemeral and the old persistent storage add-on is no longer available. Attach a Storage Bucket as a volume, write to a dataset repository, or use an external database.

What does Hugging Face PRO include?

For $9 a month: Gradio and Docker Spaces, up to 10 ZeroGPU Spaces, 8 times the ZeroGPU quota with top queue priority, Dev Mode over SSH or VS Code, protected Spaces, custom domains, 1 TB of private storage and $2 of credits a month.

Sources

Read on 2 December 2026:


Try Fastero free: host a Streamlit app behind your team's login, imported from its Git repository. No credit card required.

Host your Streamlit app for your team.

Deploy from GitHub with org login and secrets built in — no Docker, no auth proxy. No credit card required.

Follow Fastero on LinkedIn for new articles and examples.