ChatGPT · Capability

ChatGPT Chat Completions API — Chat Completions

ChatGPT Chat Completions API — Chat Completions. 1 operations. Lead operation: Chatgpt Create Chat Completion. Self-contained Naftiko capability covering one Chatgpt business surface.

Run with Naftiko ChatgptChat Completions

What You Can Do

POST
Createchatcompletion — Chatgpt Create Chat Completion
/v1/chat/completions

MCP Tools

chatgpt-create-chat-completion

Chatgpt Create Chat Completion

Capability Spec

chat-completions-chat-completions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: ChatGPT Chat Completions API — Chat Completions
  description: 'ChatGPT Chat Completions API — Chat Completions. 1 operations. Lead operation: Chatgpt Create Chat Completion.
    Self-contained Naftiko capability covering one Chatgpt business surface.'
  tags:
  - Chatgpt
  - Chat Completions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CHATGPT_API_KEY: CHATGPT_API_KEY
capability:
  consumes:
  - type: http
    namespace: chat-completions-chat-completions
    baseUri: https://api.openai.com/v1
    description: ChatGPT Chat Completions API — Chat Completions business capability. Self-contained, no shared references.
    resources:
    - name: chat-completions
      path: /chat/completions
      operations:
      - name: createchatcompletion
        method: POST
        description: Chatgpt Create 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: bearer
      token: '{{env.CHATGPT_API_KEY}}'
  exposes:
  - type: rest
    namespace: chat-completions-chat-completions-rest
    port: 8080
    description: REST adapter for ChatGPT Chat Completions API — Chat Completions. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/chat/completions
      name: chat-completions
      description: REST surface for chat-completions.
      operations:
      - method: POST
        name: createchatcompletion
        description: Chatgpt Create Chat Completion
        call: chat-completions-chat-completions.createchatcompletion
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: chat-completions-chat-completions-mcp
    port: 9090
    transport: http
    description: MCP adapter for ChatGPT Chat Completions API — Chat Completions. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: chatgpt-create-chat-completion
      description: Chatgpt Create Chat Completion
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: chat-completions-chat-completions.createchatcompletion
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.