HuggingFace Model Card & Config
Retrieve full HuggingFace model repository metadata including architecture config, safetensors parameter count, license, gated status, downloads, and file siblings.
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"
# 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-InstructEndpoint Parameters, Cost & Token Economy Reference
Endpoint ID:ai.huggingface.model_detail · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| repo_id | string | required | Qwen/Qwen2.5-7B-Instruct | HuggingFace model repo ID (e.g. Qwen/Qwen2.5-7B-Instruct, openai/whisper-large-v3) |
| 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_model_detail | OAuth 2.1 Hub & /mcp/intel |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 22 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 2496t → 331t (-87%) | Partner credit: eligible |
More ai.huggingface Sibling Endpoints
Search open-weight ML and LLM models on HuggingFace Hub by keyword or pipeline task with download counts, likes, tags, license, and model IDs.
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 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.