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

# Seed Messages — 빠른 시작

> - Anthropic Messages 형식으로 Seed를 호출합니다. Claude Code 등 호환 도구에서도 사용할 수 있습니다.
- 동기 요청은 응답을 바로 반환합니다.
- 필수 매개변수만으로 시작할 수 있습니다.
- 지원 모델 — `doubao-seed-2-1-pro`, `doubao-seed-2-1-turbo`, `doubao-seed-2-1-lite`, `doubao-seed-evolving`, `doubao-seed-2.0-pro`, `doubao-seed-2.0-lite`, `doubao-seed-2.0-mini`, `doubao-seed-2.0-code`
- **Seed 2.0 이전 모델 이름**: `doubao-seed-2.0-pro` / `doubao-seed-2.0-lite`는 현재 `doubao-seed-2-1-lite` 모델로, `doubao-seed-2.0-code`는 `doubao-seed-evolving` 모델로 연결됩니다. 파라미터 동작은 새 모델을 따릅니다. 새 연동에는 새 모델 이름을 사용하세요. `doubao-seed-2.0-mini`는 영향을 받지 않습니다
- [API 레퍼런스](/ko/api-manual/language-series/doubao-seed-2.0/doubao-seed-2.0-messages-reference)

> [!NOTE]
>
> **BaseURL**: 기본 BaseURL은 `https://direct.evolink.ai`이며, 텍스트 모델 지원이 더 우수하고 장시간 연결을 지원합니다. `https://api.evolink.ai`는 멀티모달 서비스의 주력 엔드포인트이며, 텍스트 모델에 대해서는 대체 주소로 사용됩니다.

> [!NOTE]
>
> Seed는 추론이 기본으로 켜집니다. `content`에서 본문 앞에 나오는 `type="thinking"` 블록도 출력 토큰에 포함됩니다. 본문 생성 전에 한도에 도달할 수 있으므로 `max_tokens`는 1024 이상을 권장합니다.


## OpenAPI

````yaml ko/api-manual/language-series/doubao-seed-2.0/doubao-seed-2.0-messages-quickstart.json POST /v1/messages
openapi: 3.1.0
info:
  title: Seed Messages — 빠른 시작
  description: Messages (Anthropic)로 5분 안에 Seed에 첫 대화 요청을 보냅니다.
  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: Messages
    description: Anthropic Messages 호환 API
