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

# doubao-seed-evolving

> 根据对话内容生成模型响应。始终路由到最新的 Seed 模型（当前为 Doubao-Seed-2.1-Pro）。暂不支持批量推理。



## OpenAPI

````yaml zh/api-reference/model-api/bytedance/openapi/doubao-seed-evolving/openapi.yaml POST /v1/chat/completions
openapi: 3.1.0
info:
  title: 豆包 Seed Evolving
  description: 通过 Anyfast OpenAI 兼容接口调用字节 Doubao-Seed-Evolving 模型（始终最新，周级更新）
  version: 1.0.0
servers:
  - url: https://www.anyfast.ai
security:
  - bearerAuth: []
paths:
  /v1/chat/completions:
    post:
      summary: 对话补全
      description: 根据对话内容生成模型响应。始终路由到最新的 Seed 模型（当前为 Doubao-Seed-2.1-Pro）。暂不支持批量推理。
      operationId: createChatCompletionDoubaoSeedEvolving
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - messages
              properties:
                model:
                  type: string
                  enum:
                    - doubao-seed-evolving
                  description: 模型 ID
                  example: doubao-seed-evolving
                messages:
                  type: array
                  minItems: 1
                  description: 对话消息列表。
                  items:
                    type: object
                    required:
                      - role
                      - content
                    properties:
                      role:
                        type: string
                        enum:
                          - system
                          - user
                          - assistant
                      content:
                        type: string
                  example:
                    - role: user
                      content: 你好！
                thinking:
                  type: object
                  description: 控制深度思考。Doubao-Seed-2.1 默认开启。
                  properties:
                    type:
                      type: string
                      enum:
                        - enabled
                        - disabled
                      default: enabled
                      description: 是否开启思维链推理。
                reasoning_effort:
                  type: string
                  enum:
                    - minimal
                    - low
                    - medium
                    - high
                  default: high
                  description: 控制思考长度，仅在思考开启时生效。
                max_tokens:
                  type: integer
                  minimum: 1
                  maximum: 262144
                  default: 65536
                  description: 最大生成 Token 数（最高 256K）。
                temperature:
                  type: number
                  minimum: 0
                  maximum: 2
                  default: 1
                  description: 采样温度，值越高输出越随机。
                  example: 1
                top_p:
                  type: number
                  minimum: 0
                  maximum: 1
                  default: 1
                  description: 核采样阈值。
                stream:
                  type: boolean
                  default: false
                  description: 为 true 时通过 SSE 流式返回结果。
                tools:
                  type: array
                  description: 模型可调用的工具（函数）列表。
                  items:
                    type: object
                response_format:
                  type: object
                  description: '输出格式。使用 { "type": "json_object" } 输出结构化 JSON（beta）。'
                  properties:
                    type:
                      type: string
                      enum:
                        - text
                        - json_object
                      default: text
                stop:
                  oneOf:
                    - type: string
                    - type: array
                      items:
                        type: string
                  description: 触发停止生成的序列。
      responses:
        '200':
          description: 成功生成响应
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatCompletion'
        '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:
    ChatCompletion:
      type: object
      required:
        - id
        - object
        - created
        - model
        - choices
      properties:
        id:
          type: string
          example: chatcmpl-abc123
        object:
          type: string
          example: chat.completion
        created:
          type: integer
          description: Unix 时间戳
        model:
          type: string
          example: doubao-seed-evolving
        choices:
          type: array
          items:
            type: object
            properties:
              index:
                type: integer
              message:
                type: object
                properties:
                  role:
                    type: string
                    example: assistant
                  content:
                    type: string
                    example: 你好！有什么我可以帮助你的吗？
                  reasoning_content:
                    type: string
                    description: 思维链内容摘要，思考开启时返回。
              finish_reason:
                type: string
                enum:
                  - stop
                  - length
                  - tool_calls
                  - content_filter
                  - null
        usage:
          type: object
          properties:
            prompt_tokens:
              type: integer
            completion_tokens:
              type: integer
            prompt_tokens_details:
              type: object
              properties:
                cached_tokens:
                  type: integer
                  description: 命中缓存的 Token 数。
            total_tokens:
              type: integer
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````