> ## Documentation Index
> Fetch the complete documentation index at: https://api-docs.upmore.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Doubao Seed 2.1 Turbo

> ByteDance Doubao Seed 2.1 Turbo chat model, OpenAI-compatible.

豆包 Seed 2.0 Pro 是通过 Upmore OpenAI 兼容接口提供的对话模型。字节跳动 Seed 2.0 Pro 旗舰模型，推理能力最强。

## 核心能力

* **OpenAI 兼容** — 可直接使用 OpenAI SDK 接入，无需修改代码
* **最强推理** — 复杂多步骤任务的最佳选择
* **深度分析** — 擅长研究、规划和详细问题求解
* **流式输出** — 支持通过 SSE 实时流式返回内容

## 快速示例

<CodeGroup>
  ```bash cURL theme={null}
  curl https://api.upmore.net/v1/chat/completions \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "model": "doubao-seed-2-1-turbo",
      "messages": [
        { "role": "user", "content": "用简单的话解释量子纠缠。" }
      ]
    }'
  ```

  ```python Python theme={null}
  from openai import OpenAI

  client = OpenAI(
      api_key="YOUR_API_KEY",
      base_url="https://api.upmore.net/v1"
  )

  response = client.chat.completions.create(
      model="doubao-seed-2-1-turbo",
      messages=[
          {"role": "user", "content": "用简单的话解释量子纠缠。"}
      ]
  )

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

  ```python 流式输出 theme={null}
  from openai import OpenAI

  client = OpenAI(
      api_key="YOUR_API_KEY",
      base_url="https://api.upmore.net/v1"
  )

  stream = client.chat.completions.create(
      model="doubao-seed-2-1-turbo",
      messages=[
          {"role": "user", "content": "写一首关于大海的短诗。"}
      ],
      stream=True
  )

  for chunk in stream:
      print(chunk.choices[0].delta.content or "", end="")
  ```
</CodeGroup>

## 参数说明

| 参数            | 类型             | 必填 | 说明                        |
| ------------- | -------------- | -- | ------------------------- |
| `model`       | string         | 是  | 固定为 `doubao-seed-2.0-pro` |
| `messages`    | array          | 是  | `{ role, content }` 消息列表  |
| `max_tokens`  | integer        | 否  | 最大生成 Token 数              |
| `temperature` | float          | 否  | `0`–`2`，控制随机性，默认 `1`      |
| `stream`      | boolean        | 否  | 启用 SSE 流式输出，默认 `false`    |
| `top_p`       | float          | 否  | 核采样阈值，默认 `1`              |
| `stop`        | string / array | 否  | 停止生成的序列                   |
