doubao-seed-2.0-pro

Text

Flagship of the Seed 2.0 series for complex reasoning and long-horizon agent workflows with reliable tool use.

Giá đầu vào

$0.4443Giảm 6%

Thị trường: $0.4727

/ M

Giá đầu ra

$2.2216Giảm 6%

Thị trường: $2.3634

/ M

Đọc cache

$0.0889Giảm 6%

Thị trường: $0.0946

/ M

Đầu vào

Văn bản

Đầu ra

Văn bản

Giá động

Giá thay đổi theo bậc sử dụng và điều kiện yêu cầu

Bảng giá theo bậc

  • baseLength ≤ 32K
    Đầu vào$0.4443
    Đầu ra$2.2216
    Đọc cache$0.0889
  • tier_2Length ≤ 128K
    Đầu vào$0.6665
    Đầu ra$3.3323
    Đọc cache$0.1333
  • tier_3
    Đầu vào$1.3329
    Đầu ra$6.6647
    Đọc cache$0.2666
BậcĐầu vàoĐầu raĐọc cache
baseLength ≤ 32K
$0.4443$2.2216$0.0889
tier_2Length ≤ 128K
$0.6665$3.3323$0.1333
tier_3
$1.3329$6.6647$0.2666

API

Bắt đầu nhanh

Mã sẵn sàng để gọi mô hình này qua API tương thích OpenAI của EasyAPI.

1

Lấy API key

Tạo API token trong console và đặt làm biến môi trường:

Thay sk-xxxxxxxx bằng mã API từ console (Bearer Token).

Tạo API token
shell
export EASYAPI_API_KEY=sk-xxxxxxxx
2

Gửi yêu cầu đầu tiên

Dùng bytedance/doubao-seed-2.0-pro với API EasyAPI:

cURL
curl https://token.easyapi.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $EASYAPI_API_KEY" \
  -d '{"model":"bytedance/doubao-seed-2.0-pro","messages":[{"role":"user","content":"Hello!"}]}'
3

Bật streaming

Thêm "stream": true vào body để nhận phản hồi qua SSE:

curl
curl -N https://token.easyapi.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $EASYAPI_API_KEY" \
  -d '{"model":"bytedance/doubao-seed-2.0-pro","messages":[{"role":"user","content":"Hello!"}],"stream":true}'

Endpoint

Gửi yêu cầu chat completion. Hỗ trợ streaming và non-streaming.

POSThttps://token.easyapi.com/v1/chat/completions
Authorization
Bearer $EASYAPI_API_KEY
Content-Type
application/json
Model
bytedance/doubao-seed-2.0-pro

发送对话补全请求,支持流式与非流式。 Tài liệu

GEThttps://token.easyapi.com/v1/models
Authorization
Bearer $EASYAPI_API_KEY

获取当前账户可用模型列表。 Tài liệu

Tham số

TênKiểuMặc địnhMô tả
modelstring模型 ID,如 openai/gpt-4o、anthropic/claude-3-5-sonnet
messagesarray对话消息列表,每项含 role 与 content
streambooleanfalse设为 true 时以 SSE 流式返回
temperaturefloat1采样温度,越高越随机
max_tokensinteger单次回复最大生成 Token 数
top_pfloat1核采样,限制候选词累积概率
frequency_penaltyfloat0频率惩罚,降低重复用词
presence_penaltyfloat0存在惩罚,鼓励新话题

Dùng SDK bên thứ ba

SDK chính thức OpenAI và khác hoạt động khi đổi base URL. Xem hướng dẫn tích hợp