{
  "name": "huggingface-inference",
  "title": "HuggingFace Inference API",
  "description": "Run inference on a HuggingFace-hosted model via the HuggingFace Inference API, posting an input text and echoing the raw JSON response. The access token is read from a Kubernetes Secret.",
  "category": "AI",
  "tags": [
    "ai",
    "curl-jq"
  ],
  "latestVersion": "1.0.3",
  "versions": [
    "1.0.3",
    "1.0.2",
    "1.0.1",
    "1.0.0"
  ],
  "parameters": [
    "input-text",
    "model",
    "token-secret-key",
    "token-secret-name"
  ],
  "images": [
    "badouralix/curl-jq@sha256:38362e9b8ef4bd09a88c0db07941e61e0bf0f7240e9f36a3ff2c31ad75546be2"
  ],
  "url": "https://catalog.dagweave.com/api/v1/items/huggingface-inference.json",
  "templateUrl": "https://catalog.dagweave.com/api/v1/items/huggingface-inference/latest/template.yaml",
  "page": "https://catalog.dagweave.com/items/huggingface-inference/",
  "entrypoint": "infer",
  "parameterDetails": [
    {
      "name": "input-text",
      "title": "Input text",
      "description": "The input text to run inference on.",
      "type": "string",
      "required": true
    },
    {
      "name": "model",
      "title": "Model",
      "description": "HuggingFace model repo id.",
      "type": "string",
      "required": true,
      "example": "distilbert-base-uncased"
    },
    {
      "name": "token-secret-key",
      "title": "Token secret key",
      "description": "Key within the Secret that holds the access token.",
      "type": "string",
      "required": false,
      "default": "token"
    },
    {
      "name": "token-secret-name",
      "title": "Token secret name",
      "description": "Name of the Kubernetes Secret holding the HuggingFace access token.",
      "type": "string",
      "required": false,
      "default": "huggingface-token"
    }
  ],
  "imageDetails": [
    {
      "ref": "badouralix/curl-jq@sha256:38362e9b8ef4bd09a88c0db07941e61e0bf0f7240e9f36a3ff2c31ad75546be2",
      "repository": "badouralix/curl-jq",
      "digest": "sha256:38362e9b8ef4bd09a88c0db07941e61e0bf0f7240e9f36a3ff2c31ad75546be2"
    }
  ],
  "versionDetails": [
    {
      "version": "1.0.3",
      "date": "2026-09-12",
      "notes": "Move to badouralix/curl-jq:ubuntu. The Alpine build this pinned carries two jq advisories on the path this item takes, and its publisher has not rebuilt it since 1 July. The ubuntu tag has neither, and fixable CRITICAL/HIGH drops from 4 to 2. It is Ubuntu 24.04 rather than Alpine, so sh is dash rather than busybox ash, curl goes back from 8.21.0 to 8.5.0 and jq from 1.8.1 to 1.7.1. Still runs as root.",
      "latest": true,
      "installable": true,
      "url": "https://catalog.dagweave.com/api/v1/items/huggingface-inference/1.0.3.json",
      "templateUrl": "https://catalog.dagweave.com/api/v1/items/huggingface-inference/1.0.3/template.yaml"
    },
    {
      "version": "1.0.2",
      "date": "2026-08-02",
      "notes": "Swap the abandoned dwdraju/alpine-curl-jq, last built 2025-02-21, for badouralix/curl-jq, which is still being rebuilt. Fixable CRITICAL/HIGH drops from 19 to 1. Same Alpine base, same root user, same /bin/sh default command; curl goes 8.12.1 to 8.21.0 and jq 1.7.1 to 1.8.1.",
      "latest": false,
      "installable": false,
      "url": "https://catalog.dagweave.com/api/v1/items/huggingface-inference/1.0.2.json"
    },
    {
      "version": "1.0.1",
      "date": "2026-07-17",
      "notes": "Fix inference endpoint: the legacy api-inference.huggingface.co host was retired (no longer resolves). Point at the current router.huggingface.co/hf-inference/models/\u003cmodel\u003e endpoint.",
      "latest": false,
      "installable": false,
      "url": "https://catalog.dagweave.com/api/v1/items/huggingface-inference/1.0.1.json"
    },
    {
      "version": "1.0.0",
      "date": "2026-07-17",
      "notes": "Initial release.",
      "latest": false,
      "installable": false,
      "url": "https://catalog.dagweave.com/api/v1/items/huggingface-inference/1.0.0.json"
    }
  ],
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/huggingface-inference",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
