全部模型 / ByteDance · Doubao

doubao-seed-2-0-mini

数据同步于

输入缓存读取输出
Standard 默认$0.024—$0.24
Official$0.030—$0.30

ByteDance · Doubao
OpenAI Chat Completions
Standard · Official
·

10M in + 1M out$0.48
100M in + 20M out$7.20

curl https://api.xhuoapi.ai/v1/chat/completions \
  -H "Authorization: Bearer $XHUO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "doubao-seed-2-0-mini", "messages": [{"role": "user", "content": "Hello"}]}'
from openai import OpenAI

client = OpenAI(base_url="https://api.xhuoapi.ai/v1", api_key="YOUR_XHUOAPI_KEY")
resp = client.chat.completions.create(
    model="doubao-seed-2-0-mini",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)

doubao-seed-2-0-lite doubao-seed-2-0-pro doubao-seed-2-1-pro
定价 API 文档