Hugging Face · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for Hugging Face Text Generation Inference Info API

6 actions 6 updates phrasing extends openapi/hugging-face-info-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for Hugging Face's API. It is a proposal applied on top of the contract, not a document Hugging Face publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 6

$.info
$.paths['/v1/models'].get
$.paths['/info'].get
$.paths['/health'].get
$.paths['/metrics'].get
$.paths['/tokenize'].post

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for Hugging Face Text Generation Inference Info API
  version: 1.0.0
extends: openapi/hugging-face-info-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-10-01'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 5
- target: $.paths['/v1/models'].get
  update:
    x-apievangelist-phrasing:
      intent: Show the model loaded on a TGI server
      effect: read
      questions:
      - Which model is currently loaded on my Text Generation Inference server?
      - Can I query a TGI deployment's OpenAI-style models list?
      instructions:
      - text: List the models available on this TGI server.
      - text: Tell me which model the TGI deployment has loaded.
      method: generated
      generated: '2026-10-01'
- target: $.paths['/info'].get
  update:
    x-apievangelist-phrasing:
      intent: Get TGI server version and model metadata
      effect: read
      questions:
      - What version, commit SHA and Docker label is my TGI server running?
      - Can I read the max input length and other model parameters the server was started with?
      instructions:
      - text: Get the server information from TGI.
      - text: Show me the TGI version and model configuration details.
      method: generated
      generated: '2026-10-01'
- target: $.paths['/health'].get
  update:
    x-apievangelist-phrasing:
      intent: Check whether a TGI server is ready
      effect: read
      questions:
      - Is my TGI server up with the model loaded and ready to serve requests?
      - Which probe should a load balancer hit to confirm the text generation server is healthy?
      instructions:
      - text: Check the health of the TGI server.
      - text: Confirm the text generation server is ready for traffic.
      method: generated
      generated: '2026-10-01'
- target: $.paths['/metrics'].get
  update:
    x-apievangelist-phrasing:
      intent: Scrape TGI Prometheus metrics
      effect: read
      questions:
      - Can I scrape queue size and token throughput from a TGI server with Prometheus?
      - Where are the request count and latency metrics for Text Generation Inference exposed?
      instructions:
      - text: Fetch the Prometheus metrics from the TGI server.
      - text: Show me TGI queue size and token throughput metrics.
      method: generated
      generated: '2026-10-01'
- target: $.paths['/tokenize'].post
  update:
    x-apievangelist-phrasing:
      intent: Tokenize text with the loaded model's tokenizer
      effect: read
      questions:
      - How many tokens does a piece of text become with the model loaded on TGI?
      - Can I see token IDs and their string pieces, with or without special tokens?
      instructions:
      - text: Tokenize {inputs} with the loaded model.
        slots:
          inputs: requestBody.inputs
      - text: Split {inputs} into tokens, setting add special tokens to {add_special_tokens}.
        slots:
          inputs: requestBody.inputs
          add_special_tokens: requestBody.add_special_tokens
      method: generated
      generated: '2026-10-01'

Work with this as data

Every overlay 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 openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay 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 overlay
curl "https://apis.io/api/v1/overlays/hugging-face-info-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?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.