字节跳动 logo
字节跳动

豆包 Seed 1.6

字节跳动豆包旗舰模型,全面均衡的大语言模型能力

类型 文本模型 Model ID doubao-seed-1.6
上下文长度128K tokens
模型类型大语言模型 (LLM)
特色能力全面均衡

定价与规格

💰 定价

输入$0.8 / M tokens
输出$2 / M tokens

⚙️ 规格

上下文长度128K tokens
模型类型大语言模型 (LLM)
特色能力全面均衡
训练截止日期2024年10月

API 调用示例

Python

from openai import OpenAI

client = OpenAI(
    base_url="https://api.xairouter.com/v1",
    api_key="your-api-key"
)

response = client.chat.completions.create(
    model="doubao-seed-1.6",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

print(response.choices[0].message.content)

cURL

curl https://api.xairouter.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "doubao-seed-1.6",
    "messages": [
      {"role": "user", "content": "Hello!"}
    ]
  }'