AgentAPIGate
Back to Catalog
GET /v1/ai/huggingface/model_detailPack: intel·MCP Tool: ai_huggingface_model_detail

HuggingFace Model Card & Config

Retrieve full HuggingFace model repository metadata including architecture config, safetensors parameter count, license, gated status, downloads, and file siblings.

API Key Price:$0.0010 / call
x402 Base USDC:$0.0020 / call
Partner Credit:eligible
1. Parameters & Controls
HuggingFace model repo ID (e.g. Qwen/Qwen2.5-7B-Instruct, openai/whisper-large-v3)
Get $0.25 Free Key →
curl -sG "https://api.agentapigate.ai/v1/ai/huggingface/model_detail" \
  --data-urlencode "repo_id=Qwen/Qwen2.5-7B-Instruct" \
  --data-urlencode "format=md" \
  -H "Authorization: Bearer aag_live_YOUR_KEY" \
  -H "X-AAG-Max-Cost: 0.0100"
1-Click Agent IDE Install
Add to Cursor (1-Click OAuth)
-87% tokens
# HuggingFace Model Card & Config (`ai.huggingface.model_detail`)
**found**: true · **repo_id**: Qwen/Qwen2.5-7B-Instruct

## model
- **id**: Qwen/Qwen2.5-7B-Instruct
- **author**: Qwen
- **sha**: a09a35458c702b33eeacc393d103063234e8bc28
- **pipeline_tag**: text-generation
- **library_name**: transformers
- **gated**: false
- **downloads**: 5529521
- **likes**: 1599
- **tags**: transformers, safetensors, qwen2, text-generation, chat, conversational
- **safetensors**: parameters: BF16: 7615616512, total: 7615616512
- **config**: architectures: Qwen2ForCausalLM, model_type: qwen2, tokenizer_config: eos_token: <|im_end|>, pad_token: <|endoftext|>, chat_template: {%- if tools %} {{- '<|im_start|>system\n' }} {%- if messages[0]['role'] == 'system' %} {{- messages[0]['content'] }} {%- else %} {{- 'You are Qwen, created by Alibab
- **card_data**: license: apache-2.0, license_link: https://huggingface.co/Qwen/Qwen2.5-7B-Instruct/blob/main/LICENSE, language: en, pipeline_tag: text-generation, base_model: Qwen/Qwen2.5-7B
- **files**: .gitattributes, LICENSE, README.md, config.json, generation_config.json, merges.txt
- **last_modified**: 2025-01-12T02:10:10.000Z
- **url**: https://huggingface.co/Qwen/Qwen2.5-7B-Instruct

Endpoint Parameters, Cost & Token Economy Reference

Endpoint ID: ai.huggingface.model_detail · Method: GET
ParameterTypeReqSample / DefaultDescription
repo_idstringrequiredQwen/Qwen2.5-7B-InstructHuggingFace model repo ID (e.g. Qwen/Qwen2.5-7B-Instruct, openai/whisper-large-v3)
formatenumoptionaljson | compact | mdResponse format; compact or md cuts LLM tokens.
dry_run0 | 1optional1Returns exact pre-flight price quote & validation at $0.00 cost.
Access Rail / MetricValuePolicy & SLA
API Key (PAYG)$0.0010 / call$0/mo · Balance never expires
Remote MCP Toolai_huggingface_model_detailOAuth 2.1 Hub & /mcp/intel
x402 Base USDC$0.0020 / callZero-signup USDC enabled
P50 Latency22 ms$0 billed on empty or 4xx/5xx
Token Economy2496t → 331t (-87%)Partner credit: eligible

More ai.huggingface Sibling Endpoints

Frequently Asked Questions

How do I call HuggingFace Model Card & Config (ai.huggingface.model_detail) over REST and Remote MCP?

Send GET requests to https://api.agentapigate.ai/v1/ai/huggingface/model_detail with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool ai_huggingface_model_detail on https://mcp.agentapigate.ai/mcp.

What does ai.huggingface.model_detail 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.model_detail?

Passing ?format=md transforms the response into normalized Markdown (~331 tokens vs ~2496 raw tokens, saving 87% 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.model_detail"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.