Skip to content
6 changes: 4 additions & 2 deletions docs/hub/_toctree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@
title: Tokens Management
- local: enterprise-hub-analytics
title: Publisher Analytics
- local: enterprise-hub-network-security
title: Network Security
- local: enterprise-hub-gating-group-collections
title: Gating Group Collections
- local: enterprise-hub-network-security
title: Network Security
- local: rate-limits
title: Rate Limits

- local: pro
title: PRO Plan
Expand Down
2 changes: 2 additions & 0 deletions docs/hub/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ You can also access the OpenAPI specification directly: [https://huggingface.co/
</a>
</div>

All API calls are subject to the HF-wide [Rate limits](./rate-limits). Upgrade your account if you need elevated, large-scale access.

## Repo listing API

The following endpoints help get information about models, datasets, and Spaces stored on the Hub.
Expand Down
4 changes: 2 additions & 2 deletions docs/hub/billing.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ Private repository storage above the [included storage](./storage-limits) will b
The PRO subscription unlocks essential features for serious users, including:

- Higher [storage capacity](./storage-limits) for public and private repositories
- Higher bandwidth and API rate limits
- Higher bandwidth and API [rate limits](./rate-limits)
- Included credits for [Inference Providers](/docs/inference-providers/)
- Higher tier for ZeroGPU Spaces usage
- Ability to create ZeroGPU Spaces and use Dev Mode
- Ability to publish Social Posts and Community Blogs
- Leverage the Data Studio on private datasets
- Leverage the [Data Studio](./datasets-viewer) on private datasets
- Run and schedule serverless [CPU/ GPU Jobs](https://huggingface.co/docs/huggingface_hub/en/guides/jobs)

View the full list of benefits at https://huggingface.co/pro then subscribe over at https://huggingface.co/subscribe/pro
Expand Down
3 changes: 2 additions & 1 deletion docs/hub/enterprise-hub.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ In this section we will document the following Enterprise Hub features:
- [Advanced Security](./enterprise-hub-advanced-security)
- [Tokens Management](./enterprise-hub-tokens-management)
- [Publisher Analytics](./enterprise-hub-analytics)
- [Network Security](./enterprise-hub-network-security)
- [Gating Group Collections](./enterprise-hub-gating-group-collections)
- [Network Security](./enterprise-hub-network-security)
- [Higher Rate limits](./rate-limits)

Finally, Team & Enterprise plans include 1TB of [private repository storage](./storage-limits) per seat in the subscription, i.e. if your organization has 40 members, then you have 40TB included storage for your private models and datasets.
1 change: 1 addition & 0 deletions docs/hub/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ The Hugging Face Hub is a platform with over 1.7M models, 400k datasets, and 600
<a class="no-underline! hover:opacity-60 transform transition-colors hover:translate-x-px" href="./enterprise-hub-advanced-security">Advanced Security</a>
<a class="no-underline! hover:opacity-60 transform transition-colors hover:translate-x-px" href="./enterprise-hub-tokens-management">Tokens Management</a>
<a class="no-underline! hover:opacity-60 transform transition-colors hover:translate-x-px" href="./enterprise-hub-network-security">Network Security</a>
<a class="no-underline! hover:opacity-60 transform transition-colors hover:translate-x-px" href="./rate-limits">Rate Limits</a>
</div>

<div class="group flex flex-col space-y-2 rounded-xl border border-orange-100 bg-linear-to-br from-orange-50 dark:bg-none px-6 py-4 transition-colors hover:shadow-sm dark:border-orange-700">
Expand Down
4 changes: 2 additions & 2 deletions docs/hub/pro.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
The PRO subscription unlocks essential features for serious users, including:

- Higher [storage capacity](./storage-limits) for public and private repositories
- Higher bandwidth and API rate limits
- Higher bandwidth and API [rate limits](./rate-limits)
- Included credits for [Inference Providers](/docs/inference-providers/)
- Higher tier for [ZeroGPU Spaces](./spaces-zerogpu) usage
- Ability to create ZeroGPU Spaces and use [Dev Mode](./spaces-dev-mode)
- Ability to publish Social Posts and Community Blogs
- Leverage the Data Studio on private datasets
- Leverage the [Data Studio](./datasets-viewer) on private datasets
- Run and schedule serverless [CPU/ GPU Jobs](https://huggingface.co/docs/huggingface_hub/en/guides/jobs)

View the full list of benefits at **https://huggingface.co/pro** then subscribe over at https://huggingface.co/subscribe/pro
91 changes: 91 additions & 0 deletions docs/hub/rate-limits.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# Hub Rate limits

To protect our platform's integrity and make sure we are able to scale our service to as many AI community members as possible, we enforce rate limits on all requests made to the HF Hub.

We define different rate limits for distinct classes of requests. We distinguish three main buckets:

- **Hub APIs**
- e.g. model or dataset search, repo creation, user management, etc. Note: all those endpoints are documented in [Hub API Endpoints](./api).
- **Resolvers**
- They're all the URLs that contain a `/resolve/` segment in their path, which serve user-generated content from the Hub. Concretely, those are the URLs that are constructed by open source libraries (transformers, datasets, vLLM, llama.cpp, …) or AI applications (LM Studio, Jan, ollama, …) to download model/dataset files from HF.
- Because they are very heavily used by the community, and because we optimize our infrastructure to serve them with high efficiency, rate limits for Resolvers are the highest ones.
- **Pages**
- All the Web pages we host on huggingface.co. Usually Web browsing is browsing made by humans hence rate limits don't need to be as high as programmatic endpoints like the two former buckets.

> [!TIP]
> All values are defined over 5-minute windows, which allows for some level of "burstiness" from an application or developer's point of view.
If you, your organization, or your application need higher rate limits, we encourage you to upgrade your account to PRO, Team, or Enterprise. We prioritize support requests from PRO, Team, and Enterprise customers – see built-in limits in [Rate limit Tiers](#rate-limit-tiers).

## Billing dashboard

At any point in time, you can check your rate limit status on your (or your org’s) Billing page: https://huggingface.co/settings/billing

![dashboard for rate limits](https://cdn-uploads.huggingface.co/production/uploads/5dd96eb166059660ed1ee413/0pzQQyuVG3c9tWjCqrX9Y.png)

On the right side, you will see three gauges, one for each bucket of Rate limiting.

Each bucket presents the number of current (last 5 minutes) requests, and the number of allowed requests based on your user account or organization plan.

Whenever you are above the limit in the past 5 minutes (the view is updated in real-time), the bar will turn red.

Note: You can use the context switcher to easily switch between your user account and your orgs.

## HTTP Headers

Whenever you or your organization hits a rate limit, you will receive a **429** `Too Many Requests` HTTP error.

We implement the mechanism described in the [IETF draft](https://datatracker.ietf.org/doc/draft-ietf-httpapi-ratelimit-headers/) titled “RateLimit HTTP header fields for HTTP” (also known as `draft-ietf-httpapi-ratelimit-headers`).

The goal is to define standardized HTTP headers that servers can use to advertise quota / rate-limit policies and communicate current usage / limits to clients so that they can avoid being throttled.

Precisely, we implement the following headers:

| Header | Purpose / Meaning |
| ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| **`RateLimit-Policy`** | Carries the rate limit policy itself (e.g. “100 requests per 5 minutes”). It’s informative; shows what policy the client is subject to. |
| **`RateLimit-Limit`** | The total allowed rate limit for the current window. “How many requests (of this type) you’re allowed.” |
| **`RateLimit-Remaining`** | How many requests of this type you have left in the current window. |
| **`RateLimit-Reset`** | Number of seconds until the rate limit window resets (or until quota is refreshed). Uses a “delta-seconds” format to reduce clock sync issues. |

## Rate limit Tiers

Here are the current rate limiting values (in September '25) based on your plan:

| Plan | API | Resolvers | Pages |
| ------------------------------------------------------------------------- | -------- | --------- | ------ |
| Anonymous user (per IP address) | 500 \* | 3,000 \* | 100 \* |
| Free user | 1,000 \* | 5,000 \* | 200 \* |
| PRO user | 2,500 | 12,000 | 400 |
| Team organization | 3,000 | 15,000 | 400 |
| Enterprise organization | 6,000 | 30,000 | 600 |
| Enterprise Plus organization | 10,000 | 50,000 | 1,000 |
| Enterprise Plus organization <br> When Organization IP Ranges are defined | 100,000 | 500,000 | 10,000 |
| Academia Hub organization | 2,500 | 12,000 | 400 |

\* Anonymous and Free users are subject to change over time depending on platform health 🤞

## What if I get rate-limited

First, make sure you are always passing a `HF_TOKEN`, and it gets passed downstream to all libraries or applications you might be using that downloads _stuff_ from the Hub.

This is the number one reason users get rate limited and is a very easy fix.

If you're sure you're passing a `HF_TOKEN`, you can:

- spread out your requests over longer periods of time
- replace Hub API calls with Resolver calls, whenever possible (Resolver rate limits are much higher and much more optimized).
- upgrade to PRO, Team, or Enterprise.

## Granular user action Rate limits

In addition to those main classes of rate limits, we enforce limits on certain specific kinds of user actions, like:

- repo creation
- repo commits
- discussions and comments
- moderation actions
- etc.

We don't currently document the rate limits for those specific actions, given they tend to change over time more often. If you get quota errors, we encourage you to upgrade your account to PRO, Team, or Enterprise.
Feel free to get in touch with us via the support team.
2 changes: 1 addition & 1 deletion docs/hub/search.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Search

You can now easily search anything on the Hub with **Full-text search**. We index model cards, dataset cards, and Spaces app.py files.
You can easily search anything on the Hub with **Full-text search**. We index model cards, dataset cards, and Spaces app.py files.

Go directly to https://huggingface.co/search or, using the search bar at the top of https://huggingface.co, you can select "Try Full-text search" to help find what you seek on the Hub across models, datasets, and Spaces:

Expand Down
2 changes: 1 addition & 1 deletion docs/hub/webhooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ This can be helpful if accessing the HTTP headers of the request is complicated

Each Webhook is limited to 1,000 triggers per 24 hours. You can view your usage in the Webhook settings page in the "Activity" tab.

If you need to increase the number of triggers for your Webhook, contact us at [email protected].
If you need to increase the number of triggers for your Webhook, upgrade to PRO, Team or Enterprise and contact us at [email protected].

## Developing your Webhooks

Expand Down