Skip to main content
POST
/
v1
/
responses
Doubao Seed 2.0 Responses API Quick Chat
curl --request POST \
  --url https://api.evolink.ai/v1/responses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "doubao-seed-2.0-pro",
  "input": "Hello, introduce the new features of Doubao Seed 2.0"
}
'
{
  "id": "resp_02177148667427813c33c36521378d02b2c8389204fa8c3e2f63e",
  "object": "response",
  "created_at": 1771486674,
  "model": "doubao-seed-2-0-code-preview-260215",
  "status": "completed",
  "output": [
    {
      "id": "rs_0217****404a",
      "type": "reasoning",
      "summary": [
        {
          "text": "<string>",
          "type": "summary_text"
        }
      ],
      "status": "completed"
    }
  ],
  "service_tier": "default",
  "usage": {
    "input_tokens": 88,
    "input_tokens_details": {
      "cached_tokens": 0
    },
    "output_tokens": 230,
    "output_tokens_details": {
      "reasoning_tokens": 211
    },
    "total_tokens": 318
  },
  "max_output_tokens": 32768,
  "caching": {
    "type": "enabled"
  },
  "store": true,
  "expire_at": 1771745874,
  "error": {}
}

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:

Authorization: Bearer YOUR_API_KEY

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

Error information, null on success