Baseten · Capability

Baseten LLM Inference API — Chat Completions

Baseten LLM Inference API — Chat Completions. 1 operations. Lead operation: Create a chat completion. Self-contained Naftiko capability covering one Baseten business surface.

Run with Naftiko BasetenChat Completions

What You Can Do

POST
Createchatcompletion — Create a chat completion
/v1/v1/chat/completions

MCP Tools

create-chat-completion

Create a chat completion

Capability Spec

llm-chat-completions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Baseten LLM Inference API — Chat Completions
  description: 'Baseten LLM Inference API — Chat Completions. 1 operations. Lead operation: Create a chat completion. Self-contained
    Naftiko capability covering one Baseten business surface.'
  tags:
  - Baseten
  - Chat Completions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    BASETEN_API_KEY: BASETEN_API_KEY
capability:
  consumes:
  - type: http
    namespace: llm-chat-completions
    baseUri: https://inference.baseten.co
    description: Baseten LLM Inference API — Chat Completions business capability. Self-contained, no shared references.
    resources:
    - name: v1-chat-completions
      path: /v1/chat/completions
      operations:
      - name: createchatcompletion
        method: POST
        description: Create a chat completion
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.BASETEN_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: llm-chat-completions-rest
    port: 8080
    description: REST adapter for Baseten LLM Inference API — Chat Completions. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/v1/chat/completions
      name: v1-chat-completions
      description: REST surface for v1-chat-completions.
      operations:
      - method: POST
        name: createchatcompletion
        description: Create a chat completion
        call: llm-chat-completions.createchatcompletion
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: llm-chat-completions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Baseten LLM Inference API — Chat Completions. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: create-chat-completion
      description: Create a chat completion
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: llm-chat-completions.createchatcompletion
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.