# Hugging face model search

Search machine-learning models on the Hugging Face Hub by name, author, task (pipeline_tag) or tag (library, licence, base model, language): model id, task. Takes search, author, pipeline tag and more, all optional.

Search machine-learning models on the Hugging Face Hub by name, author, task (pipeline_tag) or tag (library, licence, base model, language): model id, task, library, recent downloads, likes, tags (licence, base model, languages, arXiv ids) and creation date. Sort by downloads, likes or trending score to find popular or rising models.

- Tool ID: `huggingface/models-search`
- Name in the catalog: Hugging Face model search
- Provider: [Hugging Face](/providers/huggingface.md)
- Capability: [GitHub, npm & PyPI](/tools/developer-data/code.md)
- Price: no charge per call
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

No charge per call. A workspace is still needed so your agent can call it.


```json
{
  "model": "per_call",
  "amountUsd": 0
}
```

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "search": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100,
      "description": "Words in the model id, e.g. 'qwen'"
    },
    "author": {
      "type": "string",
      "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,95}$",
      "description": "User or organisation, e.g. 'mistralai'"
    },
    "pipeline_tag": {
      "type": "string",
      "pattern": "^[a-z0-9-]{2,60}$",
      "description": "Task, e.g. 'text-generation', 'automatic-speech-recognition' or 'text-to-image'"
    },
    "filter": {
      "type": "string",
      "pattern": "^[A-Za-z0-9:._/-]{2,80}$",
      "description": "Any Hub tag, e.g. 'gguf', 'diffusers', 'license:apache-2.0' or 'base_model:meta-llama/Llama-3.1-8B'"
    },
    "sort": {
      "type": "string",
      "enum": [
        "downloads",
        "likes",
        "trendingScore",
        "lastModified",
        "createdAt"
      ],
      "default": "downloads",
      "description": "Sort key, always descending, e.g. 'trendingScore'"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50,
      "default": 20,
      "description": "Models to return, e.g. 20"
    }
  },
  "additionalProperties": false
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "huggingface/models-search",
  "input": {
    "search": "qwen",
    "sort": "downloads",
    "limit": 5
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

Licence: Hugging Face Hub metadata; each repository carries its own licence.

[Provider documentation](https://huggingface.co/docs/hub/api)

[REST inspection](https://api.agentik.cc/v1/tools/huggingface/models-search) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/huggingface/models-search) · [Agent index](/llms.txt)
