Skip to main content
POST
Doubao Seed 2.0 Responses API Quick Chat
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.

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.0-pro
required

Chat model name

  • doubao-seed-2.0-pro: Flagship, strongest overall capability, ideal for complex reasoning and high-quality generation
  • doubao-seed-2.0-lite: Lightweight, faster speed, cost-effective
  • doubao-seed-2.0-mini: Ultra-fast, quickest response, suitable for simple tasks
  • doubao-seed-2.0-code: Code-specialized, optimized for code generation and understanding
Available options:
doubao-seed-2.0-pro,
doubao-seed-2.0-lite,
doubao-seed-2.0-mini,
doubao-seed-2.0-code
Example:

"doubao-seed-2.0-pro"

input
string
required

Input content (plain text), equivalent to text input with user role

Example:

"Hello, introduce the new features of Doubao Seed 2.0"

Response

Response generated successfully

id
string

Unique identifier of this response

Example:

"resp_02177148667427813c33c36521378d02b2c8389204fa8c3e2f63e"

object
enum<string>

Object type, fixed as response

Available options:
response
Example:

"response"

created_at
number

Creation Unix timestamp (seconds)

Example:

1771486674

model
string

Actual model name and version used

Example:

"doubao-seed-2-0-code-preview-260215"

status
enum<string>

Response status

  • completed: Generation completed
  • in_progress: Generation in progress
  • incomplete: Incomplete
  • failed: Failed
Available options:
completed,
in_progress,
incomplete,
failed
Example:

"completed"

output
(Chain-of-thought output · object | Message output · object)[]

Model output content list

service_tier
string

Service tier for this request

Example:

"default"

usage
object

Token usage statistics

max_output_tokens
integer

Maximum output token count

Example:

32768

caching
object

Caching configuration

store
boolean

Whether the response was stored

Example:

true

expire_at
integer

Storage expiration time (Unix timestamp)

Example:

1771745874

error
object | null

Error information, null on success