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

# Doubao Seed 2.0 系列



## OpenAPI

````yaml api-reference/model-api/bytedance/openapi/doubao-seed-2-0/openapi.yaml POST /v1/chat/completions
openapi: 3.1.0
info:
  title: Doubao Seed 2.0 系列
  version: 1.0.0
  description: 通过 AnyFast 国内站调用国际、国内站共同提供的 Doubao Seed 2.0 Pro、Mini 和 Lite 模型。
servers:
  - url: https://www.anyfast.com.cn
security:
  - bearerAuth: []
paths:
  /v1/chat/completions:
    post:
      summary: 创建对话补全
      operationId: createDoubaoSeed20Completion
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChatRequest'
            example:
              model: doubao-seed-2-0-pro-260215
              messages:
                - role: user
                  content: 为高并发订单系统设计缓存策略。
              max_tokens: 2048
      responses:
        '200':
          description: 请求成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatResponse'
        '400':
          description: 请求参数错误
        '401':
          description: API Key 无效或缺失
        '403':
          description: 账户权限或额度不足
        '429':
          description: 请求频率超限
components:
  schemas:
    ChatRequest:
      type: object
      required:
        - model
        - messages
      properties:
        model:
          type: string
          enum:
            - doubao-seed-2-0-pro-260215
            - doubao-seed-2-0-mini-260215
            - doubao-seed-2-0-lite-260215
            - doubao-seed-2-0-lite-260428
        messages:
          type: array
          minItems: 1
          items:
            type: object
            required:
              - role
              - content
            properties:
              role:
                type: string
                enum:
                  - system
                  - user
                  - assistant
                  - tool
              content:
                type: string
        max_tokens:
          type: integer
          minimum: 1
        temperature:
          type: number
        top_p:
          type: number
          minimum: 0
          maximum: 1
        stream:
          type: boolean
          default: false
        tools:
          type: array
          items:
            type: object
            additionalProperties: true
    ChatResponse:
      type: object
      properties:
        id:
          type: string
        object:
          type: string
          example: chat.completion
        created:
          type: integer
        model:
          type: string
        choices:
          type: array
          items:
            type: object
            properties:
              index:
                type: integer
              message:
                type: object
                properties:
                  role:
                    type: string
                    example: assistant
                  content:
                    type: string
                  reasoning_content:
                    type: string
              finish_reason:
                type: string
        usage:
          type: object
          additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````