Hugging Face · Capability

Hugging Face Inference Providers API — Text Generation

Hugging Face Inference Providers API — Text Generation. 1 operations. Lead operation: Create Text Completion. Self-contained Naftiko capability covering one Hugging Face business surface.

Run with Naftiko Hugging FaceText Generation

What You Can Do

POST
Createcompletion — Create Text Completion
/v1/v1/completions

MCP Tools

create-text-completion

Create Text Completion

Capability Spec

inference-providers-text-generation.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Hugging Face Inference Providers API — Text Generation
  description: 'Hugging Face Inference Providers API — Text Generation. 1 operations. Lead operation: Create Text Completion.
    Self-contained Naftiko capability covering one Hugging Face business surface.'
  tags:
  - Hugging Face
  - Text Generation
  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-text-generation
    baseUri: https://router.huggingface.co
    description: Hugging Face Inference Providers API — Text Generation business capability. Self-contained, no shared references.
    resources:
    - name: v1-completions
      path: /v1/completions
      operations:
      - name: createcompletion
        method: POST
        description: Create Text Completion
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.HUGGING_FACE_API_KEY}}'
  exposes:
  - type: rest
    namespace: inference-providers-text-generation-rest
    port: 8080
    description: REST adapter for Hugging Face Inference Providers API — Text Generation. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/v1/completions
      name: v1-completions
      description: REST surface for v1-completions.
      operations:
      - method: POST
        name: createcompletion
        description: Create Text Completion
        call: inference-providers-text-generation.createcompletion
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: inference-providers-text-generation-mcp
    port: 9090
    transport: http
    description: MCP adapter for Hugging Face Inference Providers API — Text Generation. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: create-text-completion
      description: Create Text Completion
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: inference-providers-text-generation.createcompletion
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.