# Hugging Face Inference Providers

CreateWithAI Hub page: https://createwithaihub.com/inference/hugging-face-inference-providers
Latest version of this file: https://createwithaihub.com/inference/hugging-face-inference-providers.md

- Type: Tool · Category: Endpoints & Inference
- Publisher: Hugging Face
- Pricing: Paid
- Runs on: API (cloud)

One Hugging Face token to call open models served by partner providers, with automatic failover and no markup.

Inference Providers is Hugging Face's serverless API that routes requests for open models to partner providers such as Cerebras, Groq, Together AI, Replicate, fal and others. It covers chat, image and video generation, embeddings, speech recognition and classic NLP tasks, with an OpenAI-compatible endpoint for chat. Billing is pay-as-you-go at provider rates; PRO, Team and Enterprise accounts get monthly included credits.

Useful for: Calling many open models from one SDK and one token, or switching providers for the same model by price or speed without changing code.

## Key features

- Routing across partner providers with automatic failover
- OpenAI-compatible chat endpoint at https://router.huggingface.co/v1
- Provider policy suffixes such as :fastest and :cheapest
- Python (huggingface_hub) and JavaScript (@huggingface/inference) clients
- Text, image, video, embeddings and speech tasks
- Provider rates passed through without markup

## Connection

- Model families: DeepSeek, FLUX
- Modality: Text, Image, Audio, Video, Embeddings
- API compatibility: OpenAI-compatible
- Kind: Router / aggregator

## Before you start

- Hugging Face account and fine-grained token with Inference Providers permission

## Install steps from the official documentation

Python client:

```
pip install huggingface_hub
```

JavaScript client:

```
npm install @huggingface/inference
```

## Limitations

- Free accounts get no included credits and must purchase credits
- The OpenAI-compatible endpoint supports chat completion only; other tasks need the Hugging Face clients

## Official links

- Website: https://huggingface.co/inference/models
- Documentation: https://huggingface.co/docs/inference-providers/index
- Source: https://huggingface.co/docs/inference-providers/index (What it is, partner providers, OpenAI-compatible endpoint, tasks, client install commands, routing policies)
- Source: https://huggingface.co/docs/inference-providers/pricing (No credits for free users, monthly credits for PRO/Team/Enterprise, pass-through pricing)
