Hugging Face

List Hugging Face inference models

List the Hugging Face models that inference providers host.

GET/v1/hugging-face/inference-providers/models
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
2
querystringquery

Only models whose id contains this text.

min 1 chars · max 100 chars

providerstringquery

Only models this provider serves.

pattern: ^[a-z0-9-]{1,40}$

Response fields
27

Endpoint-specific response payload.

datalookupStatus
string

Whether the item was found.

one of: found, not_found

Models served by hosted inference providers.

datamodels[]id
string

Model id.

datamodels[]url
string

Model page URL.

datamodels[]owner
stringnullable

Model owner.

datamodels[]createdAt
stringnullable

When the model was listed (ISO-8601).

What the model accepts, e.g. `text`, `image`.

datamodels[]inputModalities[]
stringoptional

What the model produces.

datamodels[]outputModalities[]
stringoptional

Providers that serve the model, with price and speed.

datamodels[]providers[]provider
string

Provider id.

datamodels[]providers[]status
stringnullable

Provider status, e.g. `live`.

datamodels[]providers[]contextLength
integernullable

Context window in tokens.

datamodels[]providers[]inputPricePerMillionTokens
numbernullable

Price per million input tokens, in US dollars.

datamodels[]providers[]outputPricePerMillionTokens
numbernullable

Price per million output tokens, in US dollars.

datamodels[]providers[]isFree
booleannullable

Whether the provider serves the model for free.

datamodels[]providers[]supportsTools
booleannullable

Whether tool calls are supported, when the provider reports it.

datamodels[]providers[]supportsStructuredOutput
booleannullable

Whether structured output is supported, when the provider reports it.

datamodels[]providers[]firstTokenLatencyMs
numbernullable

Time to the first token in milliseconds.

datamodels[]providers[]tokensPerSecond
numbernullable

Throughput in tokens per second.

datamodels[]providers[]isModelAuthor
booleannullable

Whether the provider is the model's author.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

Code example

curl "https://api.socialfetch.dev/v1/hugging-face/inference-providers/models" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Hosted inference models.