# Hugging Face model details API

Get Hugging Face Model Details via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as id, output, and retrieve structured data including full model identifier, pipeline tag, library, declared model license identifiers, and gated to audit model governance and licensing, check serving and quantization ecosystem, and chain into repo-level inspection.

Documentation: https://openany.si/hugging-face/hugging-face-model-details-api/8c295f0e-d0f0-4a2a-a1de-f825e4154df7/
API ID: 8c295f0e-d0f0-4a2a-a1de-f825e4154df7
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/huggingface/v1/model
Page update time: 2026-12-03T02:43:38.188Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:43:36.885Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## Hugging Face Model Details API

Pass required id as an owner/name model slug (such as meta-llama/Llama-3.1-8B-Instruct) or a huggingface.co model URL. The JSON response returns model card fields, licenses, gated requirements, architectures, base\_models, download counts, files\_count and published inference\_providers\[\].

## What You Can Build

- **Audit model governance and licensing**: Verify licenses, gated flags, base\_models and card\_data before approving a model for production.
- **Check serving and quantization ecosystem**: Inspect inference\_providers\[\], gguf metadata and derived\_models counts for deployment readiness.
- **Chain into repo-level inspection**: Follow up with Repo File Tree, Commit History and Discussions & PRs APIs using the same model ID.

## Returned Data

