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

# MiniMax-M3.1-Flash - OpenAI 兼容接口

> - 使用 OpenAI Chat Completions 协议调用 MiniMax-M3.1-Flash 模型
- **多轮对话**：支持单轮或多轮上下文对话
- **系统提示词**：通过 `role=system` 消息自定义 AI 的角色和行为
- **多模态输入**：`content` 支持文本 + 图像 / 视频混排
- **思考模式**：始终开启，`reasoning_effort` 调节思考深度；思考内容通过 `reasoning_content` 返回，`content` 只包含最终回答
- **流式输出**：支持 SSE 流式返回
- **工具调用**：支持 Function Calling

**流式响应说明**：当 `stream=true` 时，通过 Server-Sent Events 返回，每条消息格式为 `data: {JSON}`，结束时返回 `data: [DONE]`。`choices[].delta` 先增量返回 `reasoning_content`，再增量返回 `content` / `tool_calls`；设置 `stream_options.include_usage=true` 时，结束前额外返回一个包含 `usage` 的数据块。

<Note>
  **BaseURL 说明**：默认 BaseURL 为 `https://direct.evolink.ai`，对文本模型支持更好，支持长连接；`https://api.evolink.ai` 是多模态主力地址，对文本模型作为备用地址使用。
</Note>


## OpenAPI

````yaml cn/api-manual/language-series/minimax-m3.1-flash/minimax-m3.1-flash-chat.json POST /v1/chat/completions
openapi: 3.1.0
info:
  title: MiniMax-M3.1-Flash 完整参数文档 (OpenAI 兼容)
  description: >-
    MiniMax-M3.1-Flash 对话接口的完整 API 参考。


    **模型能力**：

    - 上下文长度：**1,000,000 tokens**（1M）

    - 最大输出：**524,288 tokens**（512K），推荐 **131,072 tokens**（128K），思考 token 计入其中

    - 思考模式：始终开启，通过 `reasoning_effort` 调节思考深度，默认 `max`

    - 多模态输入：支持文本、图像、视频

    - 工具调用：支持 Function Calling

    - 上下文缓存：相同前缀自动命中，命中部分体现在 `usage.prompt_tokens_details.cached_tokens`

    - 流式输出：支持 SSE 流式返回


    多轮对话时，请将上一轮完整 assistant message 原样放回 `messages`，包括 `reasoning_content` 和
    `tool_calls`。
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://direct.evolink.ai
    description: 生产环境（推荐）
  - url: https://api.evolink.ai
    description: 备用地址
security:
  - bearerAuth: []
tags:
  - name: 对话生成
    description: AI 对话生成相关接口
