> ## 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 全模型接口 - Messages 完整参数

> - 使用 Anthropic Messages 协议调用 MiniMax 系列模型，通过 `model` 参数选择具体型号
- 请求 / 响应结构与 Anthropic API 对齐
- **多模态对话**：`MiniMax-M4`、`MiniMax-M3.1-Flash`、`MiniMax-M3` 的 `content` 支持文本、图像、视频内容块；`MiniMax-M2.5` 仅支持文本
- **系统提示词**：通过顶层 `system` 传入
- **思考模式**：思考内容通过 `content[type=thinking]` block 返回；`MiniMax-M3` 需传入 `thinking` 才会思考，`MiniMax-M2.5` 不返回 thinking block
- **流式输出**：SSE 事件流
- **工具调用**：兼容 Anthropic `tool_use` / `tool_result` 流程（`MiniMax-M2.5` 除外）

**流式事件**：`message_start` → `content_block_start` → `content_block_delta`（`thinking_delta` / `signature_delta` / `text_delta` / `input_json_delta`）→ `content_block_stop` → `message_delta` → `message_stop`，期间可能穿插 `ping`。最终用量以 `message_delta` 事件中的 `usage` 为准。

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

> [!NOTE]
>
> **思考控制因模型而异**：`MiniMax-M4` 与 `MiniMax-M3.1-Flash` 始终思考，用 `output_config.effort` 调节深度（`low` / `medium` / `high` / `xhigh` / `max`，默认 `max`），传入 `thinking.type: "disabled"` 或 `effort: "none"` 会返回 400 错误。`MiniMax-M3` 省略 `thinking` 时不思考，传入 `{"type": "adaptive"}` 开启。`MiniMax-M2.5` 始终思考，但本接口不返回 thinking 块。

> [!NOTE]
>
> **最大输出因模型而异**：`MiniMax-M4` 为 262,144 tokens，`MiniMax-M3.1-Flash` 与 `MiniMax-M3` 为 524,288 tokens，`MiniMax-M2.5` 为 32,768 tokens，思考 token 计入其中。