| Field | Meaning |
| --- | --- |
| `id` | Full model identifier (owner/name) |
| `author` | Model owner username or organization |
| `pipeline_tag` | Primary Hugging Face task tag such as text-generation |
| `library` | Primary framework or library such as transformers |
| `licenses` | Declared model license identifiers |
| `gated` | Access gating status such as manual, auto or false |
| `downloads_last_month` | Reported downloads over the last 30 days |
| `files_count` | Total number of files in the model repository |
| `inference_providers[].provider` | Published inference provider name serving the model |
| `url` | Canonical Hugging Face Hub URL for the model |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Hugging Face model details API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The model id (owner/name) or its huggingface.co link."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "Native CSV/NDJSON record selector; it has no effect on this JSON-only product."
        }
      },
      "required": [
        "id"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "architectures": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "arxiv": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "author": {
      "type": "string"
    },
    "base_model_relation": {
      "type": "string"
    },
    "base_models": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "cached": {
      "type": "boolean"
    },
    "card_data": {
      "type": "object",
      "properties": {
        "base_model": {
          "type": "string"
        },
        "extra_gated_button_content": {
          "type": "string"
        },
        "extra_gated_description": {
          "type": "string"
        },
        "extra_gated_fields": {
          "type": "object",
          "properties": {
            "Affiliation": {
              "type": "string"
            },
            "By clicking Submit below I accept the terms of the license and acknowledge that the information I provide will be collected stored processed and shared in accordance with the Meta Privacy Policy": {
              "type": "string"
            },
            "Country": {
              "type": "string"
            },
            "Date of birth": {
              "type": "string"
            },
            "First Name": {
              "type": "string"
            },
            "Job title": {
              "type": "object",
              "properties": {
                "options": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "type": {
                  "type": "string"
                }
              }
            },
            "Last Name": {
              "type": "string"
            },
            "geo": {
              "type": "string"
            }
          }
        },
        "extra_gated_prompt": {
          "type": "string"
        },
        "language": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "license": {
          "type": "string"
        },
        "pipeline_tag": {
          "type": "string"
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "created_at": {
      "type": "string"
    },
    "credits_used": {
      "type": "integer"
    },
    "datasets": {
      "type": "array",
      "items": {}
    },
    "derived_models": {
      "type": "object",
      "properties": {
        "adapter": {
          "type": "integer"
        },
        "finetune": {
          "type": "integer"
        },
        "merge": {
          "type": "integer"
        },
        "quantized": {
          "type": "integer"
        }
      }
    },
    "disabled": {
      "type": "boolean"
    },
    "downloads_all_time": {
      "type": "integer"
    },
    "downloads_last_month": {
      "type": "integer"
    },
    "files": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "files_count": {
      "type": "integer"
    },
    "gated": {
      "type": "string"
    },
    "gguf": {
      "type": "null"
    },
    "id": {
      "type": "string"
    },
    "inference": {
      "type": "string"
    },
    "inference_providers": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string"
              },
              "provider_id": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "task": {
                "type": "string"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "languages": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "last_modified": {
      "type": "string"
    },
    "library": {
      "type": "string"
    },
    "licenses": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "likes": {
      "type": "integer"
    },
    "model_type": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "parameters": {
      "type": "integer"
    },
    "parameters_by_dtype": {
      "type": "object",
      "properties": {
        "BF16": {
          "type": "integer"
        }
      }
    },
    "pipeline_tag": {
      "type": "string"
    },
    "private": {
      "type": "boolean"
    },
    "regions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "sha": {
      "type": "string"
    },
    "spaces": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "spaces_listed": {
      "type": "integer"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "transformers_info": {
      "type": "object",
      "properties": {
        "auto_model": {
          "type": "string"
        },
        "pipeline_tag": {
          "type": "string"
        },
        "processor": {
          "type": "string"
        }
      }
    },
    "trending_score": {
      "type": "integer"
    },
    "url": {
      "type": "string"
    },
    "used_storage_bytes": {
      "type": "integer"
    },
    "widget_examples": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "text": {
                "type": "string"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "…": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/huggingface/v1/model?id=meta-llama%2FLlama-3.1-8B-Instruct&output=json' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "architectures": [
    "LlamaForCausalLM"
  ],
  "arxiv": [
    "2204.05149"
  ],
  "author": "meta-llama",
  "base_model_relation": "finetune",
  "base_models": [
    "meta-llama/Llama-3.1-8B"
  ],
  "cached": false,
  "card_data": {
    "base_model": "meta-llama/Meta-Llama-3.1-8B",
    "extra_gated_button_content": "Submit",
    "extra_gated_description": "The information you provide will be collected, stored, processed and shared in accordance with the [Meta Privacy Policy](https://www.faceboo…",
    "extra_gated_fields": {
      "Affiliation": "text",
      "By clicking Submit below I accept the terms of the license and acknowledge that the information I provide will be collected stored processed and shared in accordance with the Meta Privacy Policy": "checkbox",
      "Country": "country",
      "Date of birth": "date_picker",
      "First Name": "text",
      "Job title": {
        "options": [
          "Student",
          "Research Graduate",
          "… 4 more"
        ],
        "type": "select"
      },
      "Last Name": "text",
      "geo": "ip_location"
    },
    "extra_gated_prompt": "### LLAMA 3.1 COMMUNITY LICENSE AGREEMENT\nLlama 3.1 Version Release Date: July 23, 2024\n\"Agreement\" means the terms and conditions for use, …",
    "language": [
      "en",
      "de",
      "… 6 more"
    ],
    "license": "llama3.1",
    "pipeline_tag": "text-generation",
    "tags": [
      "facebook",
      "meta",
      "… 3 more"
    ]
  },
  "created_at": "2024-07-18T08:56:00.000Z",
  "credits_used": 1,
  "datasets": [],
  "derived_models": {
    "adapter": 3029,
    "finetune": 3306,
    "merge": 105,
    "quantized": 956
  },
  "disabled": false,
  "downloads_all_time": 192541517,
  "downloads_last_month": 4475436,
  "files": [
    ".gitattributes",
    "LICENSE",
    "… 15 more"
  ],
  "files_count": 17,
  "gated": "manual",
  "gguf": null,
  "id": "meta-llama/Llama-3.1-8B-Instruct",
  "inference": "warm",
  "inference_providers": [
    {
      "provider": "novita",
      "provider_id": "meta-llama/llama-3.1-8b-instruct",
      "status": "live",
      "task": "conversational"
    },
    {
      "provider": "featherless-ai",
      "provider_id": "meta-llama/Llama-3.1-8B-Instruct",
      "status": "live",
      "task": "conversational"
    },
    "… 1 more"
  ],
  "languages": [
    "en",
    "de",
    "… 6 more"
  ],
  "last_modified": "2024-09-25T17:00:57.000Z",
  "library": "transformers",
  "licenses": [
    "llama3.1"
  ],
  "likes": 8780,
  "model_type": "llama",
  "name": "Llama-3.1-8B-Instruct",
  "parameters": 8030261248,
  "parameters_by_dtype": {
    "BF16": 8030261248
  },
  "pipeline_tag": "text-generation",
  "private": false,
  "regions": [
    "us"
  ],
  "sha": "0e9e39f249a16976918f6564b8830bc894c89659",
  "spaces": [
    "pollen-robotics/Reachy_Mini",
    "pliny-the-prompter/obliteratus",
    "… 98 more"
  ],
  "spaces_listed": 100,
  "tags": [
    "transformers",
    "safetensors",
    "… 24 more"
  ],
  "transformers_info": {
    "auto_model": "AutoModelForCausalLM",
    "pipeline_tag": "text-generation",
    "processor": "AutoTokenizer"
  },
  "trending_score": 60,
  "url": "https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct",
  "used_storage_bytes": 32123357950,
  "widget_examples": [
    {
      "text": "Hi, what can you help me with?"
    },
    {
      "text": "What is 84 * 3 / 2?"
    },
    "… 2 more"
  ],
  "…": "5 more fields"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Does this API run model inference or generate text?
No. It retrieves public catalog metadata, model card fields and repository references only.

### What formats can I pass in the id parameter?
Pass an owner/name identifier such as meta-llama/Llama-3.1-8B-Instruct or a full huggingface.co model URL.

### How can I check if a model requires gated license approval?
Inspect the gated field along with card_data.extra_gated_prompt and card_data.extra_gated_fields when present.

### Does it show which inference providers host the model?
Yes. inference_providers[] lists published providers, provider_id values and serving status when available.

### How do I list every weight file and size in the model repository?
Use the Hugging Face Repo File Tree API with the same model ID to retrieve full paths, sizes and download URLs.

### How do caching and payload trimming options work?
Output is JSON only. Pass fresh=1 to skip the 24-hour cache, raw=0 to omit bulky raw blocks, or fields to select specific keys.

## Available implementations
- apish: https://openany.si/hugging-face/hugging-face-model-details-api/8c295f0e-d0f0-4a2a-a1de-f825e4154df7/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
