Skip to main content
POST
/
v1
/
chat
/
completions
Doubao Seed 2.0 Quick Chat
curl --request POST \
  --url https://api.evolink.ai/v1/chat/completions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "doubao-seed-2.0-pro",
  "messages": [
    {
      "role": "user",
      "content": "Hello, introduce the new features of Doubao Seed 2.0"
    }
  ]
}
'
{
  "id": "0217714854126607f5a9cf8ed5b018c76e4ad3dc2810db57ffb50",
  "model": "doubao-seed-2-0-pro-260215",
  "object": "chat.completion",
  "created": 1771485416,
  "service_tier": "default",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Hello! Doubao Seed 2.0 is ByteDance's next-generation large language model, featuring enhanced reasoning, multimodal understanding, and deep thinking capabilities..."
      },
      "finish_reason": "stop",
      "moderation_hit_type": "severe_violation"
    }
  ],
  "usage": {
    "prompt_tokens": 15,
    "completion_tokens": 256,
    "total_tokens": 271,
    "prompt_tokens_details": {
      "cached_tokens": 0
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    }
  }
}

Authorizations

Authorization
string
header
required

##All APIs require Bearer Token authentication##

Get API Key:

Visit the 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"

messages
object[]
required

Chat message list

Minimum array length: 1
Example:
[
{
"role": "user",
"content": "Hello, introduce the new features of Doubao Seed 2.0"
}
]

Response

Chat completion successful

id
string

Unique identifier of chat completion

Example:

"0217714854126607f5a9cf8ed5b018c76e4ad3dc2810db57ffb50"

model
string

Actual model name used

Example:

"doubao-seed-2-0-pro-260215"

object
enum<string>

Response type

Available options:
chat.completion
Example:

"chat.completion"

created
integer

Creation timestamp

Example:

1771485416

service_tier
enum<string>

Service tier for this request

  • default: Default service tier
  • scale: Used reserved quota
Available options:
default,
scale
Example:

"default"

choices
object[]

Chat completion choices list

usage
object

Token usage statistics