> ## 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 - クイックスタート

> - 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`
- 💡 より多くの機能が必要ですか？[完全なAPIリファレンス](./doubao-seed-2.0-responses-reference)をご覧ください

<Note>
  **BaseURL**：デフォルトの BaseURL は `https://direct.evolink.ai` で、テキストモデルへの対応が優れており、長時間接続をサポートします。`https://api.evolink.ai` はマルチモーダルの主力エンドポイントで、テキストモデルに対しては代替アドレスとして使用されます。
</Note>


## OpenAPI

````yaml ja/api-manual/language-series/doubao-seed-2.0/doubao-seed-2.0-responses-quickstart.json POST /v1/responses
openapi: 3.1.0
info:
  title: Doubao Seed 2.0 Responses API クイックスタート
  description: Doubao Seed 2.0 Responses APIをすぐに使い始める、5分で最初の呼び出しを完了
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://direct.evolink.ai
    description: 本番環境（推奨）
  - url: https://api.evolink.ai
    description: 代替 URL
security:
  - bearerAuth: []
tags:
  - name: Responses API
    description: Responses API チャット生成インターフェース
paths:
  /v1/responses:
    post:
      tags:
        - Responses API
      summary: 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`

        - 💡
        より多くの機能が必要ですか？[完全なAPIリファレンス](./doubao-seed-2.0-responses-reference)をご覧ください
      operationId: createResponseQuickDoubaoSeed20
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResponseQuickRequest'
      responses:
        '200':
          description: レスポンス生成成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseObject'
        '400':
          description: リクエストパラメータエラー
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 400
                  message: Invalid request parameters
                  type: invalid_request_error
        '401':
          description: 未認証、トークンが無効または期限切れ
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 401
                  message: Invalid or expired token
                  type: authentication_error
        '402':
          description: クォータ不足、チャージが必要
          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: アクセス権限なし
          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: リソースが存在しません
          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: リクエスト頻度制限超過
          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: サーバー内部エラー
          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: アップストリームサービスエラー
          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: サービスが一時的に利用不可
          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: モデル出力の最大トークン数
          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: トークン使用統計情報
      properties:
        input_tokens:
          type: integer
          description: 入力トークン数
          example: 88
        input_tokens_details:
          type: object
          description: 入力トークン詳細情報
          properties:
            cached_tokens:
              type: integer
              description: キャッシュトークン数
              example: 0
        output_tokens:
          type: integer
          description: 出力トークン数
          example: 230
        output_tokens_details:
          type: object
          description: 出力トークン詳細情報
          properties:
            reasoning_tokens:
              type: integer
              description: 推論/思考チェーンのトークン数
              example: 211
        total_tokens:
          type: integer
          description: 合計トークン数
          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: |-
        ##すべてのAPIにBearer Token認証が必要です##

        **APIキーの取得：**

        [APIキー管理ページ](https://evolink.ai/dashboard/keys)にアクセスしてAPIキーを取得してください

        **リクエストヘッダーに追加：**
        ```
        Authorization: Bearer YOUR_API_KEY
        ```

````