Hugging Face · JSON Structure

Hugging Face Structure

Structural overview of the Hugging Face API surface; extracted from openapi/.

Type: Properties: 0

Hugging Face Structure is a JSON Structure definition published by Hugging Face.

Meta-schema:

JSON Structure

Raw ↑
{
  "provider": "Hugging Face",
  "providerId": "hugging-face",
  "kind": "json-structure",
  "description": "Structural overview of the Hugging Face API surface; extracted from openapi/.",
  "schemaCount": 12,
  "operationCount": 9,
  "schemas": [
    {
      "name": "GenerateRequest",
      "type": "object",
      "propertyCount": 2,
      "required": [
        "inputs"
      ]
    },
    {
      "name": "GenerateResponse",
      "type": "object",
      "propertyCount": 2,
      "required": []
    },
    {
      "name": "StreamResponse",
      "type": "object",
      "propertyCount": 3,
      "required": []
    },
    {
      "name": "ChatCompletionRequest",
      "type": "object",
      "propertyCount": 17,
      "required": [
        "model",
        "messages"
      ]
    },
    {
      "name": "ChatCompletionResponse",
      "type": "object",
      "propertyCount": 7,
      "required": []
    },
    {
      "name": "ChatCompletionStreamResponse",
      "type": "object",
      "propertyCount": 7,
      "required": []
    },
    {
      "name": "CompletionRequest",
      "type": "object",
      "propertyCount": 9,
      "required": [
        "model",
        "prompt"
      ]
    },
    {
      "name": "CompletionResponse",
      "type": "object",
      "propertyCount": 6,
      "required": []
    },
    {
      "name": "CompletionStreamResponse",
      "type": "object",
      "propertyCount": 5,
      "required": []
    },
    {
      "name": "Info",
      "type": "object",
      "propertyCount": 18,
      "required": []
    },
    {
      "name": "Usage",
      "type": "object",
      "propertyCount": 3,
      "required": []
    },
    {
      "name": "ErrorResponse",
      "type": "object",
      "propertyCount": 2,
      "required": []
    }
  ],
  "operations": [
    {
      "method": "POST",
      "path": "/generate",
      "operationId": "generate",
      "summary": "Generate Text",
      "tags": [
        "Text Generation"
      ]
    },
    {
      "method": "POST",
      "path": "/generate_stream",
      "operationId": "generateStream",
      "summary": "Generate Text With Streaming",
      "tags": [
        "Text Generation"
      ]
    },
    {
      "method": "POST",
      "path": "/v1/chat/completions",
      "operationId": "chatCompletions",
      "summary": "Create Chat Completion (openai Compatible)",
      "tags": [
        "Chat"
      ]
    },
    {
      "method": "POST",
      "path": "/v1/completions",
      "operationId": "completions",
      "summary": "Create Text Completion (openai Compatible)",
      "tags": [
        "Text Generation"
      ]
    },
    {
      "method": "GET",
      "path": "/v1/models",
      "operationId": "listModels",
      "summary": "List Available Models",
      "tags": [
        "Info"
      ]
    },
    {
      "method": "GET",
      "path": "/info",
      "operationId": "getInfo",
      "summary": "Get Server Information",
      "tags": [
        "Info"
      ]
    },
    {
      "method": "GET",
      "path": "/health",
      "operationId": "healthCheck",
      "summary": "Health Check",
      "tags": [
        "Info"
      ]
    },
    {
      "method": "GET",
      "path": "/metrics",
      "operationId": "getMetrics",
      "summary": "Get Prometheus Metrics",
      "tags": [
        "Info"
      ]
    },
    {
      "method": "POST",
      "path": "/tokenize",
      "operationId": "tokenize",
      "summary": "Tokenize Text",
      "tags": [
        "Info"
      ]
    }
  ]
}

Work with this as data

Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/hugging-face-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.