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

# qwen3.6-plus

> 使用 Qwen3.6-Plus 生成回复。模型支持文本、图片和视频输入，并支持函数调用和结构化输出。



## OpenAPI

````yaml zh/api-reference/model-api/alibaba/openapi/qwen3.6-plus/openapi.yaml POST /v1/chat/completions
openapi: 3.1.0
info:
  title: Qwen3.6-Plus
  description: 通过 AnyFast OpenAI 兼容 API 调用阿里巴巴 Qwen3.6-Plus 多模态模型
  version: 1.0.0
servers:
  - url: https://www.anyfast.ai
security:
  - bearerAuth: []
paths:
  /v1/chat/completions:
    post:
      summary: 对话补全
      description: 使用 Qwen3.6-Plus 生成回复。模型支持文本、图片和视频输入，并支持函数调用和结构化输出。
      operationId: createChatCompletionQwen36Plus
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChatCompletionRequest'
            examples:
              text:
                summary: 文本请求
                value:
                  model: qwen3.6-plus
                  messages:
                    - role: user
                      content: 请解释日食是如何发生的。
                  temperature: 1
                  max_completion_tokens: 1024
              multimodal:
                summary: 图片和视频请求
                value:
                  model: qwen3.6-plus
                  messages:
                    - role: user
                      content:
                        - type: text
                          text: 比较这些输入。
                        - type: image_url
                          image_url:
                            url: https://example.com/reference.jpg
                        - type: video_url
                          video_url:
                            url: https://example.com/sample.mp4
                  max_completion_tokens: 1024
              tool:
                summary: 函数调用请求
                value:
                  model: qwen3.6-plus
                  messages:
                    - role: user
                      content: 新加坡现在的天气怎么样？
                  tools:
                    - type: function
                      function:
                        name: get_weather
                        description: 查询指定城市的当前天气。
                        parameters:
                          type: object
                          properties:
                            city:
                              type: string
                          required:
                            - city
                  enable_thinking: false
      responses:
        '200':
          description: 请求成功。stream 为 false 时返回完整响应，stream 为 true 时返回流式响应块。
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/ChatCompletion'
                  - $ref: '#/components/schemas/ChatCompletionChunk'
        '400':
          description: 请求参数无效
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: 未授权
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: 请求频率超限
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ChatCompletionRequest:
      type: object
      required:
        - model
        - messages
      properties:
        model:
          type: string
          enum:
            - qwen3.6-plus
          description: AnyFast 模型 ID。
          example: qwen3.6-plus
        messages:
          type: array
          minItems: 1
          description: 对话消息列表。内容可以是文本，或文本、图片和视频部分的数组。
          items:
            $ref: '#/components/schemas/Message'
        max_completion_tokens:
          type: integer
          minimum: 1
          maximum: 65536
          default: 65536
          description: 最大生成 Token 数。Qwen3.6-Plus 最多支持 64K 输出 Token。
        temperature:
          type: number
          minimum: 0
          maximum: 2
          exclusiveMaximum: true
          default: 1
          description: 采样温度，有效范围为 [0, 2)。`temperature` 和 `top_p` 二选一。
          example: 1
        top_p:
          type: number
          exclusiveMinimum: true
          minimum: 0
          maximum: 1
          description: 核采样概率，有效范围为 (0, 1]。`temperature` 和 `top_p` 二选一。
        stream:
          type: boolean
          default: false
          description: 为 true 时通过 Server-Sent Events 返回增量结果。
        stream_options:
          type: object
          description: 流式响应选项，仅在 stream 为 true 时生效。
          properties:
            include_usage:
              type: boolean
              default: false
              description: 为 true 时在最后一个流式响应块中返回 Token 用量。
        stop:
          type: array
          items:
            type: string
          description: 停止序列数组。当前 AnyFast 接口不支持单个字符串格式。
        seed:
          type: integer
          minimum: 0
          maximum: 2147483647
          description: 用于提高采样结果可复现性的随机种子。
        presence_penalty:
          type: number
          minimum: -2
          maximum: 2
          default: 0
          description: 根据 Token 是否已出现控制重复内容。
        frequency_penalty:
          type: number
          minimum: -2
          maximum: 2
          default: 0
          description: 根据 Token 出现频率控制重复内容。
        enable_thinking:
          type: boolean
          description: 思考模式控制字段。使用 OpenAI SDK 时通过 extra_body 传递。结构化输出或工具调用需要时使用非思考模式。
        tools:
          type: array
          description: 应用定义的函数或模型支持的工具。
          items:
            $ref: '#/components/schemas/Tool'
        tool_choice:
          oneOf:
            - type: string
              enum:
                - none
                - auto
                - required
            - type: object
              required:
                - type
                - function
              properties:
                type:
                  type: string
                  enum:
                    - function
                function:
                  type: object
                  required:
                    - name
                  properties:
                    name:
                      type: string
          description: 控制是否调用工具或指定调用的函数。
        response_format:
          type: object
          description: 结构化输出配置。上游模型要求时请使用非思考模式。
          properties:
            type:
              type: string
              enum:
                - text
                - json_object
                - json_schema
            json_schema:
              type: object
              description: type 为 json_schema 时使用的 JSON Schema 配置。
              properties:
                name:
                  type: string
                strict:
                  type: boolean
                schema:
                  type: object
                  additionalProperties: true
    ChatCompletion:
      type: object
      required:
        - id
        - object
        - created
        - model
        - choices
      properties:
        id:
          type: string
          example: chatcmpl-abc123
        object:
          type: string
          enum:
            - chat.completion
        created:
          type: integer
          description: Unix 时间戳。
        model:
          type: string
          example: qwen3.6-plus
        choices:
          type: array
          items:
            $ref: '#/components/schemas/CompletionChoice'
        usage:
          $ref: '#/components/schemas/Usage'
    ChatCompletionChunk:
      type: object
      required:
        - id
        - object
        - created
        - model
        - choices
      properties:
        id:
          type: string
        object:
          type: string
          enum:
            - chat.completion.chunk
        created:
          type: integer
        model:
          type: string
          example: qwen3.6-plus
        choices:
          type: array
          items:
            type: object
            properties:
              index:
                type: integer
              delta:
                $ref: '#/components/schemas/Delta'
              finish_reason:
                type: string
                nullable: true
                enum:
                  - stop
                  - length
                  - tool_calls
                  - content_filter
                  - null
        usage:
          nullable: true
          allOf:
            - $ref: '#/components/schemas/Usage'
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
    Message:
      type: object
      required:
        - role
      properties:
        role:
          type: string
          enum:
            - system
            - user
            - assistant
            - tool
        content:
          nullable: true
          oneOf:
            - type: string
            - type: array
              items:
                $ref: '#/components/schemas/ContentPart'
        name:
          type: string
        tool_call_id:
          type: string
        tool_calls:
          type: array
          items:
            $ref: '#/components/schemas/ToolCall'
    Tool:
      type: object
      required:
        - type
        - function
      properties:
        type:
          type: string
          enum:
            - function
        function:
          type: object
          required:
            - name
          properties:
            name:
              type: string
            description:
              type: string
            parameters:
              type: object
              additionalProperties: true
            strict:
              type: boolean
    CompletionChoice:
      type: object
      properties:
        index:
          type: integer
        message:
          $ref: '#/components/schemas/AssistantMessage'
        finish_reason:
          type: string
          nullable: true
          enum:
            - stop
            - length
            - tool_calls
            - content_filter
            - null
    Usage:
      type: object
      properties:
        prompt_tokens:
          type: integer
        completion_tokens:
          type: integer
        total_tokens:
          type: integer
        prompt_tokens_details:
          type: object
          properties:
            cached_tokens:
              type: integer
            text_tokens:
              type: integer
            image_tokens:
              type: integer
            video_tokens:
              type: integer
    Delta:
      type: object
      properties:
        role:
          type: string
          enum:
            - assistant
        content:
          type: string
          nullable: true
        reasoning_content:
          type: string
          nullable: true
        tool_calls:
          type: array
          items:
            type: object
            properties:
              index:
                type: integer
              id:
                type: string
              type:
                type: string
                enum:
                  - function
              function:
                type: object
                properties:
                  name:
                    type: string
                  arguments:
                    type: string
    ContentPart:
      oneOf:
        - type: object
          required:
            - type
            - text
          properties:
            type:
              type: string
              enum:
                - text
            text:
              type: string
        - type: object
          required:
            - type
            - image_url
          properties:
            type:
              type: string
              enum:
                - image_url
            image_url:
              type: object
              required:
                - url
              properties:
                url:
                  type: string
                  description: HTTPS 图片 URL 或 base64 数据 URI。
        - type: object
          required:
            - type
            - video_url
          properties:
            type:
              type: string
              enum:
                - video_url
            video_url:
              type: object
              required:
                - url
              properties:
                url:
                  type: string
                  description: HTTPS 视频 URL 或 base64 数据 URI。
    ToolCall:
      type: object
      required:
        - id
        - type
        - function
      properties:
        id:
          type: string
        type:
          type: string
          enum:
            - function
        function:
          type: object
          required:
            - name
            - arguments
          properties:
            name:
              type: string
            arguments:
              type: string
    AssistantMessage:
      type: object
      properties:
        role:
          type: string
          enum:
            - assistant
        content:
          type: string
          nullable: true
        reasoning_content:
          type: string
          nullable: true
          description: 开启思考模式时返回的推理内容。
        tool_calls:
          type: array
          items:
            $ref: '#/components/schemas/ToolCall'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````