> **For coding agents and LLMs:** This is one Social Fetch marketing page (markdown export). For API orientation start with [`/llms.txt`](https://www.socialfetch.dev/llms.txt); for auth and crawl rules use [`/agents.txt`](https://www.socialfetch.dev/agents.txt); for every operation use [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt).

## This page

- **On-site (HTML):** <https://www.socialfetch.dev/platforms/hugging-face/inference-providers-models>
- **Markdown (.mdx) URL:** <https://www.socialfetch.dev/platforms/hugging-face/inference-providers-models.mdx>

---

# Hugging Face Hosted Models API

Models served by hosted inference providers, with price per million tokens, context length and speed.

`GET /v1/hugging-face/inference-providers/models` returns `models`. Each model has `id`, `url`, `owner`, `createdAt`, `inputModalities`, `outputModalities` and a `providers` list. Each provider entry has `provider`, `status`, `contextLength`, `inputPricePerMillionTokens`, `outputPricePerMillionTokens`, `isFree`, `supportsTools`, `supportsStructuredOutput`, `firstTokenLatencyMs`, `tokensPerSecond` and `isModelAuthor`.

Use `query` to keep models whose id contains a text and `provider` to keep one provider. This is a priced catalogue, so it is the right call before choosing where to run a model rather than a model search.

## Request

- **Endpoint:** `GET /v1/hugging-face/inference-providers/models`
- **Credits:** 1 credit
Failed requests are free
- **Input:** by provider or query
- **Full reference:** [docs](https://www.socialfetch.dev/docs/api/v1/hugging-face/inference-providers/models/get)
- **Platform page:** [/platforms/hugging-face](https://www.socialfetch.dev/platforms/hugging-face)

## FAQ

### Are prices per token or per million tokens?

Per million tokens, in US dollars, separately for input and output. isFree tells you when a provider charges nothing.

### Can I compare providers for one model?

Yes. Read the model's providers list and compare inputPricePerMillionTokens, outputPricePerMillionTokens, contextLength, firstTokenLatencyMs and tokensPerSecond.

### Does this list every model on the platform?

No. It lists models that hosted inference providers serve. Use the models search for the full catalogue.

### How much does the catalogue cost?

Pricing is documented on the operation in the API registry (shown on this page). Confirm on every response with meta.creditsCharged: that field is the billing source of truth.
