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

# Doubao Seed 2.0 Responses API - Inicio rápido

> - 使用 Responses API 格式调用 Doubao Seed 2.0 系列模型
- 支持服务端上下文存储，通过 `previous_response_id` 实现多轮对话
- 最简化参数，快速上手
- 支持模型：`doubao-seed-2.0-pro`、`doubao-seed-2.0-lite`、`doubao-seed-2.0-mini`、`doubao-seed-2.0-code`
- 💡 需要更多功能？查看 [完整参数文档](./doubao-seed-2.0-responses-reference)

<Note>
  **BaseURL**: La BaseURL predeterminada es `https://direct.evolink.ai`, que ofrece mejor compatibilidad con modelos de texto y admite conexiones persistentes. `https://api.evolink.ai` es el endpoint principal para servicios multimodales y actúa como dirección de respaldo para los modelos de texto.
</Note>


## OpenAPI

````yaml es/api-manual/language-series/doubao-seed-2.0/doubao-seed-2.0-responses-quickstart.json POST /v1/responses
openapi: 3.1.0
info:
  title: Inicio rápido de Doubao Seed 2.0 Responses API
  description: >-
    Comienza rápidamente con Doubao Seed 2.0 Responses API, completa tu primera
    llamada en 5 minutos
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://direct.evolink.ai
    description: Producción (recomendado)
  - url: https://api.evolink.ai
    description: URL alternativa
security:
  - bearerAuth: []
tags:
  - name: Responses API
    description: Interfaz de generación de chat de Responses API
paths:
  /v1/responses:
    post:
      tags:
        - Responses API
      summary: Chat rápido de Doubao Seed 2.0 Responses API
      description: >-
        - 使用 Responses API 格式调用 Doubao Seed 2.0 系列模型

        - 支持服务端上下文存储，通过 `previous_response_id` 实现多轮对话

        - 最简化参数，快速上手

        -
        支持模型：`doubao-seed-2.0-pro`、`doubao-seed-2.0-lite`、`doubao-seed-2.0-mini`、`doubao-seed-2.0-code`

        - 💡 需要更多功能？查看 [完整参数文档](./doubao-seed-2.0-responses-reference)
      operationId: createResponseQuickDoubaoSeed20
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResponseQuickRequest'
      responses:
        '200':
          description: Respuesta generada con éxito
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseObject'
        '400':
          description: Error en los parámetros de la solicitud
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 400
                  message: Invalid request parameters
                  type: invalid_request_error
        '401':
          description: No autenticado, token inválido o expirado
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 401
                  message: Invalid or expired token
                  type: authentication_error
        '402':
          description: Cuota insuficiente, necesita recargar
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 402
                  message: Insufficient quota
                  type: insufficient_quota_error
                  fallback_suggestion: https://evolink.ai/dashboard/billing
        '403':
          description: Acceso denegado
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 403
                  message: Access denied for this model
                  type: permission_error
                  param: model
        '404':
          description: Recurso no encontrado
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 404
                  message: Specified model not found
                  type: not_found_error
                  param: model
                  fallback_suggestion: doubao-seed-2.0-pro
        '429':
          description: Límite de frecuencia de solicitudes excedido
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 429
                  message: Rate limit exceeded
                  type: rate_limit_error
                  fallback_suggestion: retry after 60 seconds
        '500':
          description: Error interno del servidor
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 500
                  message: Internal server error
                  type: internal_server_error
                  fallback_suggestion: try again later
        '502':
          description: Error del servicio upstream
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 502
                  message: Upstream AI service unavailable
                  type: upstream_error
                  fallback_suggestion: try different model
        '503':
          description: Servicio temporalmente no disponible
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 503
                  message: Service temporarily unavailable
                  type: service_unavailable_error
                  fallback_suggestion: retry after 30 seconds
