> ## 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 — Quickstart

> - Call Seed using the Anthropic Messages format, including from compatible tools such as Claude Code.
- Synchronous requests return the reply directly.
- Start with just the essential parameters.
- Supported models — `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 legacy model names**: `doubao-seed-2.0-pro` / `doubao-seed-2.0-lite` are now routed to `doubao-seed-2-1-lite` and `doubao-seed-2.0-code` to `doubao-seed-evolving`; parameter behavior follows the new model. Use the new model names for new integrations. `doubao-seed-2.0-mini` is not affected
- [API reference](/en/api-manual/language-series/doubao-seed-2.0/doubao-seed-2.0-messages-reference)

> [!NOTE]
>
> **BaseURL**: The default BaseURL is `https://direct.evolink.ai`, which has better support for text models and long-lived connections. `https://api.evolink.ai` is the primary endpoint for multimodal services and serves as a fallback address for text models.

> [!NOTE]
>
> Seed enables reasoning by default. In `content`, a `type="thinking"` block precedes the answer and counts toward output tokens. Set `max_tokens` to at least 1024 so reasoning is less likely to exhaust the budget before any answer text is generated.


## OpenAPI

````yaml en/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 — Quickstart
  description: >-
    Make your first chat request to Seed with Messages (Anthropic) in five
    minutes.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://direct.evolink.ai
    description: Production (recommended)
  - url: https://api.evolink.ai
    description: Alternative URL
security:
  - bearerAuth: []
tags:
  - name: Messages
    description: Anthropic Messages-compatible API
