跳转到主要内容
POST
/
v1
/
responses
Doubao Seed 2.0 Responses API 快速对话
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": "你好,介绍一下 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": {}
}

授权

Authorization
string
header
必填

##所有接口均需要使用Bearer Token进行认证##

获取 API Key:

访问 API Key 管理页面 获取您的 API Key

使用时在请求头中添加:

Authorization: Bearer YOUR_API_KEY

请求体

application/json
model
enum<string>
默认值:doubao-seed-2.0-pro
必填

对话模型名称

  • doubao-seed-2.0-pro: 旗舰版,综合能力最强,适合复杂推理和高质量生成
  • doubao-seed-2.0-lite: 轻量版,速度更快,性价比高
  • doubao-seed-2.0-mini: 极速版,响应最快,适合简单任务
  • doubao-seed-2.0-code: 代码专用版,针对代码生成和理解优化
可用选项:
doubao-seed-2.0-pro,
doubao-seed-2.0-lite,
doubao-seed-2.0-mini,
doubao-seed-2.0-code
示例:

"doubao-seed-2.0-pro"

input
string
必填

输入内容(纯文本),等同于使用 user 角色输入的文本信息

示例:

"你好,介绍一下 Doubao Seed 2.0 的新特性"

响应

响应生成成功

id
string

本次响应的唯一标识

示例:

"resp_02177148667427813c33c36521378d02b2c8389204fa8c3e2f63e"

object
enum<string>

对象类型,固定为 response

可用选项:
response
示例:

"response"

created_at
number

创建时间的 Unix 时间戳(秒)

示例:

1771486674

model
string

实际使用的模型名称和版本

示例:

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

status
enum<string>

响应状态

  • completed: 生成完成
  • in_progress: 生成中
  • incomplete: 未完成
  • failed: 失败
可用选项:
completed,
in_progress,
incomplete,
failed
示例:

"completed"

output
(思维链输出 · object | 消息输出 · object)[]

模型输出内容列表

service_tier
string

本次请求的服务等级

示例:

"default"

usage
object

Token 使用统计信息

max_output_tokens
integer

模型输出最大 token 数

示例:

32768

caching
object

缓存配置

store
boolean

是否存储了响应

示例:

true

expire_at
integer

存储过期时刻(Unix 时间戳)

示例:

1771745874

error
object

错误信息,成功时为 null