> ## 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 Pro

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

Doubao Seed 2.0 Pro is a chat model available through Upmore via an OpenAI-compatible interface. ByteDance's flagship Seed 2.0 Pro model with the strongest reasoning capabilities.

## Key capabilities

* **OpenAI-compatible** — Works as a drop-in replacement with the OpenAI SDK
* **Strongest Reasoning** — Best-in-class for complex, multi-step tasks
* **Deep Analysis** — Excels at research, planning, and detailed problem solving
* **Streaming** — Supports real-time token streaming via SSE

## Quick example

<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-pro",
      "messages": [
        { "role": "user", "content": "Explain quantum entanglement in simple terms." }
      ]
    }'
  ```

  ```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-pro",
      messages=[
          {"role": "user", "content": "Explain quantum entanglement in simple terms."}
      ]
  )

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

  ```python Streaming 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-pro",
      messages=[
          {"role": "user", "content": "Write a short poem about the sea."}
      ],
      stream=True
  )

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

## Parameters

| Parameter     | Type           | Required | Description                                |
| ------------- | -------------- | -------- | ------------------------------------------ |
| `model`       | string         | Yes      | Must be `doubao-seed-2.0-pro`              |
| `messages`    | array          | Yes      | List of `{ role, content }` objects        |
| `max_tokens`  | integer        | No       | Maximum tokens to generate                 |
| `temperature` | float          | No       | `0`–`2`. Controls randomness. Default: `1` |
| `stream`      | boolean        | No       | Enable SSE streaming. Default: `false`     |
| `top_p`       | float          | No       | Nucleus sampling threshold. Default: `1`   |
| `stop`        | string / array | No       | Sequences that stop generation             |
