Hugging Face — the home of open models — gives you a single token for inference across dozens of partner providers. Inference Providers: hundreds of models, one account and one key, a credit-based spending system. We break down how it is organized, what is free, and where the practical limits lie.
How it works
One HF token routes requests to the partners (Novita, Hyperbolic, Together and others) through a single endpoint, router.huggingface.co. The models cover the whole HF catalog: Llama, Qwen, DeepSeek, Mistral, specialized ones. A quick check with a request:
curl https://router.huggingface.co/v1/chat/completions \
-H "Authorization: Bearer hf_ВАШ_ТОКЕН" \
-H "Content-Type: application/json" \
-d '{"model": "meta-llama/Llama-3.1-8B-Instruct",
"messages": [{"role": "user", "content": "Ответь одним словом: работает?"}]}'To create a token: HF profile → Settings → Access Tokens → Fine-grained with the Inference Providers permission. The account is free, and no card is required.
The free part
HF billing includes monthly free inference credits for all users (modest ones, and they run out fast) plus a split by model size: serverless inference is usually available for models under 10 GB — popular large exceptions occasionally degrade or become paid. A working strategy: small and mid-size models are free on credits; large ones go through the paid PRO subscription tier or direct partner keys.
The practical value: a single interface for comparing models (test ten tasks without dozens of registrations) and access to rare models that other aggregators do not have. Catalog details are in the provider directory.
The credit system and limits
Credits refresh monthly; spending depends on the provider and the model. Limits vary: some routes return honest headers, others silently slow down. It is enough for prototypes and tests; for permanent pipelines, the PRO subscription ($9/mo) multiplies the credits, or you take direct partner keys. Comparison with the alternatives: OpenRouter is more generous on the free pool, Mistral on tokens, HF on catalog breadth.
Role in the pipeline
Three roles: a showcase for comparing open models; a source of rare models (RAG-specialized ones, niche fine-tunes); a fallback route for families that rotate on other platforms. In the scheme of the rate-limit pie, HF is the “museum and warehouse”: not the main working layer, but an essential reference layer.
Practical case: comparing three models with one script
Since all partners sit behind a single endpoint, comparing models comes down to a loop: the request structure is the same, and only the model name changes. No separate registration with each provider is needed — one token covers all routes, and that is the platform’s main convenience. The script below runs the same question through three families from the catalog — Llama, Qwen and Mistral — and prints the answers one after another, so that they are easy to compare by eye.
for m in meta-llama/Llama-3.1-8B-Instruct Qwen/Qwen2.5-7B-Instruct mistralai/Mistral-7B-Instruct-v0.3; do
echo "=== $m ==="
curl -s https://router.huggingface.co/v1/chat/completions \
-H "Authorization: Bearer hf_ВАШ_ТОКЕН" \
-H "Content-Type: application/json" \
-d '{"model": "'"$m"'",
"messages": [{"role": "user", "content": "Сформулируй правило хорошего коммита одним предложением."}]}' \
| head -c 500
echo
doneCopy the exact model names from the model page on the Hub: repositories move and get renamed, and yesterday’s path may return an error today. If a route is unavailable, the model page will tell you which partners are serving it right now.
Watch three things. First, whether the route answered at all: a refusal or silence means the monthly credits are exhausted or the provider does not serve the model at your account tier. Second, whether the format held: ask for one sentence and judge how strictly it was followed — this is a quick test of instruction obedience, useful before serial tasks. Third, the speed by eye: with the same question, the difference between models is noticeable even without a stopwatch.
One nuance of the loop: the routes lead to different partners, and behavior under limits differs — some return honest headers with the remaining quota, others silently slow down. If in the middle of the run the answers suddenly become empty or short, the model is not to blame: a specific route has throttled. Repeat the block later or check that route separately — the picture will become clear.
Choose the candidates for the run according to the task. For drafts and routine replies, small models are enough — they barely touch the credits; for reasoning and long instructions, take mid-size and large ones, but gather them into a single session — then the monthly volume is spent predictably. The “under 10 GB” rule hints at which models are almost certainly available serverless and which will require the PRO tier or a direct partner key.
Put the results into a text log: model name, date, a short impression. In a couple of weeks the log turns into a personal reference that is more valuable than any review, because it was collected on your tasks and your prompt. This is exactly the role — a showcase for quick comparisons — that Inference Providers perform most naturally: a dozen models in an evening, zero new accounts, one token in the billing.
Frequently asked questions
How many free credits? A small monthly amount — enough for tests and light routine; the exact figures change, so look in the billing section.
Why is a large model unavailable serverless? The “under 10 GB” rule: heavy weights are not hosted for free; exceptions are periodic — check the model’s status.
HF versus OpenRouter? HF — the breadth of the open-model catalog and the niches; OpenRouter — stable free routes and flagships. Keeping both is rational.
Privacy? Requests go through partners — the policies differ; secrets stay out, as everywhere in the free segment.
Is a bank card needed to start? No: the account is free and is created without a card, and a token with the Inference Providers permission is issued in a couple of clicks from the profile settings. Payment details appear in your life only at the PRO tier or with a voluntary top-up of credits.
Does the endpoint work with OpenAI-compatible SDKs? Yes: the /v1/chat/completions path repeats the OpenAI format, so it is enough to change the base address and insert the HF token. Porting existing code takes minutes, and the same wrapper works for all partner routes at once.
The request returns an authorization error — what should I check? The token type and its permissions: you need a Fine-grained token with access to Inference Providers enabled, not just any key that came to hand. Recreate the token with the required permission and repeat the same request — most often that is enough.
Where can I see the credit balance? In the billing section of the account: the amounts refresh monthly and change from month to month, so it is better to check the exact figure on the spot. Take orders of magnitude from reviews, not exact values.
HF Inference Providers — “the key to the whole zoo”: one token, hundreds of models, zero registrations. Not the main layer of the pipeline, but indispensable for comparisons and rare models. Terms as of autumn 2026.
