Search ML Models
hf.hub.modelsSearch over 1 million machine learning models on HuggingFace Hub. Filter by model name, task (like text-generation), or library (like transformers). Retrieve model ID, downloads, likes, and pipeline tag. Results sorted by downloads.
Instructions
Search 1M+ ML models on HuggingFace Hub by name, task (text-generation, image-classification, translation), or library (transformers, diffusers). Returns model ID, downloads, likes, pipeline tag. Sorted by downloads.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | Yes | Search query — model name or keyword (e.g. "llama", "stable-diffusion", "whisper") | |
| task | No | Filter by ML task: text-generation, image-classification, translation, text-to-image, automatic-speech-recognition, etc. | |
| library | No | Filter by framework: transformers, diffusers, sentence-transformers, gguf, etc. | |
| limit | No | Number of results (1-20, default 10) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. | |
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. |