paths:
  /v1/messages:
    post:
      tags:
        - Messages
      summary: Start a Seed conversation with Messages (Anthropic)
      description: >-
        - Call Seed using the Anthropic Messages format, including from
        compatible tools such as Claude Code.

        - Synchronous requests return the reply directly.

        - Start with just the essential parameters.

        - Supported models — `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 legacy model names**: `doubao-seed-2.0-pro` /
        `doubao-seed-2.0-lite` are now routed to `doubao-seed-2-1-lite` and
        `doubao-seed-2.0-code` to `doubao-seed-evolving`; parameter behavior
        follows the new model. Use the new model names for new integrations.
        `doubao-seed-2.0-mini` is not affected

        - [API
        reference](/en/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: Chat completion successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageResponse'
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 400
                  message: Invalid request parameters
                  type: invalid_request_error
        '401':
          description: Unauthorized, invalid or expired token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: 401
                  message: Invalid or expired token
                  type: authentication_error
        '402':
          description: Insufficient quota, recharge required
          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: Access denied
          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: Resource not found
          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: Rate limit exceeded
          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: Internal server error
          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: The model service is temporarily unavailable.
          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: Service temporarily unavailable
          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: >-
            Choose a model


            | Model ID | Use case | Context window |

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

            | `doubao-seed-2-1-pro` | Recommended flagship for complex
            reasoning, long documents and codebases | 1,000,000 tokens |

            | `doubao-seed-2-1-turbo` | Low-cost option for chat, extraction and
            agent tasks | 256,000 tokens |

            | `doubao-seed-2-1-lite` | Lowest-priced Seed 2.1 model. Audio input
            is available only via Chat Completions and Responses | 1,000,000
            tokens |

            | `doubao-seed-evolving` | Updated weekly for evaluating new
            capabilities | 1,000,000 tokens |

            | `doubao-seed-2.0-pro` | Legacy model name, now routed to
            `doubao-seed-2-1-lite` | 1,000,000 tokens |

            | `doubao-seed-2.0-lite` | Legacy model name, now routed to
            `doubao-seed-2-1-lite` | 1,000,000 tokens |

            | `doubao-seed-2.0-mini` | Fastest Seed 2.0 model for simple tasks |
            256,000 tokens |

            | `doubao-seed-2.0-code` | Legacy model name, now routed to
            `doubao-seed-evolving` | 1,000,000 tokens |


            Seed 2.1 model IDs use a hyphen (`2-1`). Seed 2.0 IDs use a period
            (`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: >-
            Maximum output tokens, including reasoning and the answer. With
            reasoning enabled, allow at least 1024 tokens. If the budget runs
            out, `stop_reason` is `max_tokens` and the response may contain only
            reasoning.
        messages:
          type: array
          minItems: 1
          description: Chat message list
          items:
            $ref: '#/components/schemas/MessageSimple'
          example:
            - role: user
              content: Hello! Introduce yourself in three sentences.
    MessageResponse:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the response
          example: 0217952345678901234567890abcdef
        type:
          type: string
          enum:
            - message
          description: Always `message`.
        role:
          type: string
          enum:
            - assistant
          description: Always `assistant`.
        model:
          type: string
          description: Model used for this request.
          example: doubao-seed-2-1-pro
        content:
          type: array
          description: >-
            Generated content blocks. With reasoning enabled, a `thinking` block
            usually precedes the `text` block. Read all blocks with
            `type="text"` to obtain the answer.
          items:
            oneOf:
              - $ref: '#/components/schemas/TextBlock'
              - $ref: '#/components/schemas/ThinkingBlock'
          example:
            - type: thinking
              thinking: The user wants a brief introduction…
              signature: EqQBCkgIARABGAIi...
            - type: text
              text: >-
                Hello! I’m a Seed language model. I can help with reasoning,
                writing and coding.
        stop_reason:
          type: string
          description: |-
            Reason generation stopped.

            - `end_turn`: normal completion
            - `max_tokens`: token limit reached
            - `stop_sequence`: stop sequence matched
            - `tool_use`: the model requested a function call
          enum:
            - end_turn
            - max_tokens
            - stop_sequence
            - tool_use
          example: end_turn
        stop_sequence:
          type:
            - string
            - 'null'
          description: Matched stop sequence, or `null` if none matched.
        usage:
          $ref: '#/components/schemas/MessageUsage'
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
              description: HTTP status error code
            message:
              type: string
              description: Error message
            type:
              type: string
              description: Error type
            param:
              type: string
              description: Related parameter name
            fallback_suggestion:
              type: string
              description: Suggestion for handling the error
    MessageSimple:
      type: object
      required:
        - role
        - content
      properties:
        role:
          type: string
          enum:
            - user
          description: Message role
        content:
          type: string
          description: Message content (plain text)
    TextBlock:
      type: object
      title: Text
      required:
        - type
        - text
      properties:
        type:
          type: string
          enum:
            - text
          description: Always `text`.
        text:
          type: string
          description: Text content
    ThinkingBlock:
      type: object
      title: Reasoning
      required:
        - type
        - thinking
      properties:
        type:
          type: string
          enum:
            - thinking
          description: Always `thinking`.
        thinking:
          type: string
          description: >-
            Model reasoning. In later turns, send it back unchanged with its
            signature.
        signature:
          type: string
          description: >-
            Reasoning signature. In later turns, preserve the signature,
            reasoning and block order.
    MessageUsage:
      type: object
      description: Token usage statistics
      properties:
        input_tokens:
          type: integer
          description: Uncached input tokens, excluding `cache_read_input_tokens`.
          example: 25
        cache_read_input_tokens:
          type: integer
          description: >-
            Input tokens billed at the cache-hit rate. Total input =
            `input_tokens` + `cache_read_input_tokens`.
          example: 0
        cache_creation_input_tokens:
          type: integer
          description: Always 0. This endpoint has no separate cache-write fee.
          example: 0
        output_tokens:
          type: integer
          description: Output tokens, including reasoning.
          example: 120
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        ## All APIs require Bearer Token authentication ##


        **Get API Key:**


        Visit [API Key Management Page](https://evolink.ai/dashboard/keys) to
        get your API Key


        **Add to request header:**

        ```

        Authorization: Bearer YOUR_API_KEY

        ```

````

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