HuggingFace Hub Models Search
Search open-weight ML and LLM models on HuggingFace Hub by keyword or pipeline task with download counts, likes, tags, license, and model IDs.
curl -sG "https://api.agentapigate.ai/v1/ai/huggingface/models_search" \ --data-urlencode "query=qwen" \ --data-urlencode "limit=12" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# HuggingFace Hub Models Search (`ai.huggingface.models_search`) **query**: qwen · **count**: 12 ## models - [1] model_id: Qwen/Qwen3-4B-Instruct-2507, pipeline_tag: text-generation, library_name: transformers, downloads: 17200741, likes: 1056 - [2] model_id: Qwen/Qwen3-14B, pipeline_tag: text-generation, library_name: transformers, downloads: 13211598, likes: 548 - [3] model_id: Qwen/Qwen3-0.6B, pipeline_tag: text-generation, library_name: transformers, downloads: 12643068, likes: 1843 - [4] model_id: Comfy-Org/Qwen-Image-2.1, pipeline_tag: text-to-image, library_name: diffusion-single-file, downloads: 8858729, likes: 1337 - [5] model_id: unsloth/Qwen3.8-27B-GGUF, downloads: 8726975, likes: 6105, tags: gguf, qwen3_5, unsloth, qwen, base_model:Qwen/Qwen3.8-27B, base_model:quantized:Qwen/Qwen3.8-27B, created_at: 2026-08-13T08:28:40.000Z - [6] model_id: ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF, pipeline_tag: image-text-to-text, library_name: gguf, downloads: 8197885, likes: 1225 - [7] model_id: jesdga/Qwen3.8-Flash-Next-Basalt, library_name: basalt, downloads: 8004253, likes: 144, tags: basalt, moe, base_model:Qwen/Qwen3.8-Flash-Next, base_model:finetune:Qwen/Qwen3.8-Flash-Next, license:other, region:us - [8] model_id: Qwen/Qwen3.8-27B-FP8, pipeline_tag: image-text-to-text, library_name: transformers, downloads: 6351370, likes: 968 - [9] model_id: unsloth/Qwen3.8-Flash-Next-GGUF, pipeline_tag: image-text-to-text, downloads: 6103273, likes: 1801, tags: gguf, unsloth, Qwen, image-text-to-text, base_model:Qwen/Qwen3.8-Flash-Next, base_model:quantized:Qwen/Qwen3.8-Flash-Next - [10] model_id: Qwen/Qwen2.5-7B-Instruct, pipeline_tag: text-generation, library_name: transformers, downloads: 5529521, likes: 1599 - [11] model_id: Qwen/Qwen3-Embedding-0.6B, pipeline_tag: feature-extraction, library_name: sentence-transformers, downloads: 5503110, likes: 1304 - [12] model_id: Qwen/Qwen3-8B, pipeline_tag: text-generation, library_name: transformers, downloads: 5363812, likes: 1549
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:ai.huggingface.models_search · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| query | string | required | qwen | Model family, architecture, or task keyword (e.g. qwen, llama, whisper, embedding) |
| pipeline_tag | string | optional | — | Optional pipeline filter (e.g. text-generation, automatic-speech-recognition) |
| limit | number | optional | 12 | Max models returned (1-50) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0010 / call | $0/mo · Balance never expires |
| Remote MCP Tool | ai_huggingface_models_search | OAuth 2.1 Hub & /mcp/intel |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 46 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 3248t → 540t (-83%) | Partner credit: eligible |
More ai.huggingface Sibling Endpoints
Retrieve full HuggingFace model repository metadata including architecture config, safetensors parameter count, license, gated status, downloads, and file siblings.
Search ML training and evaluation datasets on HuggingFace Hub by keyword with download counts, likes, tags, and dataset card identifiers.
Frequently Asked Questions
How do I call HuggingFace Hub Models Search (ai.huggingface.models_search) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/ai/huggingface/models_search with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool ai_huggingface_models_search on https://mcp.agentapigate.ai/mcp.
What does ai.huggingface.models_search cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.001 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.
How does ?format=md or ?format=compact optimize AI agent token usage on ai.huggingface.models_search?
Passing ?format=md transforms the response into normalized Markdown (~540 tokens vs ~3248 raw tokens, saving 83% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only intel endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["intel"], optional allowed_endpoints: ["ai.huggingface.models_search"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.