openapi: 3.0.3
info:
  title: TokenHub API
  version: 0.1.0
  description: |
    OpenAI-compatible Chat Completions API. Replace server URL with your production host.
servers:
  - url: https://api.tokenhub.example/v1
paths:
  /chat/completions:
    post:
      summary: Create chat completion
      operationId: createChatCompletion
      security:
        - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                model:
                  type: string
                  example: deepseek/deepseek-r1
                messages:
                  type: array
                  items:
                    type: object
                stream:
                  type: boolean
      responses:
        "200":
          description: OK
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
