> ## 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.

# Kimi 全模型接口 - Responses 完整参数

> 使用 reasoning.effort 指定思考档位，prompt_cache_options 指定缓存。搜索通过 web_search_call 输出项返回。流式按 response.completed / response.incomplete / response.failed 等事件判断结束；达到输出上限会返回 incomplete。多轮请求携带完整 output 历史，包括 reasoning、工具调用与结果。

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


## OpenAPI

````yaml cn/api-manual/language-series/kimi/responses/responses-reference.json POST /v1/responses
openapi: 3.1.0
info:
  title: Kimi 全模型接口 - Responses 完整参数
  version: 1.0.0
  description: >-
    通过 OpenAI Responses 协议调用 Kimi 系列文本模型，用 `model` 参数选择
    `kimi-k3.1-pro`、`kimi-k3.1-pro-highspeed` 或 `kimi-k3`。上下文窗口均为 1,048,576
    tokens，支持多轮对话、流式输出、工具调用、联网搜索、结构化输出和图片输入。


    三个模型始终开启思考，通过 `reasoning.effort` 调节强度。结构化输出和缓存写入时长因模型而异，见 `model`
    字段说明。多轮对话时请保留完整的思考与工具调用历史。
servers:
  - url: https://direct.evolink.ai
    description: 生产环境（推荐）
  - url: https://api.evolink.ai
    description: 备用地址
security:
  - bearerAuth: []
