Hugging Face · Capability

Hugging Face Inference Providers API — Models

Hugging Face Inference Providers API — Models. 2 operations. Lead operation: List Available Models. Self-contained Naftiko capability covering one Hugging Face business surface.

Run with Naftiko Hugging FaceModels

What You Can Do

GET
Listmodels — List Available Models
/v1/v1/models
GET
Getmodel — Get Model Information
/v1/v1/models/{model-id}

MCP Tools

list-available-models

List Available Models

read-only idempotent
get-model-information

Get Model Information

read-only idempotent

Capability Spec

inference-providers-models.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Hugging Face Inference Providers API — Models
  description: 'Hugging Face Inference Providers API — Models. 2 operations. Lead operation: List Available Models. Self-contained
    Naftiko capability covering one Hugging Face business surface.'
  tags:
  - Hugging Face
  - Models
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    HUGGING_FACE_API_KEY: HUGGING_FACE_API_KEY
capability:
  consumes:
  - type: http
    namespace: inference-providers-models
    baseUri: https://router.huggingface.co
    description: Hugging Face Inference Providers API — Models business capability. Self-contained, no shared references.
    resources:
    - name: v1-models
      path: /v1/models
      operations:
      - name: listmodels
        method: GET
        description: List Available Models
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v1-models-model_id
      path: /v1/models/{model_id}
      operations:
      - name: getmodel
        method: GET
        description: Get Model Information
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: model_id
          in: path
          type: string
          description: The model ID
          required: true
    authentication:
      type: bearer
      token: '{{env.HUGGING_FACE_API_KEY}}'
  exposes:
  - type: rest
    namespace: inference-providers-models-rest
    port: 8080
    description: REST adapter for Hugging Face Inference Providers API — Models. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/v1/models
      name: v1-models
      description: REST surface for v1-models.
      operations:
      - method: GET
        name: listmodels
        description: List Available Models
        call: inference-providers-models.listmodels
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/models/{model-id}
      name: v1-models-model-id
      description: REST surface for v1-models-model_id.
      operations:
      - method: GET
        name: getmodel
        description: Get Model Information
        call: inference-providers-models.getmodel
        with:
          model_id: rest.model_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: inference-providers-models-mcp
    port: 9090
    transport: http
    description: MCP adapter for Hugging Face Inference Providers API — Models. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: list-available-models
      description: List Available Models
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: inference-providers-models.listmodels
      outputParameters:
      - type: object
        mapping: $.
    - name: get-model-information
      description: Get Model Information
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: inference-providers-models.getmodel
      with:
        model_id: tools.model_id
      outputParameters:
      - type: object
        mapping: $.