> ## 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 — API reference

> - Call Seed using the Anthropic Messages format, including from compatible tools such as Claude Code.
- This endpoint is stateless. Send the full history on each turn and replay assistant thinking blocks unchanged.
- Send text, images or documents. For audio on Lite, use Chat Completions or Responses.
- Reasoning is enabled by default. Disable it with `thinking` or adjust its depth with `output_config.effort`.
- All models support function calls. Seed 2.1 and `doubao-seed-evolving` also support web search. (`web_search_20250305`)
- Return structured JSON with JSON Object or JSON Schema. (`output_config.format`)
- Repeated long prefixes are automatically billed at the cache-hit rate on a hit. No `cache_control` is needed. See `usage.cache_read_input_tokens`.
- With `stream=true`, Anthropic SSE events arrive in order: `message_start` → `content_block_start` / `content_block_delta` / `content_block_stop` → `message_delta` → `message_stop`. The final usage appears in `message_delta`.
- **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
- [Quickstart](/en/api-manual/language-series/doubao-seed-2.0/doubao-seed-2.0-messages-quickstart)

> [!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]
>
> Only Seed 2.1 and `doubao-seed-evolving` support `web_search_20250305`. Messages does not accept audio. For audio input with `doubao-seed-2-1-lite`, use [Chat Completions](https://evolink.ai/docs/en/api-manual/language-series/doubao-seed-2.0/doubao-seed-2.0-reference.md) or [Responses](https://evolink.ai/docs/en/api-manual/language-series/doubao-seed-2.0/doubao-seed-2.0-responses-reference.md).


## OpenAPI

````yaml en/api-manual/language-series/doubao-seed-2.0/doubao-seed-2.0-messages-reference.json POST /v1/messages
openapi: 3.1.0
info:
  title: Seed Messages — API reference
  description: Parameters and advanced features of Messages (Anthropic) for Seed models.
  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: Seed Messages
      description: >-
        - Call Seed using the Anthropic Messages format, including from
        compatible tools such as Claude Code.

        - This endpoint is stateless. Send the full history on each turn and
        replay assistant thinking blocks unchanged.

        - Send text, images or documents. For audio on Lite, use Chat
        Completions or Responses.

        - Reasoning is enabled by default. Disable it with `thinking` or adjust
        its depth with `output_config.effort`.

        - All models support function calls. Seed 2.1 and `doubao-seed-evolving`
        also support web search. (`web_search_20250305`)

        - Return structured JSON with JSON Object or JSON Schema.
        (`output_config.format`)

        - Repeated long prefixes are automatically billed at the cache-hit rate
        on a hit. No `cache_control` is needed. See
        `usage.cache_read_input_tokens`.

        - With `stream=true`, Anthropic SSE events arrive in order:
        `message_start` → `content_block_start` / `content_block_delta` /
        `content_block_stop` → `message_delta` → `message_stop`. The final usage
        appears in `message_delta`.

        - **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

        -
        [Quickstart](/en/api-manual/language-series/doubao-seed-2.0/doubao-seed-2.0-messages-quickstart)
      operationId: createMessageSeed
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateMessageRequest'
            examples:
              simple:
                summary: Simple text chat
                value:
                  model: doubao-seed-2-1-pro
                  max_tokens: 4096
                  messages:
                    - role: user
                      content: Please introduce yourself
              system_prompt:
                summary: Using system prompt
                value:
                  model: doubao-seed-2-1-pro
                  max_tokens: 4096
                  system: >-
                    You are a meticulous technical editor. Answer concisely in
                    English.
                  messages:
                    - role: user
                      content: Explain what context caching is.
              multi_turn:
                summary: Multi-turn conversation with the full history
                value:
                  model: doubao-seed-2-1-turbo
                  max_tokens: 4096
                  messages:
                    - role: user
                      content: Remember the passphrase RED-583.
                    - role: assistant
                      content: Got it.
                    - role: user
                      content: What is the passphrase? Reply with only the passphrase.
              streaming:
                summary: Streaming output
                value:
                  model: doubao-seed-2-1-pro
                  max_tokens: 4096
                  stream: true
                  messages:
                    - role: user
                      content: Write a four-line poem about autumn.
              thinking_off:
                summary: Disable reasoning
                value:
                  model: doubao-seed-2-1-turbo
                  max_tokens: 1024
                  thinking:
                    type: disabled
                  messages:
                    - role: user
                      content: >-
                        Translate into French: Today’s meeting has been moved to
                        3 p.m.
              effort:
                summary: Adjust reasoning depth
                value:
                  model: doubao-seed-2-1-pro
                  max_tokens: 8192
                  output_config:
                    effort: low
                  messages:
                    - role: user
                      content: Compare when to use quicksort and merge sort.
              vision:
                summary: Image understanding
                value:
                  model: doubao-seed-2-1-pro
                  max_tokens: 4096
                  messages:
                    - role: user
                      content:
                        - type: image
                          source:
                            type: url
                            url: https://www.gstatic.com/webp/gallery/1.jpg
                        - type: text
                          text: >-
                            Describe the scene and the main elements in this
                            image.
              tool_use:
                summary: Function Call
                value:
                  model: doubao-seed-2-1-pro
                  max_tokens: 4096
                  messages:
                    - role: user
                      content: Check today's weather in Beijing.
                  tools:
                    - name: get_weather
                      description: Get the weather for a specified city
                      input_schema:
                        type: object
                        properties:
                          city:
                            type: string
                            description: City name
                        required:
                          - city
                  tool_choice:
                    type: auto
              tool_result:
                summary: Return a function result
                value:
                  model: doubao-seed-2-1-pro
                  max_tokens: 4096
                  tools:
                    - name: get_weather
                      description: Get the weather for a specified city
                      input_schema:
                        type: object
                        properties:
                          city:
                            type: string
                        required:
                          - city
                  messages:
                    - role: user
                      content: Check today's weather in Beijing.
                    - role: assistant
                      content:
                        - type: thinking
                          thinking: I need to call the weather function…
                          signature: EqQBCkgIARABGAIi...
                        - type: tool_use
                          id: call_01
                          name: get_weather
                          input:
                            city: Beijing
                    - role: user
                      content:
                        - type: tool_result
                          tool_use_id: call_01
                          content: Sunny, 12–22 °C, light northerly wind (Beaufort 2)
              web_search:
                summary: Web search (Seed 2.1 and Evolving only)
                value:
                  model: doubao-seed-2-1-pro
                  max_tokens: 4096
                  messages:
                    - role: user
                      content: What were the major tech stories this past week?
                  tools:
                    - type: web_search_20250305
                      name: web_search
                      max_uses: 2
              structured_output:
                summary: Structured output (JSON Schema)
                value:
                  model: doubao-seed-2-1-pro
                  max_tokens: 4096
                  output_config:
                    format:
                      type: json_schema
                      schema:
                        type: object
                        properties:
                          title:
                            type: string
                          tags:
                            type: array
                            items:
                              type: string
                        required:
                          - title
                          - tags
                        additionalProperties: false
                  messages:
                    - role: user
                      content: >-
                        Generate a title and three tags for an article about
                        context caching.
      responses:
        '200':
          description: >-
            Successful response. Streaming requests return an Anthropic SSE
            event stream.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageResponse'
            text/event-stream:
              schema:
                type: string
                description: >-
                  The event sequence typically includes message_start,
                  content_block_*, message_delta, and message_stop.
        '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:
    CreateMessageRequest:
      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: >-
            Send the full message history on each turn. Preserve assistant
            thinking blocks and their signatures exactly.
          items:
            $ref: '#/components/schemas/Message'
        system:
          description: System prompt as a string or an array of text blocks.
          oneOf:
            - type: string
            - type: array
              items:
                $ref: '#/components/schemas/TextBlock'
        stream:
          type: boolean
          default: false
          description: Stream the response as Anthropic SSE events.
        thinking:
          type: object
          description: Enable or disable reasoning.
          required:
            - type
          properties:
            type:
              type: string
              enum:
                - enabled
                - disabled
              description: >-
                With `enabled`, the model reasons before answering (default for
                all Seed models). With `disabled`, it answers directly.
                Reasoning tokens count as output and are billed at the output
                rate.
        output_config:
          type: object
          description: Reasoning effort and structured output settings.
          properties:
            effort:
              type: string
              enum:
                - none
                - minimal
                - low
                - medium
                - high
                - xhigh
                - max
              description: >-
                Reasoning effort: `minimal` answers directly, `low` prioritizes
                speed, `medium` balances speed and depth, and `high` analyzes
                complex problems in depth.


                Seed 2.1 and `doubao-seed-evolving` default to `high`. Seed 2.0
                defaults to `medium`. The alias `none` maps to `minimal`, and
                `xhigh` and `max` map to `high`.
            format:
              type: object
              description: Structured output format
              required:
                - type
              properties:
                type:
                  type: string
                  enum:
                    - json_object
                    - json_schema
                  description: >-
                    `json_object` returns a JSON object. Explicitly request JSON
                    in the prompt. `json_schema` returns JSON conforming to
                    `schema`.
                schema:
                  type: object
                  additionalProperties: true
                  description: JSON Schema definition, required for `json_schema`.
        temperature:
          type: number
          minimum: 0
          maximum: 2
          description: >-
            Sampling temperature in [0, 2]. Adjust either `temperature` or
            `top_p`.
        top_p:
          type: number
          minimum: 0
          maximum: 1
          description: Nucleus sampling probability threshold in [0, 1].
        stop_sequences:
          type: array
          items:
            type: string
          maxItems: 4
          description: >-
            Up to four sequences that stop generation. The matched string is
            omitted. Disable reasoning before using this parameter.
        tools:
          type: array
          description: >-
            All Seed models support functions defined with `name`, `description`
            and `input_schema`. For web search, use `type=web_search_20250305`
            and `name=web_search` on Seed 2.1 or `doubao-seed-evolving`.
            `doubao-seed-2.0-mini` returns 400 for web search. Other server
            tools such as `web_fetch` also return 400. Each search performed is
            billed at the model’s rate.
          items:
            oneOf:
              - $ref: '#/components/schemas/Tool'
              - $ref: '#/components/schemas/WebSearchTool'
        tool_choice:
          $ref: '#/components/schemas/ToolChoice'
    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'
              - $ref: '#/components/schemas/ToolUseBlock'
              - $ref: '#/components/schemas/ServerToolUseBlock'
              - $ref: '#/components/schemas/WebSearchResultBlock'
          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
    Message:
      type: object
      required:
        - role
        - content
      properties:
        role:
          type: string
          enum:
            - user
            - assistant
          description: >-
            Message role. Use the top-level `system` field for the system
            prompt.
        content:
          description: Message content as a plain string or an array of content blocks.
          oneOf:
            - type: string
            - type: array
              items:
                $ref: '#/components/schemas/ContentBlock'
    TextBlock:
      type: object
      title: Text
      required:
        - type
        - text
      properties:
        type:
          type: string
          enum:
            - text
          description: Always `text`.
        text:
          type: string
          description: Text content
    Tool:
      type: object
      title: Custom function
      required:
        - name
        - input_schema
      properties:
        name:
          type: string
          description: Function name
        description:
          type: string
          description: Description that helps the model decide when to call the function.
        input_schema:
          type: object
          additionalProperties: true
          description: Function arguments defined using JSON Schema.
    WebSearchTool:
      type: object
      title: Web search (Seed 2.1 and Evolving only)
      required:
        - type
        - name
      properties:
        type:
          type: string
          enum:
            - web_search_20250305
          description: Always `web_search_20250305`.
        name:
          type: string
          enum:
            - web_search
          description: Always `web_search`.
        max_uses:
          type: integer
          minimum: 1
          description: Maximum searches permitted in this request.
        allowed_domains:
          type: array
          items:
            type: string
          description: Search only these domains.
        blocked_domains:
          type: array
          items:
            type: string
          description: Exclude these domains from search.
        user_location:
          type: object
          additionalProperties: true
          description: Location for the search, such as country, region or city.
    ToolChoice:
      type: object
      required:
        - type
      description: Tool selection policy. Configure `tools` first.
      properties:
        type:
          type: string
          enum:
            - auto
            - any
            - tool
            - none
          default: auto
          description: >-
            `auto`: model decides. `any`: use at least one tool. `tool`: use the
            tool specified by `name`. `none`: disable tool calls.
        name:
          type: string
          description: Tool name to call when `type` is `tool`.
        disable_parallel_tool_use:
          type: boolean
          default: false
          description: Prevent parallel tool calls in the same turn.
    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.
    ToolUseBlock:
      type: object
      title: Tool use
      required:
        - type
        - id
        - name
        - input
      properties:
        type:
          type: string
          enum:
            - tool_use
          description: Always `tool_use`.
        id:
          type: string
          description: Tool call ID. Link the result using `tool_use_id`.
        name:
          type: string
          description: Function the model requested.
        input:
          type: object
          additionalProperties: true
          description: Function arguments generated by the model, as an object.
    ServerToolUseBlock:
      type: object
      title: Web search call
      properties:
        type:
          type: string
          enum:
            - server_tool_use
          description: Always `server_tool_use`.
        id:
          type: string
          description: Server tool call ID.
        name:
          type: string
          description: Tool name. For web search use `web_search`.
        input:
          type: object
          additionalProperties: true
          description: Search parameters generated by the model, such as `query`.
    WebSearchResultBlock:
      type: object
      title: Web search results
      properties:
        type:
          type: string
          enum:
            - web_search_tool_result
          description: Always `web_search_tool_result`.
        tool_use_id:
          type: string
          description: Corresponding `server_tool_use` ID.
        content:
          description: >-
            Search results, or an error object with
            `type=web_search_tool_result_error` and an `error_code` if the
            search fails.
          oneOf:
            - type: array
              items:
                type: object
                properties:
                  type:
                    type: string
                    enum:
                      - web_search_result
                  title:
                    type: string
                    description: Result title
                  url:
                    type: string
                    description: Result URL
                  page_age:
                    type: string
                    description: Page age
                  encrypted_content:
                    type: string
                    description: Encrypted content. Return it unchanged in later turns.
            - type: object
              properties:
                type:
                  type: string
                  enum:
                    - web_search_tool_result_error
                error_code:
                  type: string
                  description: Error code
    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
        server_tool_use:
          type: object
          description: Actual server tool calls, returned when web search is used.
          properties:
            web_search_requests:
              type: integer
              description: >-
                Number of searches performed for this request. Each search is
                billable.
              example: 1
    ContentBlock:
      description: >-
        Text, image, document, reasoning, function call or function result. Web
        search calls and results can also be sent back in later turns.
      oneOf:
        - $ref: '#/components/schemas/TextBlock'
        - $ref: '#/components/schemas/ImageBlock'
        - $ref: '#/components/schemas/DocumentBlock'
        - $ref: '#/components/schemas/ThinkingBlock'
        - $ref: '#/components/schemas/ToolUseBlock'
        - $ref: '#/components/schemas/ToolResultBlock'
        - $ref: '#/components/schemas/ServerToolUseBlock'
        - $ref: '#/components/schemas/WebSearchResultBlock'
    ImageBlock:
      type: object
      title: Image
      required:
        - type
        - source
      properties:
        type:
          type: string
          enum:
            - image
          description: Always `image`.
        source:
          type: object
          required:
            - type
          description: Image source
          properties:
            type:
              type: string
              enum:
                - url
                - base64
              description: '`url`: public image URL. `base64`: Base64-encoded image data.'
            url:
              type: string
              description: Image URL, required for `url`.
            media_type:
              type: string
              enum:
                - image/jpeg
                - image/png
                - image/gif
                - image/webp
              description: Image MIME type, required for `base64`.
            data:
              type: string
              description: >-
                Base64 image data without a `data:` prefix, required for
                `base64`.
    DocumentBlock:
      type: object
      title: Document
      required:
        - type
        - source
      properties:
        type:
          type: string
          enum:
            - document
          description: Always `document`.
        source:
          type: object
          required:
            - type
          description: Document source
          properties:
            type:
              type: string
              enum:
                - url
                - base64
                - text
              description: >-
                `url`: public document URL. `base64`: Base64-encoded document.
                `text`: plain text.
            url:
              type: string
              description: Document URL, required for `url`.
            media_type:
              type: string
              description: Document MIME type, such as `application/pdf` or `text/plain`.
            data:
              type: string
              description: Document data, required for `base64` or `text`.
    ToolResultBlock:
      type: object
      title: Function result
      required:
        - type
        - tool_use_id
        - content
      properties:
        type:
          type: string
          enum:
            - tool_result
          description: Always `tool_result`.
        tool_use_id:
          type: string
          description: ID of the corresponding `tool_use` block.
        content:
          description: Function result as a string or an array of text and image blocks.
          oneOf:
            - type: string
            - type: array
              items:
                oneOf:
                  - $ref: '#/components/schemas/TextBlock'
                  - $ref: '#/components/schemas/ImageBlock'
        is_error:
          type: boolean
          default: false
          description: Whether the function failed.
  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.