paths:
  /v1/responses:
    post:
      tags:
        - Responses
      summary: Kimi Responses 接口（全模型）
      description: >-
        使用 reasoning.effort 指定思考档位，prompt_cache_options 指定缓存。搜索通过
        web_search_call 输出项返回。流式按 response.completed / response.incomplete /
        response.failed 等事件判断结束；达到输出上限会返回 incomplete。多轮请求携带完整 output 历史，包括
        reasoning、工具调用与结果。
      operationId: createResponseKimi
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResponsesRequest'
            examples:
              simple:
                summary: Pro 最小请求
                value:
                  model: kimi-k3.1-pro
                  input: Reply with OK.
                  reasoning:
                    effort: low
                  max_output_tokens: 1024
              highspeed:
                summary: Highspeed 最小请求
                value:
                  model: kimi-k3.1-pro-highspeed
                  input: Reply with OK.
                  reasoning:
                    effort: low
                  max_output_tokens: 1024
              k3:
                summary: Kimi K3 最小请求
                value:
                  model: kimi-k3
                  input: Reply with OK.
                  max_output_tokens: 1024
              streaming:
                summary: Responses SSE 流式输出
                value:
                  model: kimi-k3.1-pro
                  input: Reply with OK.
                  reasoning:
                    effort: low
                  max_output_tokens: 1024
                  stream: true
              multimodal:
                summary: 图片输入
                value:
                  model: kimi-k3.1-pro
                  input:
                    - role: user
                      content:
                        - type: input_image
                          image_url: data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAA...
                        - type: input_text
                          text: 请描述这张图片。
                  reasoning:
                    effort: low
                  max_output_tokens: 1024
              function_calling:
                summary: 函数调用
                value:
                  model: kimi-k3.1-pro
                  input: 查询北京今天的天气。
                  reasoning:
                    effort: low
                  max_output_tokens: 1024
                  tools:
                    - type: function
                      name: get_weather
                      description: 查询指定城市的天气
                      parameters:
                        type: object
                        properties:
                          city:
                            type: string
                            description: 城市名称
                        required:
                          - city
              web_search:
                summary: 服务端联网搜索
                value:
                  model: kimi-k3.1-pro
                  input: Use web search to find the official Kimi homepage URL.
                  reasoning:
                    effort: low
                  max_output_tokens: 1024
                  tools:
                    - type: web_search
              structured_output:
                summary: 严格 JSON Schema（仅 K3.1 系列）
                value:
                  model: kimi-k3.1-pro
                  input: Return a JSON object with result equal to OK.
                  reasoning:
                    effort: low
                  max_output_tokens: 1024
                  text:
                    format:
                      type: json_schema
                      name: result
                      strict: true
                      schema:
                        type: object
                        properties:
                          result:
                            type: string
                        required:
                          - result
                        additionalProperties: false
              cache_1h:
                summary: 1h 自动缓存写入（仅 K3.1 系列）
                value:
                  model: kimi-k3.1-pro
                  input: Reply with OK.
                  reasoning:
                    effort: low
                  max_output_tokens: 1024
                  prompt_cache_options:
                    mode: implicit
                    ttl: 1h
      responses:
        '200':
          description: 响应创建成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponsesResponse'
            text/event-stream:
              schema:
                $ref: '#/components/schemas/ResponsesStreamEvent'
        '400':
          description: 请求错误 - 参数无效
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: 未授权 - API 密钥无效或缺失
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: 无权访问该资源
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: 请求过于频繁或额度不足
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: 服务器错误
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    ResponsesRequest:
      type: object
      required:
        - model
        - input
      properties:
        model:
          type: string
          enum:
            - kimi-k3.1-pro
            - kimi-k3.1-pro-highspeed
            - kimi-k3
          default: kimi-k3.1-pro
          description: >-
            要调用的模型：


            | 模型 ID | 定位 | 思考强度 |

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

            | `kimi-k3.1-pro` | 最新一代模型（推荐） | `low` / `high` / `max`，默认 `max` |

            | `kimi-k3.1-pro-highspeed` | 与 Pro 参数相同，生成速度更快 | 同 `kimi-k3.1-pro`
            |

            | `kimi-k3` | 上一代模型 | 仅支持 `max` |


            三个模型的上下文窗口均为 1,048,576 tokens，均始终开启思考。


            结构化输出（`text.format`）和缓存写入时长（`prompt_cache_options`）仅 K3.1
            系列支持，`kimi-k3` 不支持。
        input:
          description: 本次请求的输入。传字符串等价于一条 user 消息；传数组时按顺序给出带类型的 item，可包含历史对话、工具调用与工具结果。
          oneOf:
            - type: string
            - type: array
              items:
                $ref: '#/components/schemas/ResponsesInputItem'
        instructions:
          type: string
          description: 顶层系统指令，作为最靠前的指令生效。
        stream:
          type: boolean
          default: false
          description: 为 true 时以 SSE 事件流返回响应。
        max_output_tokens:
          type: integer
          description: 最大生成 Token 数，包含思考与最终回答；默认 131072，最大 1048576，同时受剩余上下文限制。
          minimum: 1
          maximum: 1048576
          default: 131072
        reasoning:
          type: object
          description: 推理相关配置。
          properties:
            effort:
              type: string
              enum:
                - low
                - high
                - max
                - medium
                - xhigh
                - minimal
                - none
              default: max
              description: >-
                思考强度，模型始终思考。


                - `kimi-k3.1-pro` / `kimi-k3.1-pro-highspeed`：推荐 `low` / `high`
                / `max`，默认 `max`。兼容通用客户端：`medium` 按 `high`，`xhigh` 按
                `max`，`minimal` / `none` 按 `low` 处理；`none` 不会关闭思考。

                - `kimi-k3`：仅支持 `max`（默认）。


                提高强度通常增加推理 Token 和延迟，思考 Token 计入输出。
        text:
          type: object
          description: 输出文本配置。
          properties:
            format:
              type: object
              required:
                - type
                - schema
              description: >-
                用 JSON Schema 约束输出结构。仅 `kimi-k3.1-pro` /
                `kimi-k3.1-pro-highspeed` 支持，`kimi-k3` 不支持。如需 `kimi-k3`
                输出结构化结果，请使用 Chat Completions 接口的 `response_format`。
              properties:
                type:
                  type: string
                  enum:
                    - json_schema
                name:
                  type: string
                  description: Schema 名称，缺省为 `output`。
                schema:
                  type: object
                  description: 描述输出结构的 JSON Schema。
                strict:
                  type: boolean
                  description: 是否严格按 Schema 约束输出。
        tools:
          type: array
          description: 模型可调用的工具列表。
          items:
            $ref: '#/components/schemas/ResponsesTool'
        tool_choice:
          $ref: '#/components/schemas/ResponsesToolChoice'
        include:
          type: array
          items:
            type: string
            enum:
              - web_search_call.results
              - web_search_call.action.sources
          description: >-
            要额外返回的字段，仅在使用 `web_search` 工具时有效。`web_search_call.action.sources`
            返回搜索命中的网页来源；`web_search_call.results` 返回图片搜索结果。
        prompt_cache_options:
          type: object
          description: >-
            上下文缓存写入选项，仅 `kimi-k3.1-pro` / `kimi-k3.1-pro-highspeed` 支持，`kimi-k3`
            不支持此参数。省略时默认自动写入 5m 缓存；写入、读取分别计费。
          properties:
            mode:
              type: string
              enum:
                - implicit
              default: implicit
            ttl:
              type: string
              enum:
                - 5m
                - 1h
              default: 5m
              description: 缓存有效期，可选 5m 或 1h，默认 5m。
        temperature:
          type: number
          default: 1
          description: >-
            采样温度，由模型固定为 `1`，无需传入。`kimi-k3.1-pro` / `kimi-k3.1-pro-highspeed`
            会自动忽略此字段；`kimi-k3` 传入不支持的取值将返回错误。
        top_p:
          type: number
          default: 0.95
          description: >-
            核采样阈值，由模型固定为 `0.95`，无需传入。`kimi-k3.1-pro` / `kimi-k3.1-pro-highspeed`
            会自动忽略此字段；`kimi-k3` 传入不支持的取值将返回错误。
    ResponsesResponse:
      type: object
      description: 一次模型响应。
      properties:
        id:
          type: string
          description: 响应的唯一标识符。
          example: resp_68f0c1c2d3e4f5a6b7c8d9e0
        object:
          type: string
          enum:
            - response
        created_at:
          type: integer
          description: 响应创建时的 Unix 时间戳。
        completed_at:
          type:
            - integer
            - 'null'
          description: >-
            响应结束时的 Unix 时间戳。`status` 为 `completed` 或 `incomplete` 时给出，为
            `in_progress` 或 `failed` 时是 `null`。
        status:
          type: string
          enum:
            - in_progress
            - completed
            - incomplete
            - failed
          description: 响应状态。流式的起手快照为 `in_progress`。
        model:
          type: string
          description: 产生本次响应的模型。
        output:
          type: array
          description: 输出 item 数组，顺序为 web_search_call（如有）、reasoning、message、工具调用。
          items:
            $ref: '#/components/schemas/ResponsesOutputItem'
        usage:
          oneOf:
            - $ref: '#/components/schemas/ResponsesUsage'
            - type: 'null'
        incomplete_details:
          type:
            - object
            - 'null'
          description: '`status` 为 `incomplete` 时给出原因。'
          properties:
            reason:
              type: string
              enum:
                - max_output_tokens
                - content_filter
        error:
          type:
            - object
            - 'null'
          description: '`status` 为 `failed` 时给出错误信息。'
          properties:
            code:
              type: string
            message:
              type: string
        instructions:
          type:
            - string
            - 'null'
        reasoning:
          type:
            - object
            - 'null'
        text:
          type:
            - object
            - 'null'
        tools:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/ResponsesTool'
        tool_choice:
          oneOf:
            - $ref: '#/components/schemas/ResponsesToolChoice'
            - type: 'null'
        max_output_tokens:
          type:
            - integer
            - 'null'
        temperature:
          type:
            - number
            - 'null'
        top_p:
          type:
            - number
            - 'null'
        parallel_tool_calls:
          type: boolean
        service_tier:
          type:
            - string
            - 'null'
        store:
          type: boolean
          description: 固定为 `false`。
        background:
          type:
            - boolean
            - 'null'
          description: 固定为 `false`。
        previous_response_id:
          type:
            - string
            - 'null'
          description: 固定为 `null`。
        conversation:
          type:
            - object
            - 'null'
          description: 固定为 `null`。
        prompt_cache_options:
          type: object
          description: 服务端实际应用的上下文缓存写入选项。当请求省略 prompt_cache_options 时，以此处返回的 mode 和 ttl 为准
          properties:
            mode:
              type: string
              enum:
                - implicit
              description: 实际应用的写入模式
            ttl:
              type: string
              enum:
                - 5m
                - 1h
              description: 实际应用的缓存有效期
    ResponsesStreamEvent:
      type: object
      description: >-
        `stream: true` 时返回的单个 SSE 事件。SSE 帧形如 `event: <type>` 加 `data:
        <json>`，事件体的其余字段随 `type` 变化。
      required:
        - type
        - sequence_number
      properties:
        type:
          type: string
          enum:
            - response.created
            - response.in_progress
            - response.output_item.added
            - response.output_item.done
            - response.content_part.added
            - response.content_part.done
            - response.output_text.delta
            - response.output_text.done
            - response.reasoning_summary_part.added
            - response.reasoning_summary_part.done
            - response.reasoning_summary_text.delta
            - response.reasoning_summary_text.done
            - response.function_call_arguments.delta
            - response.function_call_arguments.done
            - response.custom_tool_call_input.delta
            - response.custom_tool_call_input.done
            - response.web_search_call.in_progress
            - response.web_search_call.searching
            - response.web_search_call.completed
            - response.completed
            - response.incomplete
            - response.failed
            - error
        sequence_number:
          type: integer
          description: 事件序号，从 0 开始单调递增。
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              description: 描述错误原因的错误消息
            type:
              type: string
              description: 错误类型
            code:
              type: string
              description: 错误码
          required:
            - message
      required:
        - error
    ResponsesInputItem:
      description: input 数组的元素，按 `type` 区分。省略 `type` 时按 `message` 处理。
      oneOf:
        - $ref: '#/components/schemas/ResponsesMessageItem'
        - $ref: '#/components/schemas/ResponsesReasoningItem'
        - $ref: '#/components/schemas/ResponsesFunctionCallItem'
        - $ref: '#/components/schemas/ResponsesFunctionCallOutputItem'
        - $ref: '#/components/schemas/ResponsesCustomToolCallItem'
        - $ref: '#/components/schemas/ResponsesCustomToolCallOutputItem'
        - $ref: '#/components/schemas/ResponsesWebSearchCallItem'
        - $ref: '#/components/schemas/ResponsesAdditionalToolsItem'
    ResponsesTool:
      description: >-
        工具定义，按 `type` 区分。支持 `function`、`custom`（仅 `apply_patch`）、`namespace` 与
        `web_search`，其他工具类型不支持。
      oneOf:
        - $ref: '#/components/schemas/ResponsesFunctionTool'
        - $ref: '#/components/schemas/ResponsesCustomTool'
        - $ref: '#/components/schemas/ResponsesNamespaceTool'
        - $ref: '#/components/schemas/ResponsesWebSearchTool'
      discriminator:
        propertyName: type
        mapping:
          function: '#/components/schemas/ResponsesFunctionTool'
          custom: '#/components/schemas/ResponsesCustomTool'
          namespace: '#/components/schemas/ResponsesNamespaceTool'
          web_search: '#/components/schemas/ResponsesWebSearchTool'
    ResponsesToolChoice:
      type: string
      enum:
        - auto
      description: 控制工具调用行为。取 `auto` 时由模型自行决定是否调用工具。
    ResponsesOutputItem:
      description: output 数组的元素，按 `type` 区分。
      oneOf:
        - $ref: '#/components/schemas/ResponsesOutputReasoningItem'
        - $ref: '#/components/schemas/ResponsesOutputMessageItem'
        - $ref: '#/components/schemas/ResponsesOutputFunctionCallItem'
        - $ref: '#/components/schemas/ResponsesOutputCustomToolCallItem'
        - $ref: '#/components/schemas/ResponsesOutputWebSearchCallItem'
      discriminator:
        propertyName: type
        mapping:
          reasoning: '#/components/schemas/ResponsesOutputReasoningItem'
          message: '#/components/schemas/ResponsesOutputMessageItem'
          function_call: '#/components/schemas/ResponsesOutputFunctionCallItem'
          custom_tool_call: '#/components/schemas/ResponsesOutputCustomToolCallItem'
          web_search_call: '#/components/schemas/ResponsesOutputWebSearchCallItem'
    ResponsesUsage:
      type: object
      description: >-
        input_tokens 包含缓存读写。K3.1 系列普通输入需扣除 cached_tokens 和
        cache_write_tokens，`kimi-k3` 只扣除 cached_tokens；output_tokens 已包含思考。
      properties:
        input_tokens:
          type: integer
          description: 输入 Token 数量，含命中缓存的部分。
        input_tokens_details:
          type: object
          properties:
            cached_tokens:
              type: integer
              description: 命中上下文缓存的 Token 数量。
            cache_write_tokens:
              type: integer
              description: 写入上下文缓存的 Token 数量。
        output_tokens:
          type: integer
          description: 输出 Token 数量，含推理 Token。
        output_tokens_details:
          type: object
          properties:
            reasoning_tokens:
              type: integer
              description: 推理消耗的 Token 数量。
        total_tokens:
          type: integer
          description: 总 Token 数量。
    ResponsesMessageItem:
      type: object
      title: 消息
      description: 一条对话消息。`type` 可省略。
      required:
        - role
        - content
      properties:
        type:
          type: string
          enum:
            - message
        role:
          type: string
          enum:
            - user
            - assistant
            - developer
          description: 消息角色。`developer` 按系统指令处理。
        content:
          description: 消息内容，字符串或 content part 数组。
          oneOf:
            - type: string
            - type: array
              items:
                $ref: '#/components/schemas/ResponsesInputContentPart'
        status:
          type: string
          enum:
            - completed
    ResponsesReasoningItem:
      type: object
      title: 推理
      description: 回放上一轮的推理内容。`content` 优先于 `summary`。
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - reasoning
        id:
          type: string
        summary:
          type: array
          items:
            type: object
            required:
              - type
              - text
            properties:
              type:
                type: string
                enum:
                  - summary_text
              text:
                type: string
        content:
          type: array
          items:
            type: object
            required:
              - type
              - text
            properties:
              type:
                type: string
                enum:
                  - reasoning_text
              text:
                type: string
        status:
          type: string
          enum:
            - completed
    ResponsesFunctionCallItem:
      type: object
      title: 函数调用
      description: 回放一次函数调用。
      required:
        - type
        - call_id
        - name
        - arguments
      properties:
        type:
          type: string
          enum:
            - function_call
        id:
          type: string
        call_id:
          type: string
          description: 与对应 `function_call_output` 配对的调用 ID。
        name:
          type: string
        namespace:
          type: string
          description: 工具所属的命名空间，调用命名空间工具时返回。
        arguments:
          type: string
          description: 函数参数的 JSON 字符串。
        status:
          type: string
          enum:
            - completed
    ResponsesFunctionCallOutputItem:
      type: object
      title: 函数调用结果
      description: 函数调用的执行结果。
      required:
        - type
        - call_id
        - output
      properties:
        type:
          type: string
          enum:
            - function_call_output
        call_id:
          type: string
          description: 与对应 `function_call` 相同的调用 ID。
        output:
          description: 工具返回的内容。
          oneOf:
            - type: string
            - type: array
              items:
                $ref: '#/components/schemas/ResponsesInputContentPart'
        status:
          type: string
          enum:
            - completed
    ResponsesCustomToolCallItem:
      type: object
      title: 自定义工具调用
      description: 回放一次自定义工具调用。
      required:
        - type
        - call_id
        - name
        - input
      properties:
        type:
          type: string
          enum:
            - custom_tool_call
        id:
          type: string
        call_id:
          type: string
          description: 与对应 `custom_tool_call_output` 配对的调用 ID。
        name:
          type: string
        namespace:
          type: string
          description: 工具所属的命名空间，调用命名空间工具时返回。
        input:
          type: string
          description: 模型生成的自由文本输入。
        status:
          type: string
          enum:
            - completed
    ResponsesCustomToolCallOutputItem:
      type: object
      title: 自定义工具调用结果
      description: 自定义工具调用的执行结果。
      required:
        - type
        - call_id
        - output
      properties:
        type:
          type: string
          enum:
            - custom_tool_call_output
        call_id:
          type: string
          description: 与对应 `custom_tool_call` 相同的调用 ID。
        output:
          description: 工具返回的内容。
          oneOf:
            - type: string
            - type: array
              items:
                $ref: '#/components/schemas/ResponsesInputContentPart'
        status:
          type: string
          enum:
            - completed
    ResponsesWebSearchCallItem:
      type: object
      title: 联网搜索调用
      description: 上一轮的联网搜索记录，多轮对话时随完整历史一起传入。
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - web_search_call
        id:
          type: string
        status:
          type: string
          enum:
            - completed
        action:
          type: object
          properties:
            type:
              type: string
              enum:
                - search
            query:
              type: string
    ResponsesAdditionalToolsItem:
      type: object
      title: 动态工具
      description: 在对话中途追加可调用的工具，作用范围从该 item 所在位置开始。
      required:
        - type
        - role
        - tools
      properties:
        type:
          type: string
          enum:
            - additional_tools
        id:
          type: string
        role:
          type: string
          enum:
            - developer
        tools:
          type: array
          items:
            $ref: '#/components/schemas/ResponsesTool'
    ResponsesFunctionTool:
      type: object
      title: 函数工具
      description: 用 JSON Schema 描述参数的函数工具。
      required:
        - type
        - name
      properties:
        type:
          type: string
          enum:
            - function
        name:
          type: string
          description: 函数名称。必须符合正则表达式：^[a-zA-Z_][a-zA-Z0-9-_]{0,127}$
          pattern: ^[a-zA-Z_][a-zA-Z0-9-_]{0,127}$
        description:
          type: string
        parameters:
          type: object
          description: 描述函数参数的 JSON Schema。
        strict:
          type: boolean
    ResponsesCustomTool:
      type: object
      title: 自定义工具
      description: >-
        接收自由文本输入的自定义工具。当前仅支持名为 `apply_patch` 的自定义工具，且必须提供 `grammar` + `lark`
        格式定义；模型调用时在 output 中返回 `custom_tool_call` item。
      required:
        - type
        - name
        - format
      properties:
        type:
          type: string
          enum:
            - custom
        name:
          type: string
          enum:
            - apply_patch
          description: 工具名称，当前仅支持 `apply_patch`。
        description:
          type: string
        format:
          type: object
          description: 输入格式约束。当前仅支持 `grammar` 类型与 `lark` 语法。
          required:
            - type
            - syntax
            - definition
          properties:
            type:
              type: string
              enum:
                - grammar
            syntax:
              type: string
              enum:
                - lark
            definition:
              type: string
              description: Lark 语法定义。
    ResponsesNamespaceTool:
      type: object
      title: 命名空间工具
      description: 把一组函数工具或自定义工具收纳到同一个命名空间下。
      required:
        - type
        - name
        - description
        - tools
      properties:
        type:
          type: string
          enum:
            - namespace
        name:
          type: string
        description:
          type: string
        tools:
          type: array
          items:
            oneOf:
              - $ref: '#/components/schemas/ResponsesFunctionTool'
              - $ref: '#/components/schemas/ResponsesCustomTool'
    ResponsesWebSearchTool:
      type: object
      title: 联网搜索工具
      description: 联网搜索工具。需要查询网络信息时由模型调用，搜索记录通过 web_search_call 返回。每次请求最多声明一个。
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - web_search
        filters:
          type: object
          description: 搜索范围过滤。
          properties:
            allowed_domains:
              type: array
              items:
                type: string
              maxItems: 100
              description: 仅在这些域名内搜索，最多 100 个。
        search_content_types:
          type: array
          items:
            type: string
            enum:
              - text
              - image
          default:
            - text
          description: 搜索结果类型，默认仅 `text`。包含 `image` 时会额外执行图片搜索。
        image_settings:
          type: object
          description: 图片搜索设置，仅在 `search_content_types` 包含 `image` 时生效。
          properties:
            max_results:
              type: integer
              minimum: 1
              maximum: 10
              default: 3
              description: 最多返回的图片数量。
            caption:
              type: boolean
              default: false
              description: 是否为图片生成说明文字。
    ResponsesOutputReasoningItem:
      type: object
      title: 推理
      description: 模型的推理内容。
      properties:
        type:
          type: string
          enum:
            - reasoning
        id:
          type: string
          example: rs_68f0c1c2d3e4f5a6b7c8d9e0
        summary:
          type: array
          description: 推理内容。
          items:
            type: object
            properties:
              type:
                type: string
                enum:
                  - summary_text
              text:
                type: string
        encrypted_content:
          type:
            - string
            - 'null'
          description: 固定为 `null`。
        status:
          type: string
          enum:
            - in_progress
            - completed
    ResponsesOutputMessageItem:
      type: object
      title: 消息
      description: 模型的文本回复。
      properties:
        type:
          type: string
          enum:
            - message
        id:
          type: string
          example: msg_68f0c1c2d3e4f5a6b7c8d9e0
        role:
          type: string
          enum:
            - assistant
        content:
          type: array
          items:
            type: object
            properties:
              type:
                type: string
                enum:
                  - output_text
              text:
                type: string
              annotations:
                type: array
                items: {}
        status:
          type: string
          enum:
            - in_progress
            - completed
    ResponsesOutputFunctionCallItem:
      type: object
      title: 函数调用
      description: 模型发起的函数调用。
      properties:
        type:
          type: string
          enum:
            - function_call
        id:
          type: string
          example: fc_68f0c1c2d3e4f5a6b7c8d9e0
        call_id:
          type: string
          description: 回传结果时在 `function_call_output` 中使用该值。
        name:
          type: string
        namespace:
          type: string
          description: 调用命名空间工具时返回。
        arguments:
          type: string
          description: 函数参数的 JSON 字符串。
        status:
          type: string
          enum:
            - in_progress
            - completed
    ResponsesOutputCustomToolCallItem:
      type: object
      title: 自定义工具调用
      description: 模型发起的自定义工具调用。
      properties:
        type:
          type: string
          enum:
            - custom_tool_call
        id:
          type: string
          example: ctc_68f0c1c2d3e4f5a6b7c8d9e0
        call_id:
          type: string
          description: 回传结果时在 `custom_tool_call_output` 中使用该值。
        name:
          type: string
        namespace:
          type: string
          description: 调用命名空间工具时返回。
        input:
          type: string
          description: 模型生成的自由文本输入。
        status:
          type: string
          enum:
            - in_progress
            - completed
    ResponsesOutputWebSearchCallItem:
      type: object
      title: 联网搜索调用
      description: 服务端执行的联网搜索调用。仅在请求包含 `web_search` 工具且服务端判断需要搜索时返回，位于 output 数组最前面。
      properties:
        type:
          type: string
          enum:
            - web_search_call
        id:
          type: string
          example: ws_68f0c1c2d3e4f5a6b7c8d9e0
        status:
          type: string
          enum:
            - in_progress
            - completed
        action:
          type: object
          description: 本次搜索的动作。
          properties:
            type:
              type: string
              enum:
                - search
            query:
              type: string
              description: 实际使用的搜索关键词。
            sources:
              type: array
              description: 搜索命中的网页来源。仅在 `include` 包含 `web_search_call.action.sources` 时返回。
              items:
                type: object
                properties:
                  type:
                    type: string
                    enum:
                      - url
                  url:
                    type: string
                  title:
                    type: string
        results:
          type: array
          description: >-
            图片搜索结果。仅在 `include` 包含 `web_search_call.results` 且
            `search_content_types` 包含 `image` 时返回。
          items:
            type: object
            properties:
              type:
                type: string
                enum:
                  - image_result
              image_url:
                type: string
              thumbnail_url:
                type: string
              source_website_url:
                type: string
              caption:
                type: string
                description: 图片说明文字，仅在开启 `image_settings.caption` 时返回。
    ResponsesInputContentPart:
      description: content 数组的元素，按 `type` 区分。
      oneOf:
        - type: object
          title: 输入文本
          required:
            - type
            - text
          properties:
            type:
              type: string
              enum:
                - input_text
            text:
              type: string
        - type: object
          title: 输入图片
          required:
            - type
            - image_url
          properties:
            type:
              type: string
              enum:
                - input_image
            image_url:
              type: string
              description: >-
                图片的 data URL，例如 `data:image/png;base64,<base64>`。不支持公网 http(s)
                URL。
            detail:
              type: string
              enum:
                - auto
                - low
                - high
                - original
        - type: object
          title: 输出文本
          description: 回放 assistant 历史文本时使用。
          required:
            - type
            - text
          properties:
            type:
              type: string
              enum:
                - output_text
            text:
              type: string
  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.