paths:
  /v1/messages:
    post:
      tags:
        - Messages
      summary: Messages (Anthropic)로 Seed 대화 시작
      description: >-
        - Anthropic Messages 형식으로 Seed를 호출합니다. Claude Code 등 호환 도구에서도 사용할 수
        있습니다.

        - 동기 요청은 응답을 바로 반환합니다.

        - 필수 매개변수만으로 시작할 수 있습니다.

        - 지원 모델 — `doubao-seed-2-1-pro`, `doubao-seed-2-1-turbo`,
        `doubao-seed-2-1-lite`, `doubao-seed-evolving`, `doubao-seed-2.0-pro`,
        `doubao-seed-2.0-lite`, `doubao-seed-2.0-mini`, `doubao-seed-2.0-code`

        - **Seed 2.0 이전 모델 이름**: `doubao-seed-2.0-pro` / `doubao-seed-2.0-lite`는
        현재 `doubao-seed-2-1-lite` 모델로, `doubao-seed-2.0-code`는
        `doubao-seed-evolving` 모델로 연결됩니다. 파라미터 동작은 새 모델을 따릅니다. 새 연동에는 새 모델 이름을
        사용하세요. `doubao-seed-2.0-mini`는 영향을 받지 않습니다

        - [API
        레퍼런스](/ko/api-manual/language-series/doubao-seed-2.0/doubao-seed-2.0-messages-reference)
      operationId: createMessageQuickSeed
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MessageQuickRequest'
      responses:
        '200':
          description: 채팅 생성 성공
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageResponse'
        '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/credits
        '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-1-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:
    MessageQuickRequest:
      type: object
      required:
        - model
        - max_tokens
        - messages
      properties:
        model:
          type: string
          description: >-
            모델 선택


            | 모델 ID | 용도 | 컨텍스트 길이 |

            |---|---|---|

            | `doubao-seed-2-1-pro` | 복잡한 추론, 긴 문서 및 대규모 코드 분석에 권장하는 최상위 모델 |
            100만 토큰 |

            | `doubao-seed-2-1-turbo` | 대화, 데이터 추출 및 에이전트 작업에 적합한 저비용 모델 | 25만
            6천 토큰 |

            | `doubao-seed-2-1-lite` | Seed 2.1 최저가 모델. 오디오 입력은 Chat
            Completions와 Responses에서만 지원 | 100만 토큰 |

            | `doubao-seed-evolving` | 새 기능을 평가할 수 있도록 매주 업데이트 | 100만 토큰 |

            | `doubao-seed-2.0-pro` | 이전 모델 이름으로, 현재 `doubao-seed-2-1-lite` 모델로
            연결됩니다 | 100만 토큰 |

            | `doubao-seed-2.0-lite` | 이전 모델 이름으로, 현재 `doubao-seed-2-1-lite` 모델로
            연결됩니다 | 100만 토큰 |

            | `doubao-seed-2.0-mini` | 간단한 작업에 적합한 Seed 2.0 최고속 모델 | 25만 6천 토큰 |

            | `doubao-seed-2.0-code` | 이전 모델 이름으로, 현재 `doubao-seed-evolving` 모델로
            연결됩니다 | 100만 토큰 |


            모델 ID는 Seed 2.1에서 하이픈(`2-1`), Seed 2.0에서 마침표(`2.0`)를 사용합니다.
          enum:
            - doubao-seed-2-1-pro
            - doubao-seed-2-1-turbo
            - doubao-seed-2-1-lite
            - doubao-seed-evolving
            - doubao-seed-2.0-pro
            - doubao-seed-2.0-lite
            - doubao-seed-2.0-mini
            - doubao-seed-2.0-code
          default: doubao-seed-2-1-pro
          example: doubao-seed-2-1-pro
        max_tokens:
          type: integer
          minimum: 1
          example: 4096
          description: >-
            추론과 본문을 합친 최대 출력 토큰 수입니다. 추론을 켰을 때는 1024 이상을 권장합니다. 한도에 도달하면
            `stop_reason`이 `max_tokens`가 되고 추론만 반환될 수 있습니다.
        messages:
          type: array
          minItems: 1
          description: 채팅 메시지 목록
          items:
            $ref: '#/components/schemas/MessageSimple'
          example:
            - role: user
              content: 안녕하세요. 세 문장으로 자기소개해 주세요.
    MessageResponse:
      type: object
      properties:
        id:
          type: string
          description: 응답의 고유 식별자
          example: 0217952345678901234567890abcdef
        type:
          type: string
          enum:
            - message
          description: 항상 `message`입니다.
        role:
          type: string
          enum:
            - assistant
          description: 항상 `assistant`입니다.
        model:
          type: string
          description: 이 요청에 사용된 모델입니다.
          example: doubao-seed-2-1-pro
        content:
          type: array
          description: >-
            생성된 콘텐츠 블록입니다. 추론이 켜져 있으면 보통 `thinking` 다음에 `text`가 옵니다.
            `type="text"`인 블록에서 본문을 읽으세요.
          items:
            oneOf:
              - $ref: '#/components/schemas/TextBlock'
              - $ref: '#/components/schemas/ThinkingBlock'
          example:
            - type: thinking
              thinking: 사용자는 짧은 자기소개를 원한다…
              signature: EqQBCkgIARABGAIi...
            - type: text
              text: 안녕하세요! 저는 추론, 글쓰기, 코딩을 돕는 Seed 언어 모델입니다.
        stop_reason:
          type: string
          description: |-
            생성 종료 사유입니다.

            - `end_turn`: 정상 종료
            - `max_tokens`: 토큰 한도 도달
            - `stop_sequence`: 중지 시퀀스 일치
            - `tool_use`: 함수 호출 요청
          enum:
            - end_turn
            - max_tokens
            - stop_sequence
            - tool_use
          example: end_turn
        stop_sequence:
          type:
            - string
            - 'null'
          description: 일치한 중지 시퀀스입니다. 일치하는 항목이 없으면 `null`입니다.
        usage:
          $ref: '#/components/schemas/MessageUsage'
    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: 오류 시 제안
    MessageSimple:
      type: object
      required:
        - role
        - content
      properties:
        role:
          type: string
          enum:
            - user
          description: 메시지 역할
        content:
          type: string
          description: 메시지 내용 (일반 텍스트)
    TextBlock:
      type: object
      title: 텍스트
      required:
        - type
        - text
      properties:
        type:
          type: string
          enum:
            - text
          description: 항상 `text`입니다.
        text:
          type: string
          description: 텍스트 내용
    ThinkingBlock:
      type: object
      title: 추론
      required:
        - type
        - thinking
      properties:
        type:
          type: string
          enum:
            - thinking
          description: 항상 `thinking`입니다.
        thinking:
          type: string
          description: 모델의 추론 내용입니다. 다음 턴에서 서명과 함께 그대로 다시 보냅니다.
        signature:
          type: string
          description: 추론 서명입니다. 다음 턴에서도 서명, 추론 내용, 블록 순서를 그대로 유지합니다.
    MessageUsage:
      type: object
      description: 토큰 사용 통계 정보
      properties:
        input_tokens:
          type: integer
          description: 캐시 미적중 입력 토큰 수입니다. `cache_read_input_tokens`는 제외합니다.
          example: 25
        cache_read_input_tokens:
          type: integer
          description: >-
            캐시 적중 요금으로 청구되는 입력 토큰 수입니다. 전체 입력 = `input_tokens` +
            `cache_read_input_tokens`.
          example: 0
        cache_creation_input_tokens:
          type: integer
          description: 항상 0입니다. 이 엔드포인트에는 별도 캐시 쓰기 요금이 없습니다.
          example: 0
        output_tokens:
          type: integer
          description: 추론을 포함한 출력 토큰 수입니다.
          example: 120
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: |-
        ##모든 API는 Bearer Token 인증이 필요합니다##

        **API Key 받기:**

        [API Key 관리 페이지](https://evolink.ai/dashboard/keys)를 방문하여 API Key를 받으세요

        **요청 헤더에 추가:**
        ```
        Authorization: Bearer YOUR_API_KEY
        ```

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.