components:
  schemas:
    ResponseQuickRequest:
      type: object
      required:
        - model
        - input
      properties:
        model:
          type: string
          description: |-
            对话模型名称

            - `doubao-seed-2.0-pro`: 旗舰版，综合能力最强，适合复杂推理和高质量生成
            - `doubao-seed-2.0-lite`: 轻量版，速度更快，性价比高
            - `doubao-seed-2.0-mini`: 极速版，响应最快，适合简单任务
            - `doubao-seed-2.0-code`: 代码专用版，针对代码生成和理解优化
          enum:
            - doubao-seed-2.0-pro
            - doubao-seed-2.0-lite
            - doubao-seed-2.0-mini
            - doubao-seed-2.0-code
          default: doubao-seed-2.0-pro
          example: doubao-seed-2.0-pro
        input:
          type: string
          description: 输入内容（纯文本），等同于使用 user 角色输入的文本信息
          example: 你好，介绍一下 Doubao Seed 2.0 的新特性
    ResponseObject:
      type: object
      properties:
        id:
          type: string
          description: 本次响应的唯一标识
          example: resp_02177148667427813c33c36521378d02b2c8389204fa8c3e2f63e
        object:
          type: string
          description: 对象类型，固定为 response
          enum:
            - response
          example: response
        created_at:
          type: number
          description: 创建时间的 Unix 时间戳（秒）
          example: 1771486674
        model:
          type: string
          description: 实际使用的模型名称和版本
          example: doubao-seed-2-0-code-preview-260215
        status:
          type: string
          description: |-
            响应状态

            - `completed`: 生成完成
            - `in_progress`: 生成中
            - `incomplete`: 未完成
            - `failed`: 失败
          enum:
            - completed
            - in_progress
            - incomplete
            - failed
          example: completed
        output:
          type: array
          description: 模型输出内容列表
          items:
            $ref: '#/components/schemas/OutputItem'
        service_tier:
          type: string
          description: 本次请求的服务等级
          example: default
        usage:
          $ref: '#/components/schemas/Usage'
        max_output_tokens:
          type: integer
          description: 模型输出最大 token 数
          example: 32768
        caching:
          type: object
          description: 缓存配置
          properties:
            type:
              type: string
              enum:
                - enabled
                - disabled
        store:
          type: boolean
          description: 是否存储了响应
          example: true
        expire_at:
          type: integer
          description: 存储过期时刻（Unix 时间戳）
          example: 1771745874
        error:
          type: object
          nullable: true
          description: 错误信息，成功时为 null
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
              description: HTTP状态错误代码
            message:
              type: string
              description: 错误描述信息
            type:
              type: string
              description: 错误类型
            param:
              type: string
              description: 相关参数名称
            fallback_suggestion:
              type: string
              description: 错误时的建议
    OutputItem:
      oneOf:
        - $ref: '#/components/schemas/ReasoningOutput'
        - $ref: '#/components/schemas/MessageOutput'
    Usage:
      type: object
      description: Token 使用统计信息
      properties:
        input_tokens:
          type: integer
          description: 输入 token 数量
          example: 88
        input_tokens_details:
          type: object
          description: 输入 token 详细信息
          properties:
            cached_tokens:
              type: integer
              description: 缓存 token 数量
              example: 0
        output_tokens:
          type: integer
          description: 输出 token 数量
          example: 230
        output_tokens_details:
          type: object
          description: 输出 token 详细信息
          properties:
            reasoning_tokens:
              type: integer
              description: 推理/思维链 token 数量
              example: 211
        total_tokens:
          type: integer
          description: 总 token 数量
          example: 318
    ReasoningOutput:
      title: 思维链输出
      type: object
      properties:
        id:
          type: string
          description: 输出项 ID
          example: rs_0217****404a
        type:
          type: string
          description: 输出类型，此处为 reasoning
          enum:
            - reasoning
        summary:
          type: array
          description: 思维链内容
          items:
            type: object
            properties:
              text:
                type: string
                description: 思维链内容文本
              type:
                type: string
                description: 类型，固定为 summary_text
                enum:
                  - summary_text
        status:
          type: string
          description: 状态
          enum:
            - in_progress
            - completed
            - incomplete
          example: completed
    MessageOutput:
      title: 消息输出
      type: object
      properties:
        id:
          type: string
          description: 输出项 ID
          example: msg_0217****a93c
        type:
          type: string
          description: 输出类型，此处为 message
          enum:
            - message
        role:
          type: string
          description: 角色，固定为 assistant
          enum:
            - assistant
        content:
          type: array
          description: 消息内容列表
          items:
            type: object
            properties:
              text:
                type: string
                description: 文本内容
                example: 你好呀！很高兴见到你～ 有什么我可以帮你的吗？
              type:
                type: string
                description: 内容类型
                enum:
                  - output_text
              annotations:
                type: array
                nullable: true
                description: 注释信息
        status:
          type: string
          description: 状态
          enum:
            - in_progress
            - completed
            - incomplete
          example: completed
  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
        ```

````