全部模型 / ByteDance · Doubao

doubao-seed-2-0-pro

数据同步于

输入缓存读取输出
Standard 默认$0.38—$1.92
Official$0.48—$2.40

ByteDance · Doubao
OpenAI Chat Completions
Standard · Official
·

10M in + 1M out$5.76
100M in + 20M out$76.80

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-pro", "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-pro",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)

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