# 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/market/apis/hugging-face/hugging-face-model-details-api/?offering=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. Price update time: not supplied.
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": []
  }
}
```

## 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.

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

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