Skip to content

Commit 9588bc6

Browse files
burtenshawSBrandeisVaibhavs10
authored
inference providers: add more detail to the billing page (#1799)
* add more detail to the billing page * Update docs/inference-providers/pricing.md Co-authored-by: Simon Brandeis <[email protected]> * remove mention of 'direct calls' * improving price table Co-authored-by: SBrandeis <[email protected]> * attempt to improve key explanation * Update docs/inference-providers/pricing.md Co-authored-by: vb <[email protected]> --------- Co-authored-by: Simon Brandeis <[email protected]> Co-authored-by: SBrandeis <[email protected]> Co-authored-by: vb <[email protected]>
1 parent 27ffea3 commit 9588bc6

File tree

1 file changed

+51
-19
lines changed

1 file changed

+51
-19
lines changed

docs/inference-providers/pricing.md

Lines changed: 51 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,79 @@
11
# Pricing and Billing
22

3-
Inference Providers is a production-ready service involving external partners and is therefore a paid product. However, as a Hugging Face user, you get monthly credits to run experiments. The amount of credits you get depends on your type of account:
3+
Access 200+ models from leading AI inference providers with centralized, transparent, pay-as-you-go pricing. No infrastructure management required—just pay for what you use, with no markup from Hugging Face.
44

5-
| Tier | Included monthly credits |
6-
| ---------------------------- | ------------------------------------ |
7-
| Free Users | subject to change, less than $0.10 |
8-
| PRO Users | $2.00 |
9-
| Enterprise Hub Organizations | $2.00 per seat, shared among members |
5+
## Free Credits to Get Started
6+
7+
Every Hugging Face user receives monthly credits to experiment with Inference Providers:
8+
9+
| Account Type | Monthly Credits | Extra usage (pay-as-you-go) |
10+
| ---------------------------- | --------------- | -------- |
11+
| Free Users | $0.10, subject to change | no |
12+
| PRO Users | $2.00 | yes |
13+
| Enterprise Hub Organizations | $2.00 per seat | yes |
14+
15+
<Tip>
16+
17+
Your monthly credits automatically apply when you route requests through Hugging Face. For Enterprise organizations, credits are shared among all members.
18+
19+
</Tip>
20+
21+
## How Billing Works: Choose Your Approach
22+
23+
Inference Providers offers flexibility in how you're billed. Understanding these options upfront helps you choose the best approach for your needs:
24+
25+
| Feature | **Routed by Hugging Face** | **Custom Provider Key** |
26+
| :--- | :--- | :--- |
27+
| **How it Works** | Your request routes through HF to the provider | You set a custom provider key in HF settings |
28+
| **Billing** | Pay-as-you-go on your HF account | Billed directly by the provider |
29+
| **Monthly Credits** | **✅ Yes** - Credits apply to eligible providers | **❌ No** - Credits don't apply |
30+
| **Provider Account Needed** | **❌ No** - We handle everything | **✅ Yes** - You need provider accounts |
31+
| **Best For** | Simplicity, experimentation, consolidated billing | More billing control, using non-integrated providers |
32+
| **Integration** | SDKs, Playground, widgets, Data AI Studio | SDKs, Playground, widgets, Data AI Studio |
33+
34+
### Which Option Should I Choose?
35+
36+
- **Start with Routed by Hugging Face** if you want simplicity and to use your monthly credits
37+
- **Use Custom Provider Key** if you need specific provider features or you're consistently using the same provider
38+
39+
## Pay-as-you-Go Details
1040

1141
To benefit from Enterprise Hub included credits, you need to explicitly specify the organization to be billed when performing the inference requests.
1242
See the [Organization Billing section](#organization-billing) below for more details.
1343

14-
## Pay-as-you-Go
44+
**PRO users and Enterprise Hub organizations** can continue using the API after exhausting their monthly credits. This ensures uninterrupted access to models for production workloads.
1545

16-
**PRO users and Enterprise Hub organizations** can continue using the API once their monthly included credits are exhausted. This billing model, known as "Pay-as-you-Go" (PAYG), is charged on top of the monthly subscription. PAYG is only available for providers that are integrated with our billing system. We're actively working to integrate all providers, but in the meantime, any providers that are not yet integrated will be blocked once the free-tier limit is reached.
1746

1847
If you have remaining credits, we estimate costs for providers that aren’t fully integrated with our billing system. These estimates are usually higher than the actual cost to prevent abuse, which is why PAYG is currently disabled for those providers.
1948

20-
You can track your spending on your [billing page](https://huggingface.co/settings/billing).
21-
2249
<Tip>
2350

2451
Hugging Face charges you the same rates as the provider, with no additional fees. We just pass through the provider costs directly.
2552

2653
</Tip>
2754

28-
## Routed requests vs direct calls
55+
You can track your spending anytime on your [billing page](https://huggingface.co/settings/billing).
2956

30-
The documentation above assumes you are making routed requests to external providers. In practice, there are 3 different ways to run inference, each with unique billing implications:
57+
## Hugging Face Billing vs Custom Provider Key (Detailed Comparison)
3158

32-
- **Routed Request**: This is the default method for using Inference Providers. Simply use the JavaScript or Python `InferenceClient`, or make raw HTTP requests with your Hugging Face User Access Token. Your request is automatically routed through Hugging Face to the provider's platform. No separate provider account is required, and billing is managed directly by Hugging Face. This approach lets you seamlessly switch between providers without additional setup.
59+
The documentation above assumes you are making routed requests to external providers. In practice, there are 3 different ways to run inference, each with unique billing implications:
3360

34-
- **Routed Request with Custom Key**: In your [settings page](https://huggingface.co/settings/inference-providers) on the Hub, you can configure a custom key for each provider. To use this option, you'll need to create an account on the provider's platform, and billing will be handled directly by that provider. Hugging Face won't charge you for the call. This method gives you more control over billing when experimenting with models on the Hub. When making a routed request with a custom key, your code remains unchanged—you'll still pass your Hugging Face User Access Token. Hugging Face will automatically swap the authentication when routing the request.
61+
- **Hugging Face Routed Requests**: This is the default method for using Inference Providers. Simply use the JavaScript or Python `InferenceClient`, or make raw HTTP requests with your Hugging Face User Access Token. Your request is automatically routed through Hugging Face to the provider's platform. No separate provider account is required, and billing is managed directly by Hugging Face. This approach lets you seamlessly switch between providers without additional setup.
3562

36-
- **Direct Calls**: If you provide a custom key when using the JavaScript or Python `InferenceClient`, the call will be made directly to the provider's platform. Billing is managed by the provider, and Hugging Face is not notified of the request. This option is ideal if you want to use the unified `InferenceClient` interface without routing through Hugging Face.
63+
- **Custom Provider Key**: You can bring your own provider key to use with the Inference Providers. This is useful if you already have an account with a provider and you want to use it with the Inference Providers. Hugging Face won't charge you for the call.
3764

3865
Here is a table that sums up what we've seen so far:
3966

4067
| | HF routing | Billed by | Free-tier included | Pay-as-you-go | Integration |
4168
| ---------------------------------- | ---------- | ------------ | ------------------ | ----------------------------------------------- | ----------------------------------------- |
42-
| **Routed request** | Yes | Hugging Face | Yes | Only for PRO users and for integrated providers | SDKs, Playground, widgets, Data AI Studio |
43-
| **Routed request with custom key** | Yes | Provider | No | Yes | SDKs, Playground, widgets, Data AI Studio |
44-
| **Direct call** | No | Provider | No | Yes | SDKs only |
69+
| **Routed Requests** | Yes | Hugging Face | Yes | Only for PRO users and for integrated providers | SDKs, Playground, widgets, Data AI Studio |
70+
| **Custom Provider Key** | Yes | Provider | No | Yes | SDKs, Playground, widgets, Data AI Studio |
71+
72+
<Tip>
73+
74+
You can set your custom provider key in the [settings page](https://huggingface.co/settings/inference-providers) on the Hub, or in the `InferenceClient` when using the JavaScript or Python SDKs. When making a routed request with a custom key, your code remains unchanged—you can still pass your Hugging Face User Access Token. Hugging Face will automatically swap the authentication when routing the request.
75+
76+
</Tip>
4577

4678
## HF-Inference cost
4779

@@ -51,7 +83,7 @@ For instance, a request to [black-forest-labs/FLUX.1-dev](https://huggingface.co
5183

5284
The `"hf-inference"` provider is currently the default provider when working with the JavaScript and Python SDKs. Note that this default might change in the future.
5385

54-
## Organization billing
86+
## Billing for Team and Enterprise organizations
5587

5688
For Enterprise Hub organizations, it is possible to centralize billing for all of your users. Each user still uses their own User Access Token but the requests are billed to your organization. This can be done by passing `"X-HF-Bill-To: my-org-name"` as a header in your HTTP requests.
5789

0 commit comments

Comments
 (0)