Hugging Face Natural Language Processing API

NLP tasks including text generation, classification, and translation

Business capability
Artificial Intelligence Management BC-610.60

Operations 11

POST /models/{model_id} Run Inference on a Model #
POST /pipeline/{task} Run Inference by Task Pipeline #
POST /models/{model_id}/text-generation Text Generation Inference #
POST /models/{model_id}/text-classification Text Classification Inference #
POST /models/{model_id}/question-answering Question Answering Inference #
POST /models/{model_id}/summarization Text Summarization Inference #
POST /models/{model_id}/translation Translation Inference #
POST /models/{model_id}/fill-mask Fill Mask Inference #
POST /models/{model_id}/feature-extraction Feature Extraction Inference #
POST /models/{model_id}/zero-shot-classification Zero-shot Classification Inference #
POST /models/{model_id}/sentence-similarity Sentence Similarity Inference #

Documentation

Specifications

SDKs

Other Resources

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/hugging-face-natural-language-processing-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

hugging-face-natural-language-processing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Hugging Face Inference Natural Language Processing API
  description: Run inference on 200,000+ machine learning models hosted on the Hugging Face Hub with a simple HTTP request. Supports text generation, image classification, object detection, speech recognition, and many more tasks.
  version: 1.0.0
  termsOfService: https://huggingface.co/terms-of-service
  contact:
    name: Hugging Face Support
    url: https://huggingface.co/support
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
servers:
- url: https://api-inference.huggingface.co
  description: Hugging Face Inference API production server
security:
- bearerAuth: []
tags:


# --- truncated at 32 KB (32 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/hugging-face/refs/heads/main/openapi/hugging-face-natural-language-processing-api-openapi.yml