Home · APIs · Developer data · Hugging Face model

Hugging Face model API

One request, one key: POST /v1/developer/huggingface/model. The sample below is a real response captured 20 November 2026, shortened for display (long text cut, lists cut to three items); it is not invented.

Price

2 credits a call. One call is about $0.0196 and 1,000 calls are about $19.60 at the smallest paid plan's rate.Formula A call that comes back empty is not charged.

Try it free

Runs one real call with the sample input below. No key and no sign-up; a few runs a day per visitor.

{
  "model_id": "mistralai/Mistral-7B-v0.1"
}

What it returns

FieldTypeValue in the sample
platformstringhuggingface
model_idstringmistralai/Mistral-7B-v0.1
authorstringmistralai
pipeline_tagstringtext-generation
library_namestringtransformers
downloads_last_monthnumber422765
likesnumber4234
is_privatebooleanfalse
gatedbooleanfalse
licensestringapache-2.0
languageslist["en"]
tagslist["transformers","pytorch","safetensors"]
created_atstring2023-09-20T13:03:50.000Z
last_modifiedstring2025-07-24T16:44:02.000Z
siblings_countnumber14
model_urlstringhttps://huggingface.co/mistralai/Mistral-7B-v0.1
paper_urlstringhttps://arxiv.org/abs/2310.06825
credits_usednumber2
latency_msnumber172

Sample response (20 November 2026)

{
  "platform": "huggingface",
  "model_id": "mistralai/Mistral-7B-v0.1",
  "author": "mistralai",
  "pipeline_tag": "text-generation",
  "library_name": "transformers",
  "downloads_last_month": 422765,
  "likes": 4234,
  "is_private": false,
  "gated": false,
  "license": "apache-2.0",
  "languages": [
    "en"
  ],
  "tags": [
    "transformers",
    "pytorch",
    "safetensors"
  ],
  "created_at": "2023-09-20T13:03:50.000Z",
  "last_modified": "2025-07-24T16:44:02.000Z",
  "siblings_count": 14,
  "model_url": "https://huggingface.co/mistralai/Mistral-7B-v0.1",
  "paper_url": "https://arxiv.org/abs/2310.06825",
  "errors": [],
  "credits_used": 2,
  "latency_ms": 172
}

Measured on that call: 769 ms.

Code

curl -X POST https://api.foxapis.com/v1/developer/huggingface/model \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model_id":"mistralai/Mistral-7B-v0.1"}'
import requests

r = requests.post(
    "https://api.foxapis.com/v1/developer/huggingface/model",
    headers={"Authorization": "Bearer YOUR_KEY"},
    json={"model_id":"mistralai/Mistral-7B-v0.1"},
)
print(r.json())
const r = await fetch("https://api.foxapis.com/v1/developer/huggingface/model", {
  method: "POST",
  headers: { "Authorization": "Bearer YOUR_KEY", "Content-Type": "application/json" },
  body: JSON.stringify({"model_id":"mistralai/Mistral-7B-v0.1"}),
});
console.log(await r.json());

n8n (HTTP Request node: paste it into a workflow)

{
  "nodes": [
    {
      "name": "Hugging Face model",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [
        0,
        0
      ],
      "parameters": {
        "method": "POST",
        "url": "https://api.foxapis.com/v1/developer/huggingface/model",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer YOUR_KEY"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{\"model_id\":\"mistralai/Mistral-7B-v0.1\"}"
      }
    }
  ],
  "connections": {}
}

Assistants (Claude, ChatGPT, Cursor)

Connect the FoxAPIs server once; the tools it offers are listed on the MCP page.

claude mcp add --transport http foxapis https://foxapis.com/mcp \
  --header "Authorization: Bearer YOUR_KEY"

Errors and limits

Free to start: 100 credits, no card. Then from $10. Credits you buy never expire.

Get my free key

Same category: Developer data · all APIs

How we calculate

Data: scripts/data/endpoint-credits.json and plans.json, 2026-11-20. Every other figure on this page is copied from the record, not calculated by us.