# getModel

**Identifier:** `huggingface_getModel`

**Provider:** [Hugging Face](https://kirha.com/providers/huggingface.md)

Get comprehensive metadata for a specific ML model by repo ID. Returns architecture, parameter count, license, supported tasks, and community metrics.

## Run it with the CLI

```bash
kirha tools run huggingface_getModel \
  --input '{
    "repoId": "meta-llama/Llama-3.1-8B-Instruct"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "huggingface_getModel",
  "input": {
    "repoId": "meta-llama/Llama-3.1-8B-Instruct"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "repoId": {
      "description": "e.g., meta-llama/Llama-3.1-8B-Instruct",
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "repoId"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "architectures": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "author": {
      "type": "string"
    },
    "context": {
      "type": "string"
    },
    "createdAt": {
      "type": "string"
    },
    "datasets": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "downloads": {
      "type": "number"
    },
    "files": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "gated": {
      "type": "boolean"
    },
    "id": {
      "type": "string"
    },
    "inferenceStatus": {
      "type": "string"
    },
    "languages": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "lastModified": {
      "type": "string"
    },
    "libraryName": {
      "type": "string"
    },
    "license": {
      "type": "string"
    },
    "likes": {
      "type": "number"
    },
    "modelType": {
      "type": "string"
    },
    "pipelineTag": {
      "type": "string"
    },
    "spaces": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "totalParameters": {
      "type": "number"
    }
  },
  "required": [
    "context",
    "id",
    "downloads",
    "likes",
    "gated",
    "createdAt",
    "lastModified"
  ],
  "type": "object"
}
```

## Related tools

Other Hugging Face tools that this tool refers to, or that refer to it.

- [`getTrending`](https://kirha.com/providers/huggingface/getTrending.md)
- [`searchModels`](https://kirha.com/providers/huggingface/searchModels.md)

-----

[All Hugging Face tools](https://kirha.com/providers/huggingface.md) · [< Back to tools list](https://kirha.com/tools.md)