Skip to main content
POST
Start a Seed conversation with Messages (Anthropic)
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.
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.

Authorizations

Authorization
string
header
required

All APIs require Bearer Token authentication

Get API Key:

Visit API Key Management Page to get your API Key

Add to request header:

Body

application/json
model
enum<string>
default:doubao-seed-2-1-pro
required

Choose a model

Seed 2.1 model IDs use a hyphen (2-1). Seed 2.0 IDs use a period (2.0).

Available options:
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
Example:

"doubao-seed-2-1-pro"

max_tokens
integer
required

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.

Required range: x >= 1
Example:

4096

messages
object[]
required

Chat message list

Minimum array length: 1
Example:

Response

Chat completion successful

id
string

Unique identifier for the response

Example:

"0217952345678901234567890abcdef"

type
enum<string>

Always message.

Available options:
message
role
enum<string>

Always assistant.

Available options:
assistant
model
string

Model used for this request.

Example:

"doubao-seed-2-1-pro"

content
(Text · object | Reasoning · object)[]

Generated content blocks. With reasoning enabled, a thinking block usually precedes the text block. Read all blocks with type="text" to obtain the answer.

Example:
stop_reason
enum<string>

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
Available options:
end_turn,
max_tokens,
stop_sequence,
tool_use
Example:

"end_turn"

stop_sequence
string | null

Matched stop sequence, or null if none matched.

usage
object

Token usage statistics