Get Hugging Face model
Get a Hugging Face model with its downloads, tags, card, weights, base models and evaluation results. Pass the full repository id as `owner/name`, for…
Headers
Get your API keyAPI key (`sfk_...`)
Owner of the repository: a user or organization name.
pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{0,95}$
Repository name, without the owner.
pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{0,95}$
Branch, tag or commit. Default: the default branch (`main`).
min 1 chars · max 200 chars · pattern: ^[A-Za-z0-9][A-Za-z0-9._/-]*$
Extra blocks, comma-separated: `config` (config.json), `spaces` (Spaces that use the model) and `security` (scan result).
Endpoint-specific response payload.
Whether the item was found.
one of: found, not_found
The model when lookupStatus is `found`; otherwise null.
Repository id, `owner/name`.
Repository type.
one of: model, dataset, space
Stable repository id; survives renames.
Repository page URL.
Owner account name.
When the repository was created (ISO-8601).
When the repository last changed (ISO-8601).
Latest commit on the default branch.
Likes.
Downloads in the last 30 days.
Downloads since the repository was created.
Trending score.
Whether access needs approval: `false`, `auto` (accepted on request) or `manual` (reviewed by the owner).
Whether the repository has been disabled.
Tags: task, library, languages, licence and more.
Main task of a model, e.g. `text-generation`; null in dataset and Space results.
Library a model is made for, e.g. `transformers`; null in dataset and Space results.
Licence id taken from the tags, e.g. `mit`.
SDK of a Space, e.g. `gradio`; null in model and dataset results.
Parameter count of a model, when known; null in dataset and Space results.
Run state of a Space, e.g. `RUNNING` or `SLEEPING`; null in model and dataset results.
Language codes from the card.
Dataset ids the card names.
The models this one was built from.
How this model relates to its base models: `finetune`, `adapter`, `merge` or `quantized`.
Base model ids.
How many models are built on this one.
Adapters built on this model.
Finetunes of this model.
Merges that use this model.
Quantized versions of this model.
Weight sizes from the safetensors files.
Total parameters.
Parameters per data type, e.g. `{ "F32": 137022720 }`.
GGUF file facts, for models that ship GGUF files.
Model architecture.
Context length in tokens.
Total parameters.
Total size of the GGUF files in bytes.
Beginning-of-sequence token.
End-of-sequence token.
How the Transformers library loads the model.
Auto class that loads the model.
Pipeline task.
Processor class.
Hosted inference providers that serve the model.
Provider id.
Provider status, e.g. `live`.
The model's id at the provider.
Task the provider serves.
Whether the provider is the model's author.
Evaluation results published in the repository.
Evaluation file in the repository.
Whether the result is verified.
Pull request that added the result.
The evaluation entry as written.
Storage the repository uses, in bytes.
Mask token of a fill-mask model.
Example inputs shown on the model page.
The repository's card header (YAML front matter) as the author wrote it: licence, languages, datasets, base model, metrics and more.
The model's config.json. Only with `include=config`; otherwise null.
Ids of Spaces that use the model. Only with `include=spaces`; otherwise null.
Security scan result. Only with `include=security`; otherwise null.
Whether the security scans have finished.
Files the scans flagged.
File with a finding.
Severity of the finding.
What was found.
Metadata describing the request and billing outcome.
Unique request identifier for tracing this API call.
min 1 chars
Credits charged for this request.
≥ 0
Public API version that served the response.
one of: v1
Code example
curl "https://api.socialfetch.dev/v1/hugging-face/models/openai-community/gpt2" \
-H "x-api-key: YOUR_API_KEY"Responses
Model details.