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

# GLM 5.3 Flash API

> Create a chat completion for given messages with streaming support



## OpenAPI

````yaml openapi-specs/playground/glm-5.3-flash.yaml POST /chat/completions
openapi: 3.1.0
info:
  title: GLM 5.3 Flash API
  description: >
    Lightweight, low-latency variant in Z.ai's open-weight GLM-5.3
    Mixture-of-Experts

    family. Supports hybrid reasoning with a thinking mode for multi-step tasks
    and a

    non-thinking mode for latency-sensitive serving.
  version: 1.0.0
servers:
  - url: https://api.simplismart.live
    description: Production LLM Proxy Server
security:
  - BearerAuth: []
tags:
  - name: Chat Completion
    description: Large Language Model chat completion services
paths:
  /chat/completions:
    post:
      tags:
        - Chat Completion
      summary: Create chat completion with GLM 5.3 Flash
      description: Create a chat completion for given messages with streaming support
      operationId: createChatCompletionGLM53Flash
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                messages:
                  type: array
                  description: Array of messages in the conversation
                  items:
                    type: object
                    properties:
                      role:
                        type: string
                        enum:
                          - system
                          - user
                          - assistant
                        description: The role of the message sender
                      content:
                        type: string
                        description: The content of the message
                    required:
                      - role
                      - content
                model:
                  type: string
                  description: Model identifier
                  enum:
                    - zai-org/GLM-5.3-Flash
                  default: zai-org/GLM-5.3-Flash
                stream:
                  type: boolean
                  description: Whether to stream the response
                  default: false
                temperature:
                  type: number
                  description: Sampling temperature
                  minimum: 0
                  maximum: 2
                  default: 0.7
                max_tokens:
                  type: integer
                  description: Maximum number of tokens to generate
                  minimum: 1
                  maximum: 4096
                  default: 1024
                top_p:
                  type: number
                  description: Nucleus sampling parameter
                  minimum: 0
                  maximum: 1
                  default: 0.95
                stop:
                  type: array
                  description: Sequences where the API will stop generating
                  items:
                    type: string
                  nullable: true
                chat_template_kwargs:
                  type: object
                  description: Chat template options
                  properties:
                    enable_thinking:
                      type: boolean
                      default: true
                      description: >-
                        When true (default), the response message includes a
                        `reasoning_content` field with the model's internal
                        reasoning. Set to false for a direct answer with no
                        reasoning field.
              required:
                - messages
                - model
            example:
              model: zai-org/GLM-5.3-Flash
              messages:
                - role: user
                  content: what is 2+2?
              max_tokens: 1024
              stream: false
      responses:
        '200':
          description: Successful chat completion
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Unique identifier for the completion
                  model:
                    type: string
                  object:
                    type: string
                    example: chat.completion
                  choices:
                    type: array
                    items:
                      type: object
                      properties:
                        index:
                          type: integer
                          description: Index of the choice
                        message:
                          type: object
                          properties:
                            role:
                              type: string
                              example: assistant
                            content:
                              type: string
                              description: Generated text content
                            reasoning_content:
                              type: string
                              description: >-
                                Present unless
                                chat_template_kwargs.enable_thinking is set to
                                false
                        finish_reason:
                          type: string
                          enum:
                            - stop
                            - length
                            - content_filter
                          description: Reason for finishing the generation
                  usage:
                    type: object
                    properties:
                      prompt_tokens:
                        type: integer
                      completion_tokens:
                        type: integer
                      total_tokens:
                        type: integer
              example:
                id: chatcmpl-4f3c3d2b-89ac-4360-867e-bec385fcf214
                model: zai-org/GLM-5.3-Flash
                object: chat.completion
                choices:
                  - index: 0
                    finish_reason: stop
                    message:
                      role: assistant
                      content: '**2 + 2 = 4**'
                usage:
                  prompt_tokens: 19
                  completion_tokens: 70
                  total_tokens: 89
        '400':
          description: Invalid request parameters
        '401':
          description: Unauthorized - Invalid token
        '500':
          description: Internal server error
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT token for authentication

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.