paths:
  /v1/chat/completions:
    post:
      tags:
        - 对话生成
      summary: MiniMax-M3.1-Flash 对话接口（OpenAI 兼容）
      description: >-
        - 使用 OpenAI Chat Completions 协议调用 MiniMax-M3.1-Flash 模型

        - **多轮对话**：支持单轮或多轮上下文对话

        - **系统提示词**：通过 `role=system` 消息自定义 AI 的角色和行为

        - **多模态输入**：`content` 支持文本 + 图像 / 视频混排

        - **思考模式**：始终开启，`reasoning_effort` 调节思考深度；思考内容通过 `reasoning_content`
        返回，`content` 只包含最终回答

        - **流式输出**：支持 SSE 流式返回

        - **工具调用**：支持 Function Calling


        **流式响应说明**：当 `stream=true` 时，通过 Server-Sent Events 返回，每条消息格式为 `data:
        {JSON}`，结束时返回 `data: [DONE]`。`choices[].delta` 先增量返回
        `reasoning_content`，再增量返回 `content` / `tool_calls`；设置
        `stream_options.include_usage=true` 时，结束前额外返回一个包含 `usage` 的数据块。
      operationId: createChatCompletionMiniMaxM31Flash
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChatCompletionRequest'
            examples:
              simple_text:
                summary: 单轮文本对话
                value:
                  model: MiniMax-M3.1-Flash
                  messages:
                    - role: user
                      content: Please introduce yourself.
                  max_completion_tokens: 131072
              multi_turn:
                summary: 多轮对话（上下文理解）
                value:
                  model: MiniMax-M3.1-Flash
                  messages:
                    - role: user
                      content: What is Python?
                    - role: assistant
                      content: Python is a high-level programming language.
                    - role: user
                      content: What are its main advantages?
                  max_completion_tokens: 131072
              system_prompt:
                summary: 使用系统提示词
                value:
                  model: MiniMax-M3.1-Flash
                  messages:
                    - role: system
                      content: >-
                        You are a Python programming assistant. Keep your
                        answers concise.
                    - role: user
                      content: How do I read a file?
                  max_completion_tokens: 131072
              reasoning_effort:
                summary: 调节思考深度
                value:
                  model: MiniMax-M3.1-Flash
                  reasoning_effort: high
                  messages:
                    - role: user
                      content: >-
                        A bat and a ball cost 1.10 in total. The bat costs 1.00
                        more than the ball. How much does the ball cost?
                  max_completion_tokens: 131072
              image_understanding:
                summary: 图像理解（多模态输入）
                value:
                  model: MiniMax-M3.1-Flash
                  messages:
                    - role: user
                      content:
                        - type: text
                          text: What is shown in this image?
                        - type: image_url
                          image_url:
                            url: https://example.com/image.jpeg
                            detail: default
                  max_completion_tokens: 131072
              video_understanding:
                summary: 视频理解（多模态输入）
                value:
                  model: MiniMax-M3.1-Flash
                  messages:
                    - role: user
                      content:
                        - type: text
                          text: Summarize this video.
                        - type: video_url
                          video_url:
                            url: https://example.com/video.mp4
                            fps: 1
                            detail: default
                  max_completion_tokens: 131072
              tool_calling:
                summary: Function Calling 工具调用
                value:
                  model: MiniMax-M3.1-Flash
                  messages:
                    - role: user
                      content: Check the stock for product demo-item-001.
                  tools:
                    - type: function
                      function:
                        name: get_product_stock
                        description: Get the current stock level for a product.
                        parameters:
                          type: object
                          properties:
                            product_id:
                              type: string
                              description: Product identifier.
                          required:
                            - product_id
                  max_completion_tokens: 131072
              streaming:
                summary: 流式输出
                value:
                  model: MiniMax-M3.1-Flash
                  stream: true
                  stream_options:
                    include_usage: true
                  messages:
                    - role: user
                      content: Write a short poem about spring.
                  max_completion_tokens: 131072
      responses:
        '200':
          description: 对话生成成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatCompletionResponse'
              examples:
                with_thinking:
                  summary: 包含思考内容
                  value:
                    id: 072514edea627212c7e226a55bcf4e2e
                    choices:
                      - finish_reason: stop
                        index: 0
                        message:
                          content: '0.05'
                          role: assistant
                          name: MiniMax AI
                          audio_content: ''
                          reasoning_content: >-
                            Let the ball cost x. Then 2x + 1 = 1.10, so x =
                            0.05.
                    created: 1792401901
                    model: MiniMax-M3.1-Flash
                    object: chat.completion
                    usage:
                      total_tokens: 281
                      total_characters: 0
                      prompt_tokens: 229
                      completion_tokens: 52
                      completion_tokens_details:
                        reasoning_tokens: 49
                      prompt_tokens_details:
                        cached_tokens: 187
                    input_sensitive: false
                    output_sensitive: false
                    input_sensitive_type: 0
                    output_sensitive_type: 0
                    output_sensitive_int: 0
                    base_resp:
                      status_code: 0
                      status_msg: ''
                direct_answer:
                  summary: 直接回答（无思考内容）
                  value:
                    id: 072514cc3cee91b3222f36a2a386128f
                    choices:
                      - finish_reason: stop
                        index: 0
                        message:
                          content: >-
                            Recursion is a technique in which a function calls
                            itself to solve smaller instances of a problem.
                          role: assistant
                          name: MiniMax AI
                          audio_content: ''
                    created: 1792401868
                    model: MiniMax-M3.1-Flash
                    object: chat.completion
                    usage:
                      total_tokens: 219
                      total_characters: 0
                      prompt_tokens: 208
                      completion_tokens: 11
                      prompt_tokens_details:
                        cached_tokens: 58
                    input_sensitive: false
                    output_sensitive: false
                    input_sensitive_type: 0
                    output_sensitive_type: 0
                    output_sensitive_int: 0
                    base_resp:
                      status_code: 0
                      status_msg: ''
                tool_calls:
                  summary: 触发工具调用（finish_reason=tool_calls）
                  value:
                    id: 072514ce0ad459c5ac53494746f66488
                    choices:
                      - finish_reason: tool_calls
                        index: 0
                        message:
                          content: I'll check the stock for product demo-item-001.
                          role: assistant
                          name: MiniMax AI
                          tool_calls:
                            - id: call_function_fr79bzcw7n6k_1
                              type: function
                              function:
                                name: get_product_stock
                                arguments: '{"product_id": "demo-item-001"}'
                              index: 0
                          audio_content: ''
                    created: 1792401870
                    model: MiniMax-M3.1-Flash
                    object: chat.completion
                    usage:
                      total_tokens: 483
                      total_characters: 0
                      prompt_tokens: 446
                      completion_tokens: 37
                      prompt_tokens_details:
                        cached_tokens: 227
                    input_sensitive: false
                    output_sensitive: false
                    input_sensitive_type: 0
                    output_sensitive_type: 0
                    output_sensitive_int: 0
                    base_resp:
                      status_code: 0
                      status_msg: ''
                length:
                  summary: 达到输出上限（finish_reason=length）
                  value:
                    id: 072513cf5d12aa74e53c700e4e1edf9e
                    choices:
                      - finish_reason: length
                        index: 0
                        message:
                          content: ''
                          role: assistant
                          name: MiniMax AI
                          audio_content: ''
                          reasoning_content: I need to explain the process step by step.
                    created: 1792401615
                    model: MiniMax-M3.1-Flash
                    object: chat.completion
                    usage:
                      total_tokens: 219
                      total_characters: 0
                      prompt_tokens: 211
                      completion_tokens: 8
                      completion_tokens_details:
                        reasoning_tokens: 8
                      prompt_tokens_details:
                        cached_tokens: 184
                    input_sensitive: false
                    output_sensitive: false
                    input_sensitive_type: 0
                    output_sensitive_type: 0
                    output_sensitive_int: 0
                    base_resp:
                      status_code: 0
                      status_msg: ''
        '400':
          description: 请求参数错误
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  message: Invalid request parameters
                  type: invalid_request_error
                  param: ''
                  code: null
        '401':
          description: 未认证、Token 无效或过期
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 401
                  message: Invalid or expired token
                  type: authentication_error
        '402':
          description: 配额不足、需要充值
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 402
                  message: Insufficient quota
                  type: insufficient_quota_error
        '403':
          description: 无权限访问该模型
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 403
                  message: Access denied for this model
                  type: permission_error
                  param: model
        '404':
          description: 资源不存在
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 404
                  message: Specified model not found
                  type: not_found_error
                  param: model
        '413':
          description: 请求体过大
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 413
                  message: Request body too large
                  type: request_too_large_error
                  param: messages
        '429':
          description: 请求频率超限
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 429
                  message: Rate limit exceeded
                  type: rate_limit_error
        '500':
          description: 服务器内部错误
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 500
                  message: Internal server error
                  type: internal_server_error
        '502':
          description: 网关错误
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 502
                  message: Bad gateway
                  type: bad_gateway_error
        '503':
          description: 服务暂时不可用
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 503
                  message: Service temporarily unavailable
                  type: service_unavailable_error
