> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lumegates.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Chat Completions

LumeGates provides an OpenAI-compatible interface for all models. Use this endpoint to send a list of messages and get a model-generated response.

### Request Headers

Standard Bearer Token authentication is used.

### Body Parameters

Refer to the interactive panel on the right to see all supported parameters like `model`, `messages`, `stream`, and `temperature`.


## OpenAPI

````yaml POST /chat/completions
openapi: 3.0.0
info:
  title: LumeGates API
  version: 1.0.0
  description: >-
    Enterprise-grade AI model distribution platform. Fully compatible with
    OpenAI SDKs.
servers:
  - url: https://api.lumegates.com/v1
    description: Production Server
security: []
paths:
  /chat/completions:
    post:
      summary: Chat Completions
      operationId: createChatCompletion
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                model:
                  type: string
                  example: gpt-4o
                messages:
                  type: array
                  items:
                    type: object
                    properties:
                      role:
                        type: string
                        example: user
                      content:
                        type: string
                        example: Hello LumeGates!
                stream:
                  type: boolean
                  default: false
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: chatcmpl-123
                  object:
                    type: string
                    example: chat.completion
                  created:
                    type: integer
                    example: 1677652288
                  model:
                    type: string
                    example: gpt-4o
                  choices:
                    type: array
                    items:
                      type: object
                      properties:
                        index:
                          type: integer
                          example: 0
                        message:
                          type: object
                          properties:
                            role:
                              type: string
                              example: assistant
                            content:
                              type: string
                              example: Hello! How can I help you today?
                        finish_reason:
                          type: string
                          example: stop
                  usage:
                    type: object
                    properties:
                      prompt_tokens:
                        type: integer
                        example: 9
                      completion_tokens:
                        type: integer
                        example: 12
                      total_tokens:
                        type: integer
                        example: 21
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````