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
| Field | Type | Value in the sample |
|---|---|---|
platform | string | huggingface |
model_id | string | mistralai/Mistral-7B-v0.1 |
author | string | mistralai |
pipeline_tag | string | text-generation |
library_name | string | transformers |
downloads_last_month | number | 422765 |
likes | number | 4234 |
is_private | boolean | false |
gated | boolean | false |
license | string | apache-2.0 |
languages | list | ["en"] |
tags | list | ["transformers","pytorch","safetensors"] |
created_at | string | 2023-09-20T13:03:50.000Z |
last_modified | string | 2025-07-24T16:44:02.000Z |
siblings_count | number | 14 |
model_url | string | https://huggingface.co/mistralai/Mistral-7B-v0.1 |
paper_url | string | https://arxiv.org/abs/2310.06825 |
credits_used | number | 2 |
latency_ms | number | 172 |
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"}'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
- 401: the key is missing or wrong.
- 402: out of credits; top up on the pricing page.
- 422: the input does not match; the answer names the field.
- 429: too many calls too fast; wait a moment and try again.
- 503: the source did not answer; nothing is charged. Live state: status.
Free to start: 100 credits, no card. Then from $10. Credits you buy never expire.
Get my free keySame category: Developer data · all APIs
How we calculate
- Price of one call and of 1,000 calls: The credits per call times the smallest paid plan's price per credit (its monthly price divided by its monthly credits), times 1,000 for the larger figure.
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.