> [!NOTE]
>
> **`MiniMax-M2.5` 的限制**：只接受文本，本接口不支持工具调用。需要工具调用请改用 [Chat Completions 接口](https://evolink.ai/docs/cn/api-manual/language-series/minimax/chat-completions/chat-completions-reference.md)。


## OpenAPI

````yaml cn/api-manual/language-series/minimax/messages/messages-reference.json POST /v1/messages
openapi: 3.1.0
info:
  title: MiniMax 全模型接口 - Messages 完整参数
  description: >-
    通过 Anthropic Messages 协议调用 MiniMax 文本模型的完整 API 参考。


    **收录模型**：`MiniMax-M4`、`MiniMax-M3.1-Flash`、`MiniMax-M3`、`MiniMax-M2.5`（用
    `model` 参数选择）


    **兼容说明**：

    - 路径：`/v1/messages`（Anthropic 标准路径）

    - 请求 / 响应结构与 Anthropic Messages API 一致

    - 已支持字段：`model` `messages` `max_tokens`（必填）`system` `temperature` `top_p`
    `stream` `thinking` `output_config` `tools` `tool_choice`

    - 不支持 `cache_control`，相同前缀自动命中缓存，命中部分体现在 `usage.cache_read_input_tokens`


    **模型间差异**（上下文长度、最大输出、思考控制、图像与视频输入、工具调用）见下方
    `model`、`thinking`、`output_config` 与 `max_tokens` 字段说明。


    多轮对话时，请原样回传完整 assistant 内容块，包括 `thinking`（含 `signature`）与 `tool_use`。
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://direct.evolink.ai
    description: 生产环境（推荐）
  - url: https://api.evolink.ai
    description: 备用地址
security:
  - bearerAuth: []
tags:
  - name: Messages
    description: Anthropic Messages 协议接口
paths:
  /v1/messages:
    post:
      tags:
        - Messages
      summary: MiniMax Messages 接口（全模型，Anthropic 兼容）
      description: >-
        - 使用 Anthropic Messages 协议调用 MiniMax 系列模型，通过 `model` 参数选择具体型号

        - 请求 / 响应结构与 Anthropic API 对齐

        - **多模态对话**：`MiniMax-M4`、`MiniMax-M3.1-Flash`、`MiniMax-M3` 的 `content`
        支持文本、图像、视频内容块；`MiniMax-M2.5` 仅支持文本

        - **系统提示词**：通过顶层 `system` 传入

        - **思考模式**：思考内容通过 `content[type=thinking]` block 返回；`MiniMax-M3` 需传入
        `thinking` 才会思考，`MiniMax-M2.5` 不返回 thinking block

        - **流式输出**：SSE 事件流

        - **工具调用**：兼容 Anthropic `tool_use` / `tool_result` 流程（`MiniMax-M2.5` 除外）


        **流式事件**：`message_start` → `content_block_start` →
        `content_block_delta`（`thinking_delta` / `signature_delta` /
        `text_delta` / `input_json_delta`）→ `content_block_stop` →
        `message_delta` → `message_stop`，期间可能穿插 `ping`。最终用量以 `message_delta`
        事件中的 `usage` 为准。
      operationId: createMessageMiniMax
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateMessageRequest'
            examples:
              simple:
                summary: 最小可运行请求
                value:
                  model: MiniMax-M4
                  max_tokens: 131072
                  messages:
                    - role: user
                      content: Hello! How can you help me?
              system_prompt:
                summary: 使用系统提示词
                value:
                  model: MiniMax-M4
                  max_tokens: 131072
                  system: >-
                    You are a technical editor. Keep your answers clear and
                    concise.
                  messages:
                    - role: user
                      content: >-
                        Describe the benefits of clear technical documentation
                        in three sentences.
              effort:
                summary: 调节思考深度（output_config.effort）
                value:
                  model: MiniMax-M4
                  max_tokens: 131072
                  output_config:
                    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?
              image_understanding:
                summary: 图像理解（多模态内容块）
                value:
                  model: MiniMax-M4
                  max_tokens: 131072
                  messages:
                    - role: user
                      content:
                        - type: text
                          text: What is shown in this image?
                        - type: image
                          source:
                            type: url
                            url: https://example.com/image.jpeg
              video_understanding:
                summary: 视频理解（多模态内容块）
                value:
                  model: MiniMax-M4
                  max_tokens: 131072
                  messages:
                    - role: user
                      content:
                        - type: text
                          text: Summarize this video.
                        - type: video
                          source:
                            type: url
                            url: https://example.com/video.mp4
                            fps: 1
              tool_use:
                summary: 工具调用（Anthropic tool_use 风格）
                value:
                  model: MiniMax-M4
                  max_tokens: 131072
                  messages:
                    - role: user
                      content: Check the stock for product demo-item-001.
                  tools:
                    - name: get_product_stock
                      description: Get the current stock level for a product.
                      input_schema:
                        type: object
                        properties:
                          product_id:
                            type: string
                            description: Product identifier.
                        required:
                          - product_id
                  tool_choice:
                    type: auto
              streaming:
                summary: 流式输出（SSE）
                value:
                  model: MiniMax-M4
                  max_tokens: 131072
                  stream: true
                  messages:
                    - role: user
                      content: Write a short poem about spring.
              m3_thinking:
                summary: MiniMax-M3 开启思考
                description: '`MiniMax-M3` 在本接口默认不思考，传入 `thinking` 后才返回 thinking 块。'
                value:
                  model: MiniMax-M3
                  max_tokens: 131072
                  thinking:
                    type: adaptive
                  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?
              m25_text:
                summary: 调用 MiniMax-M2.5（仅文本）
                description: '`MiniMax-M2.5` 最大输出 32,768 tokens，只接受文本输入，本接口不支持工具调用。'
                value:
                  model: MiniMax-M2.5
                  max_tokens: 4096
                  messages:
                    - role: user
                      content: Explain recursion in one sentence.
      responses:
        '200':
          description: 消息对象
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageResponse'
              examples:
                with_thinking:
                  summary: 包含思考内容（thinking block）
                  value:
                    id: example_a9e449
                    type: message
                    role: assistant
                    model: MiniMax-M3.1-Flash
                    content:
                      - thinking: Let the ball cost x. Then 2x + 1 = 1.10, so x = 0.05.
                        signature: EXAMPLE_THINKING_SIGNATURE
                        type: thinking
                      - text: '0.05'
                        type: text
                    usage:
                      input_tokens: 55
                      output_tokens: 66
                      cache_creation_input_tokens: 0
                      cache_read_input_tokens: 174
                      output_tokens_details:
                        thinking_tokens: 63
                    stop_reason: end_turn
                direct_answer:
                  summary: 直接回答（无思考内容）
                  value:
                    id: example_ac2b01
                    type: message
                    role: assistant
                    model: MiniMax-M3.1-Flash
                    content:
                      - text: >-
                          Recursion is a technique in which a function calls
                          itself to solve smaller instances of a problem.
                        type: text
                    usage:
                      input_tokens: 23
                      output_tokens: 6
                      cache_creation_input_tokens: 0
                      cache_read_input_tokens: 184
                    stop_reason: end_turn
                tool_use:
                  summary: 触发工具调用（stop_reason=tool_use）
                  value:
                    id: example_99733d
                    type: message
                    role: assistant
                    model: MiniMax-M3.1-Flash
                    content:
                      - type: tool_use
                        id: call_example_1
                        name: get_product_stock
                        input:
                          product_id: demo-item-001
                    usage:
                      input_tokens: 283
                      output_tokens: 31
                      cache_creation_input_tokens: 0
                      cache_read_input_tokens: 174
                    stop_reason: tool_use
                m25_answer:
                  summary: MiniMax-M2.5 返回（不含 thinking 块）
                  value:
                    id: chatcmpl-example
                    type: message
                    role: assistant
                    content:
                      - type: text
                        text: >-
                          Recursion is a technique in which a function calls
                          itself to solve smaller instances of a problem.
                    stop_reason: end_turn
                    model: MiniMax-M2.5
                    usage:
                      input_tokens: 44
                      cache_creation_input_tokens: 0
                      cache_read_input_tokens: 0
                      output_tokens: 101
        '400':
          description: 请求参数错误
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                type: error
                request_id: req_xxx
                error:
                  type: invalid_request_error
                  message: Invalid request
        '401':
          description: 身份验证错误
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                type: error
                error:
                  type: authentication_error
                  message: Authentication error
        '402':
          description: 配额不足
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                type: error
                error:
                  type: billing_error
                  message: Insufficient quota
        '403':
          description: 权限错误
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                type: error
                error:
                  type: permission_error
                  message: Permission denied
        '404':
          description: 模型或资源不存在
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                type: error
                error:
                  type: not_found_error
                  message: Model not found
        '429':
          description: 速率限制
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                type: error
                error:
                  type: rate_limit_error
                  message: Rate limited
        '500':
          description: 内部服务器错误
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '502':
          description: 网关错误
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: 服务暂时不可用
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    CreateMessageRequest:
      type: object
      required:
        - model
        - messages
        - max_tokens
      properties:
        model:
          type: string
          description: >-
            要调用的模型：


            | 模型 ID | 上下文 | 最大输出 | 思考 |

            |---|---|---|---|

            | `MiniMax-M4` | 1,000,000 | 262,144 | 始终思考，可调深度 |

            | `MiniMax-M3.1-Flash` | 1,000,000 | 524,288 | 始终思考，可调深度 |

            | `MiniMax-M3` | 1,000,000 | 524,288 | 默认不思考，可开启，不可调深度 |

            | `MiniMax-M2.5` | 204,800 | 32,768 | 始终思考，不返回 thinking 块 |


            最大输出包含思考 token。`MiniMax-M2.5` 只接受文本，其余三个模型支持图像与视频输入。思考的开关与深度见
            `thinking`、`output_config` 字段。`MiniMax-M2.5` 在本接口不支持工具调用，需要工具调用请使用
            Chat Completions 接口。
          enum:
            - MiniMax-M4
            - MiniMax-M3.1-Flash
            - MiniMax-M3
            - MiniMax-M2.5
          example: MiniMax-M4
        max_tokens:
          type: integer
          description: >-
            生成内容长度上限（Token 数），**包含思考和回答**


            | 模型 | 推荐值 | 最大值 |

            |---|---|---|

            | `MiniMax-M4` | 131,072 | **262,144** |

            | `MiniMax-M3.1-Flash` | 131,072 | **524,288** |

            | `MiniMax-M3` | 131,072 | **524,288** |

            | `MiniMax-M2.5` | 按需设置 | **32,768** |


            请勿超过所选模型的最大值。取值过小时可能在思考阶段就达到上限，返回 `stop_reason=max_tokens` 且没有 text
            内容。
          minimum: 1
          maximum: 524288
          example: 131072
        messages:
          type: array
          description: |-
            对话消息列表，按轮次 user / assistant 交替

            **说明**：
            - 至少包含 1 条消息
            - 最后一条消息通常为 `role=user`
          items:
            $ref: '#/components/schemas/InputMessage'
          minItems: 1
        system:
          description: 系统提示词，用于设定 AI 角色与行为。支持字符串或文本内容块数组，通过顶层 `system` 字段传入。
          oneOf:
            - type: string
              example: You are a helpful assistant.
            - type: array
              description: 内容块数组格式的系统提示词
              items:
                type: object
                required:
                  - type
                  - text
                properties:
                  type:
                    type: string
                    enum:
                      - text
                  text:
                    type: string
        temperature:
          type: number
          description: |-
            采样温度

            - `MiniMax-M4`、`MiniMax-M3.1-Flash`、`MiniMax-M3`：固定为 1，传入的值不会生效
            - `MiniMax-M2.5`：默认 1，可以调整；数值越低输出越稳定，越高越多样

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


            - `MiniMax-M4`、`MiniMax-M3.1-Flash`、`MiniMax-M3`：固定为
            0.95，传入的值不会生效；如需传入，请使用 (0, 1] 之间的值

            - `MiniMax-M2.5`：默认 0.95，取值范围 (0, 1]


            **建议**：不要同时调整 temperature 和 top_p
          exclusiveMinimum: 0
          maximum: 1
          default: 0.95
          example: 0.95
        stream:
          type: boolean
          description: |-
            是否以 SSE 流式返回

            - `true`：Server-Sent Events 流式返回
            - `false`：完整响应后一次性返回（默认）
          default: false
          example: false
        thinking:
          type: object
          description: >-
            思考开关


            - `MiniMax-M4`、`MiniMax-M3.1-Flash`：始终思考，`type` 只接受
            `adaptive`，可省略；传入 `disabled` 会返回 400 错误

            - `MiniMax-M3`：省略时不思考；传入 `{"type": "adaptive"}` 开启思考并返回 thinking
            块，`disabled` 关闭思考

            - `MiniMax-M2.5`：始终思考，但本接口不返回 thinking 块，思考 token 仍计入
            `output_tokens`；请勿传入该字段


            思考内容以 `type="thinking"` 的 block 返回，按输出 token 计费
          required:
            - type
          properties:
            type:
              type: string
              enum:
                - adaptive
                - disabled
        output_config:
          type: object
          description: 输出配置
          properties:
            effort:
              type: string
              description: >-
                思考深度，可选 `low`、`medium`、`high`、`xhigh`、`max`。较高档位通常会增加思考 token
                消耗和响应时间。


                - `MiniMax-M4`、`MiniMax-M3.1-Flash`：省略时为 `max`；不接受 `none`，传入会返回
                400 错误

                - `MiniMax-M3`：不能调节思考深度，传入会被忽略

                - `MiniMax-M2.5`：不能调节思考深度，请勿传入
              enum:
                - low
                - medium
                - high
                - xhigh
                - max
              example: high
        tools:
          type: array
          description: |-
            工具定义列表

            **说明**：
            - 遵循 Anthropic tool 定义规范
            - `input_schema` 使用 JSON Schema 对象
            - `MiniMax-M2.5` 在本接口不支持工具调用，需要工具调用请使用 Chat Completions 接口
          items:
            $ref: '#/components/schemas/Tool'
        tool_choice:
          type: object
          description: 工具选择策略，仅支持 `auto`（由模型决定是否调用工具）
          required:
            - type
          properties:
            type:
              type: string
              enum:
                - auto
    MessageResponse:
      type: object
      description: Anthropic 风格的消息响应
      properties:
        id:
          type: string
          description: 消息唯一 ID
        type:
          type: string
          enum:
            - message
          description: 响应对象类型
        role:
          type: string
          enum:
            - assistant
        model:
          type: string
          description: 实际使用的模型
          example: MiniMax-M4
        content:
          type: array
          description: |-
            响应内容块列表

            **可能包含的 block type**：
            - `thinking`：思考过程（简单问题可能不产生；`MiniMax-M2.5` 不返回）
            - `text`：最终回答文本
            - `tool_use`：模型发起的工具调用
          items:
            $ref: '#/components/schemas/OutputContentBlock'
        stop_reason:
          type: string
          description: |-
            停止原因

            - `end_turn`：自然结束
            - `max_tokens`：达到 max_tokens 上限
            - `tool_use`：模型触发工具调用
          enum:
            - end_turn
            - max_tokens
            - tool_use
        usage:
          $ref: '#/components/schemas/AnthropicUsage'
    ErrorResponse:
      type: object
      properties:
        type:
          type: string
          enum:
            - error
        error:
          type: object
          properties:
            type:
              type: string
              description: >-
                错误类型（如 invalid_request_error / authentication_error /
                billing_error 等）
            message:
              type: string
              description: 错误描述
        request_id:
          type: string
          description: 请求追踪 ID
    InputMessage:
      type: object
      required:
        - role
        - content
      properties:
        role:
          type: string
          enum:
            - user
            - assistant
          description: |-
            消息发送方角色，user / assistant 交替

            - `user`：用户消息（也用于回传 `tool_result` block）
            - `assistant`：助手历史回复（可含 `text` / `thinking` / `tool_use` blocks）

            系统提示通过顶层 `system` 字段传入。
        content:
          description: >-
            消息内容


            **说明**：

            - 纯文本时直接传字符串

            - 结构化时传 content block 数组（`text` / `image` / `video` / `tool_use` /
            `tool_result` / `thinking`）
          oneOf:
            - type: string
            - type: array
              items:
                $ref: '#/components/schemas/ContentBlock'
    Tool:
      type: object
      required:
        - name
        - input_schema
      properties:
        name:
          type: string
          description: |-
            工具名称

            **说明**：
            - 只允许 `a-zA-Z0-9_-`
            - 最大 64 字符
        description:
          type: string
          description: 工具功能描述，供模型判断何时调用
        input_schema:
          type: object
          description: |-
            工具入参的 JSON Schema 对象

            **说明**：
            - `type` 必须为 `object`
            - 应声明 `properties` 与 `required`
    OutputContentBlock:
      type: object
      description: 响应中的内容块
      properties:
        type:
          type: string
          enum:
            - text
            - thinking
            - tool_use
        text:
          type: string
          description: type=`text` 时的文本
        thinking:
          type: string
          description: type=`thinking` 时的推理过程文本
        signature:
          type: string
          description: >-
            type=`thinking` 时的完整性签名，用于多轮上下文校验。示例中的 `signature`
            是占位符。发送下一轮请求时，请使用上一次响应中该字段的完整值。
        id:
          type: string
          description: type=`tool_use` 时的工具调用 ID
        name:
          type: string
          description: type=`tool_use` 时的工具名
        input:
          type: object
          description: type=`tool_use` 时模型生成的 JSON 入参
    AnthropicUsage:
      type: object
      description: Token 使用统计（Anthropic 规范）
      properties:
        input_tokens:
          type: integer
          description: 未命中缓存的输入 token 数（不含 `cache_read_input_tokens`）
          example: 55
        output_tokens:
          type: integer
          description: 输出 token 数（含 thinking）
          example: 66
        cache_creation_input_tokens:
          type: integer
          description: 缓存创建的输入 token 数，自动缓存下为 0
          example: 0
        cache_read_input_tokens:
          type: integer
          description: >-
            命中缓存的输入 token 数，按缓存命中价计费。完整输入 = `input_tokens +
            cache_read_input_tokens`
          example: 174
        output_tokens_details:
          type: object
          description: 输出 token 详细分项
          properties:
            thinking_tokens:
              type: integer
              description: 思考产生的 token 数（已计入 `output_tokens`）
              example: 63
    ContentBlock:
      type: object
      description: |-
        消息内容块

        **支持 type**：
        - `text`：文本内容
        - `image`：图片输入（URL 或 base64，JPEG / PNG / GIF / WEBP；`MiniMax-M2.5` 不支持）
        - `video`：视频输入（URL 或 base64，MP4 / AVI / MOV / MKV；`MiniMax-M2.5` 不支持）
        - `tool_use`：回传上一轮 assistant 工具调用
        - `tool_result`：工具执行结果
        - `thinking`：回传上一轮 assistant 思考内容（含 `signature`）
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - text
            - image
            - video
            - tool_use
            - tool_result
            - thinking
        text:
          type: string
          description: 当 type=`text` 时的文本内容
        source:
          $ref: '#/components/schemas/MediaSource'
          description: 图片或视频来源，type=`image` 或 type=`video` 时使用
        id:
          type: string
          description: 工具调用 ID（tool_use 时必填）
        name:
          type: string
          description: 工具名（tool_use 时必填）
        input:
          type: object
          description: 工具入参（tool_use 时，JSON 对象）
        tool_use_id:
          type: string
          description: 对应的工具调用 ID（tool_result 时必填，回填到 tool_use.id）
        content:
          description: 工具执行结果（tool_result），字符串或 content block 数组
          oneOf:
            - type: string
            - type: array
              items:
                type: object
        thinking:
          type: string
          description: 历史助手消息中的思考内容（`type=thinking` 时使用）
        signature:
          type: string
          description: 思考内容签名，多轮对话时需原样回传。示例中的 `signature` 是占位符。发送下一轮请求时，请使用上一次响应中该字段的完整值。
    MediaSource:
      type: object
      description: |-
        图片或视频内容块的媒体来源

        - 图片支持 JPEG / PNG / GIF / WEBP，单张最大 10 MB
        - 视频支持 MP4 / AVI / MOV / MKV，单个最大 50 MB，时长不超过 30 分钟
        - 一次请求（含历史消息）最多 200 张图片、20 个视频
        - 请求体最大 64 MB
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - base64
            - url
          description: 媒体来源类型
        media_type:
          type: string
          description: base64 输入时必填，例如 `image/png` 或 `video/mp4`
        data:
          type: string
          description: base64 编码后的媒体字节
        url:
          type: string
          description: 图片或视频的公网 URL
        detail:
          type: string
          enum:
            - low
            - default
            - high
          default: default
          description: 理解精细度，默认 default。分辨率越高 token 消耗越多
        fps:
          type: number
          minimum: 0.2
          maximum: 5
          default: 2
          description: 视频抽帧频率，默认 2，范围 [0.2, 5]。取值越高越能捕捉画面变化，token 消耗也越多。
        max_long_side_pixel:
          type: integer
          minimum: 1
          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
        ```

        **备注**：EvoLink 对 `/v1/messages` 统一采用 Bearer Token 鉴权。

````

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