components:
  schemas:
    ChatCompletionRequest:
      type: object
      required:
        - model
        - messages
      properties:
        model:
          type: string
          description: 对话模型名称
          enum:
            - MiniMax-M3.1-Flash
          example: MiniMax-M3.1-Flash
        messages:
          type: array
          description: |-
            对话消息列表，支持多轮对话

            不同角色的消息具有不同的字段结构，请选择对应角色查看
          items:
            oneOf:
              - $ref: '#/components/schemas/SystemMessage'
              - $ref: '#/components/schemas/UserMessage'
              - $ref: '#/components/schemas/AssistantRequestMessage'
              - $ref: '#/components/schemas/ToolMessage'
            discriminator:
              propertyName: role
              mapping:
                system: '#/components/schemas/SystemMessage'
                user: '#/components/schemas/UserMessage'
                assistant: '#/components/schemas/AssistantRequestMessage'
                tool: '#/components/schemas/ToolMessage'
          minItems: 1
        reasoning_effort:
          type: string
          description: 思考深度，默认 `max`。较高档位通常会增加思考 token 消耗和响应时间。
          enum:
            - low
            - medium
            - high
            - xhigh
            - max
          default: max
          example: high
        thinking:
          type: object
          description: 思考模式。MiniMax-M3.1-Flash 始终进行思考，仅支持 `adaptive`，可省略
          properties:
            type:
              type: string
              enum:
                - adaptive
              default: adaptive
        reasoning_split:
          type: boolean
          description: 思考内容是否单独返回。仅支持 `true`，思考内容通过 `reasoning_content` 返回，可省略
          enum:
            - true
          default: true
        temperature:
          type: number
          description: |-
            采样温度，控制输出的随机性

            **说明**：
            - 取值范围 `[0, 2]`，默认 1
            - 较低值输出更确定，较高值输出更多样

            **建议**：不要同时调整 temperature 和 top_p
          minimum: 0
          maximum: 2
          default: 1
          example: 1
        top_p:
          type: number
          description: |-
            核采样（Nucleus Sampling）参数

            **说明**：
            - 控制从累积概率前多少的 token 中采样
            - 例如 0.95 表示从累积概率达到 95% 的 token 中选择
            - 取值范围 `[0, 1]`，默认 0.95

            **建议**：不要同时调整 temperature 和 top_p
          minimum: 0
          maximum: 1
          default: 0.95
          example: 0.95
        max_completion_tokens:
          type: integer
          description: |-
            生成内容长度上限（Token 数），**包含思考和回答**

            **说明**：
            - 推荐 **131,072**（128K），最大 **524,288**（512K）
            - 取值过小时可能在思考阶段就达到上限，返回 `finish_reason=length` 且 `content` 为空
          minimum: 1
          maximum: 524288
          example: 131072
        stream:
          type: boolean
          description: |-
            是否以流式方式返回响应

            - `true`：流式返回，通过 SSE（Server-Sent Events）逐块实时返回内容
            - `false`：等待完整响应后一次性返回（默认）
          default: false
          example: false
        stream_options:
          type: object
          description: |-
            流式响应选项

            仅在 `stream=true` 时有效
          properties:
            include_usage:
              type: boolean
              description: 是否在流式结束前额外返回一个仅含 `usage` 统计的数据块
        tools:
          type: array
          description: |-
            工具定义列表，用于 Function Calling

            每个工具需要定义名称、描述和参数 schema
          items:
            $ref: '#/components/schemas/Tool'
        tool_choice:
          type: string
          description: 工具选择策略，仅支持 `auto`（由模型决定是否调用工具）
          enum:
            - auto
          default: auto
        max_tokens:
          type: integer
          description: |-
            旧版生成长度限制参数

            **说明**：已弃用，请改用 `max_completion_tokens`
          deprecated: true
          minimum: 1
        'n':
          type: integer
          description: 生成的回复数量，仅支持 `1`
          enum:
            - 1
          default: 1
    ChatCompletionResponse:
      type: object
      properties:
        id:
          type: string
          description: 对话完成的唯一标识符
          example: 0668a381bdc3c0ded310e27c9a46d16e7
        model:
          type: string
          description: 实际使用的模型名称
          example: MiniMax-M3.1-Flash
        object:
          type: string
          enum:
            - chat.completion
          description: 响应类型
          example: chat.completion
        created:
          type: integer
          description: 创建时间戳（Unix 秒）
          example: 1777026807
        choices:
          type: array
          description: 对话生成的选择列表
          items:
            $ref: '#/components/schemas/Choice'
        usage:
          $ref: '#/components/schemas/Usage'
        input_sensitive:
          type: boolean
          description: 输入内容是否命中敏感词。若输入严重违规，接口会返回内容违规错误，回复内容为空
        input_sensitive_type:
          type: integer
          description: >-
            输入命中敏感词类型（`input_sensitive` 为 true 时返回）：1 严重违规；2 色情；3 广告；4 违禁；5 谩骂；6
            暴恐；7 其他
        output_sensitive:
          type: boolean
          description: 输出内容是否命中敏感词
        output_sensitive_type:
          type: integer
          description: 输出命中敏感词类型
        base_resp:
          type: object
          description: 状态码和错误详情
          properties:
            status_code:
              type: integer
              description: >-
                状态码，`0` 表示成功；其他如 `1002` 触发限流、`1008` 余额不足、`1039` Token 超限、`2013`
                参数错误等
            status_msg:
              type: string
              description: 错误详情
        output_sensitive_int:
          type: integer
          description: 输出命中敏感词类型的数值标识
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type:
                - integer
                - string
                - 'null'
              description: HTTP 状态错误代码
            message:
              type: string
              description: 错误描述信息
            type:
              type: string
              description: 错误类型
            param:
              type: string
              description: 相关参数名称
    SystemMessage:
      title: System Message
      type: object
      required:
        - role
        - content
      properties:
        role:
          type: string
          enum:
            - system
          description: 角色标识，固定为 `system`
        content:
          type: string
          description: 系统提示词内容，用于设定 AI 的角色和行为
        name:
          type: string
          description: 参与者名称，用于区分不同的系统提示来源
    UserMessage:
      title: User Message
      type: object
      required:
        - role
        - content
      properties:
        role:
          type: string
          enum:
            - user
          description: 角色标识，固定为 `user`
        content:
          description: |-
            用户消息内容

            **说明**：
            - 纯文本时直接传字符串
            - 多模态时传 content part 数组，支持 `text` / `image_url`（图片）/ `video_url`（视频）
            - 请求体最大 64 MB
          oneOf:
            - type: string
            - type: array
              items:
                $ref: '#/components/schemas/ContentPart'
        name:
          type: string
          description: 参与者名称，用于区分不同的用户
    AssistantRequestMessage:
      title: Assistant Message
      type: object
      required:
        - role
      properties:
        role:
          type: string
          enum:
            - assistant
          description: 角色标识，固定为 `assistant`
        content:
          type:
            - string
            - 'null'
          description: |-
            助手消息内容

            **说明**：
            - 用于多轮对话中传递历史助手回复
            - 当存在 `tool_calls` 时可为 `null`
        reasoning_content:
          type: string
          description: 上一轮返回的思考内容，多轮对话时原样回传
        name:
          type: string
          description: 参与者名称
        tool_calls:
          type: array
          description: |-
            工具调用列表

            用于在多轮对话中传递历史的工具调用信息
          items:
            type: object
            properties:
              id:
                type: string
                description: 工具调用的唯一标识符
              type:
                type: string
                enum:
                  - function
              function:
                type: object
                properties:
                  name:
                    type: string
                    description: 调用的函数名称
                  arguments:
                    type: string
                    description: 函数参数（JSON 字符串）
    ToolMessage:
      title: Tool Message
      type: object
      required:
        - role
        - content
        - tool_call_id
      properties:
        role:
          type: string
          enum:
            - tool
          description: 角色标识，固定为 `tool`
        content:
          type: string
          description: 工具调用的返回结果内容
        tool_call_id:
          type: string
          description: |-
            工具调用 ID

            对应 assistant 消息中 `tool_calls` 返回的 `id` 字段
    Tool:
      type: object
      required:
        - type
        - function
      properties:
        type:
          type: string
          enum:
            - function
          description: 工具类型，目前仅支持 `function`
        function:
          type: object
          required:
            - name
            - parameters
          properties:
            name:
              type: string
              description: |-
                要调用的函数名称

                **说明**：
                - 必须由 a-z、A-Z、0-9 字符组成，或包含下划线和连字符
                - 最大长度为 64 个字符
            description:
              type: string
              description: 函数功能描述，供模型理解何时以及如何调用该函数
            parameters:
              type: object
              description: 函数的输入参数，以 JSON Schema 对象描述
    Choice:
      type: object
      properties:
        index:
          type: integer
          description: 选择的索引
          example: 0
        message:
          $ref: '#/components/schemas/AssistantMessage'
        finish_reason:
          type: string
          description: |-
            完成原因

            - `stop`：自然结束或触发停止序列
            - `length`：达到最大 token 限制
            - `content_filter`：内容被安全策略过滤
            - `tool_calls`：模型调用了工具
          enum:
            - stop
            - length
            - content_filter
            - tool_calls
          example: stop
    Usage:
      type: object
      description: Token 使用统计信息
      properties:
        total_tokens:
          type: integer
          description: 消耗的总 token 数
          example: 1604
        total_characters:
          type: integer
          description: 消耗的总字符数
          example: 0
        prompt_tokens:
          type: integer
          description: 输入 token 总数（含缓存命中部分）
          example: 1365
        completion_tokens:
          type: integer
          description: 输出 token 数量（含思考部分）
          example: 239
        completion_tokens_details:
          type: object
          description: 输出 token 详细分项
          properties:
            reasoning_tokens:
              type: integer
              description: 思考产生的 token 数
              example: 49
        prompt_tokens_details:
          type: object
          description: 输入 token 详细分项
          properties:
            cached_tokens:
              type: integer
              description: |-
                命中缓存的输入 token 数

                命中部分按缓存命中价计费；未命中部分 = `prompt_tokens - cached_tokens`，按标准输入价计费
              example: 114
    ContentPart:
      type: object
      description: 多模态内容片段，通过 `type` 声明类型，仅填写与该类型匹配的字段
      properties:
        type:
          type: string
          enum:
            - text
            - image_url
            - video_url
          description: |-
            内容类型

            - `text`：文本块
            - `image_url`：图片输入
            - `video_url`：视频输入
        text:
          type: string
          description: 当 `type=text` 时的文本内容
        image_url:
          type: object
          description: 图片输入（当 `type=image_url` 时），单张图片最大 10 MB，支持 JPEG / PNG / GIF / WEBP
          required:
            - url
          properties:
            url:
              type: string
              description: 图片 URL，或 `data:` 开头的 base64 data URL
            detail:
              type: string
              description: |-
                控制图片解析分辨率

                - `low`：低精度，消耗 token 更少
                - `default`：默认精度
                - `high`：高精度，识别更细节但消耗 token 更多
              enum:
                - low
                - default
                - high
              default: default
            max_long_side_pixel:
              type: integer
              description: 图片最长边像素限制
              minimum: 1
        video_url:
          type: object
          description: >-
            视频输入（当 `type=video_url` 时），URL / Base64 视频最大 50 MB，支持 MP4 / AVI /
            MOV / MKV
          required:
            - url
          properties:
            url:
              type: string
              description: >-
                视频 URL、`data:` 开头的 base64 data URL，或形如 `mm_file://{file_id}`
                的文件引用
            detail:
              type: string
              description: 控制视频抽帧分辨率
              enum:
                - low
                - default
                - high
              default: default
            fps:
              type: number
              description: 视频抽帧频率，默认 1，范围 [0.2, 5]。较高的抽帧频率有利于捕捉画面变化，通常也会增加 token 消耗。
              minimum: 0.2
              maximum: 5
              default: 1
            max_long_side_pixel:
              type: integer
              description: 视频单帧最长边像素限制
              minimum: 1
    AssistantMessage:
      type: object
      properties:
        role:
          type: string
          description: 消息发送者的角色
          enum:
            - assistant
          example: assistant
        content:
          type:
            - string
            - 'null'
          description: 最终回答内容，不含思考过程（触发工具调用时可为 `null`）
          example: '0.05'
        reasoning_content:
          type: string
          description: 思考内容。简单问题可能不产生思考内容，此时不返回该字段
          example: Let the ball cost x. Then 2x + 1 = 1.10, so x = 0.05.
        name:
          type: string
          description: 发送者名称
        audio_content:
          type: string
          description: 音频内容（纯文本对话场景为空字符串）
        tool_calls:
          type: array
          description: 工具调用列表（当模型决定调用工具时返回）
          items:
            type: object
            properties:
              id:
                type: string
                description: 工具调用的唯一标识符
              type:
                type: string
                enum:
                  - function
              function:
                type: object
                properties:
                  name:
                    type: string
                    description: 调用的函数名称
                  arguments:
                    type: string
                    description: 函数参数（JSON 字符串）
              index:
                type: integer
                description: 工具调用索引
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: |-
        所有接口均需要使用 Bearer Token 进行认证

        **获取 API Key**：

        访问 [API Key 管理页面](https://evolink.ai/dashboard/keys) 获取您的 API Key

        **使用时在请求头中添加**：
        ```
        Authorization: Bearer YOUR_API_KEY
        ```

````

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