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

# GLM-5.3

> GLM-5.3 始终启用思考，响应的 reasoning_content 包含推理内容。



## OpenAPI

````yaml api-reference/model-api/zhipu/openapi/glm-5.3/openapi.yaml POST /v1/chat/completions
openapi: 3.1.0
info:
  title: GLM-5.3
  version: 1.0.0
  description: 通过 AnyFast 国内站 OpenAI 兼容接口调用智谱 GLM-5.3。
servers:
  - url: https://www.anyfast.com.cn
security:
  - bearerAuth: []
paths:
  /v1/chat/completions:
    post:
      summary: 创建对话补全
      description: GLM-5.3 始终启用思考，响应的 reasoning_content 包含推理内容。
      operationId: createGlm53ChatCompletion
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Request'
            example:
              model: glm-5.3
              messages:
                - role: user
                  content: 设计一个多地域可靠任务队列。
              thinking:
                type: enabled
              reasoning_effort: max
              max_tokens: 4096
      responses:
        '200':
          description: 请求成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response'
        '400':
          description: 请求参数错误；GLM-5.3 不支持关闭思考
        '401':
          description: API Key 无效或缺失
        '403':
          description: 账户权限或额度不足
        '429':
          description: 请求频率超限
components:
  schemas:
    Request:
      type: object
      required:
        - model
        - messages
      properties:
        model:
          type: string
          enum:
            - glm-5.3
        messages:
          type: array
          minItems: 1
          items:
            type: object
            required:
              - role
              - content
            properties:
              role:
                type: string
                enum:
                  - system
                  - user
                  - assistant
                  - tool
              content:
                type: string
        thinking:
          type: object
          description: 可省略；若传入，仅支持 enabled。
          properties:
            type:
              type: string
              enum:
                - enabled
        reasoning_effort:
          type: string
          enum:
            - low
            - high
            - max
          default: max
        max_tokens:
          type: integer
          minimum: 1
          maximum: 131072
        temperature:
          type: number
          minimum: 0
          maximum: 1
          default: 1
        top_p:
          type: number
          minimum: 0
          maximum: 1
          default: 0.95
        stream:
          type: boolean
          default: false
        tool_stream:
          type: boolean
          default: false
        tools:
          type: array
          items:
            type: object
            additionalProperties: true
        response_format:
          type: object
          additionalProperties: true
        stop:
          type: array
          maxItems: 4
          items:
            type: string
    Response:
      type: object
      properties:
        id:
          type: string
        model:
          type: string
          example: glm-5.3
        choices:
          type: array
          items:
            type: object
            properties:
              index:
                type: integer
              message:
                type: object
                properties:
                  role:
                    type: string
                    example: assistant
                  reasoning_content:
                    type: string
                    description: 推理内容
                  content:
                    type: string
                    description: 最终回答
              finish_reason:
                type: string
        usage:
          type: object
          properties:
            prompt_tokens:
              type: integer
            completion_tokens:
              type: integer
            total_tokens:
              type: integer
            completion_tokens_details:
              type: object
              additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````