Hugging Face · Schema

CreateEndpointRequest

Properties

Name Type Description
name string Unique endpoint name
type string Endpoint security type
provider object
compute object
model object
View JSON Schema on GitHub

JSON Schema

hugging-face-createendpointrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CreateEndpointRequest",
  "title": "CreateEndpointRequest",
  "type": "object",
  "required": [
    "name",
    "type",
    "provider",
    "compute",
    "model"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Unique endpoint name",
      "example": "my-text-gen-endpoint",
      "pattern": "^[a-z0-9][a-z0-9-]{0,30}[a-z0-9]$"
    },
    "type": {
      "type": "string",
      "description": "Endpoint security type",
      "enum": [
        "public",
        "protected",
        "private"
      ],
      "default": "protected",
      "example": "public"
    },
    "provider": {
      "type": "object",
      "required": [
        "vendor",
        "region"
      ],
      "properties": {
        "vendor": {
          "type": "string",
          "enum": [
            "aws",
            "azure",
            "gcp"
          ]
        },
        "region": {
          "type": "string",
          "example": "us-east-1"
        }
      },
      "example": "example_value"
    },
    "compute": {
      "type": "object",
      "required": [
        "accelerator",
        "instanceType",
        "instanceSize",
        "scaling"
      ],
      "properties": {
        "accelerator": {
          "type": "string",
          "enum": [
            "cpu",
            "gpu"
          ]
        },
        "instanceType": {
          "type": "string",
          "example": "nvidia-a10g"
        },
        "instanceSize": {
          "type": "string",
          "example": "x1"
        },
        "scaling": {
          "type": "object",
          "required": [
            "minReplica",
            "maxReplica"
          ],
          "properties": {
            "minReplica": {
              "type": "integer",
              "minimum": 0,
              "example": 0
            },
            "maxReplica": {
              "type": "integer",
              "minimum": 1,
              "example": 2
            },
            "scaleToZeroTimeout": {
              "type": "integer",
              "description": "Minutes of inactivity before scaling to zero",
              "example": 15
            }
          }
        }
      },
      "example": "example_value"
    },
    "model": {
      "type": "object",
      "required": [
        "repository",
        "task"
      ],
      "properties": {
        "repository": {
          "type": "string",
          "description": "Hugging Face model repository ID",
          "example": "meta-llama/Llama-2-7b-chat-hf"
        },
        "revision": {
          "type": "string",
          "description": "Git revision to deploy",
          "default": "main"
        },
        "task": {
          "type": "string",
          "description": "Task type for the endpoint",
          "example": "text-generation"
        },
        "framework": {
          "type": "string",
          "enum": [
            "pytorch",
            "custom"
          ],
          "default": "pytorch"
        },
        "image": {
          "type": "object",
          "properties": {
            "huggingface": {
              "type": "object"
            },
            "custom": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "health_route": {
                  "type": "string"
                },
                "env": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      },
      "example": "example_value"
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema 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 Schema
curl "https://apis.io/api/v1/json-schemas/hugging-face-createendpointrequest"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

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

Get an API key

Free tier, no email required.

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