Skip to main content
POST
Chat completion with Seed 2.1 Turbo
右側のプレイグラウンドを使ってください: Bearer sk-your-api-keyAuthorization に設定します。デフォルトの例では deep thinking が無効(thinking.disabled)になっているため、最初の送信で高速に応答が返ります。
このモデルはdeep thinking がデフォルトで ONです。簡単な質問でも、最初に何百もの reasoning token が生成されます。デバッグ中は、例の "thinking": {"type": "disabled"} をそのまま使ってください。実際に推論が必要なときは reasoning_effort(low / medium / high)に切り替えます。機能、料金、キャッシュについては、Seed 2.1 Turbo の概要で説明しています。
  • thinking を ON にすると、max_tokens に余裕を持たせてください(推論は出力バジェットに含まれます)— 3000+ を推奨します
  • 綴りが間違ったモデル名では 503(利用可能なチャネルがありません)が返り、404 ではありません

パラメータのクイックリファレンス

Response Highlights

  • thinking をオンにすると、choices[0].message には reasoning_content(完全な推論テキスト)に加えて content も含まれます
  • 推論消費量: usage.completion_tokens_details.reasoning_tokens
  • 暗黙的なキャッシュヒット: usage.prompt_tokens_details.cached_tokens(長い先頭部分の繰り返しは 2 回目のリクエストからヒットします)

承認

Authorization
string
header
必須

API Key from the APIYI console

ボディ

application/json
model
enum<string>
デフォルト:dola-seed-2-1-turbo-260628
必須

Model ID, fixed to dola-seed-2-1-turbo-260628

利用可能なオプション:
dola-seed-2-1-turbo-260628
messages
object[]
必須

Conversation messages, standard OpenAI format

max_tokens
integer
デフォルト:500

Max output tokens. Reasoning counts against this too - give it headroom (e.g. 2000+) when thinking is on

thinking
object

Deep-thinking switch. ON by default; pass {"type": "disabled"} to turn it off and cut latency and output tokens sharply

reasoning_effort
enum<string>

Thinking depth tier (do not combine with thinking.disabled). Measured: low ~226, high ~960 reasoning tokens

利用可能なオプション:
low,
medium,
high
stream
boolean
デフォルト:false

Stream via SSE. Combine with stream_options.include_usage to get usage in the final chunk

temperature
number

Sampling temperature

response_format
object

Structured output. Supports {"type": "json_schema", "json_schema": {name, strict, schema}}

tools
object[]

Function-calling tool list, standard OpenAI format

レスポンス

Chat completion succeeded

id
string

Request ID

model
string
choices
object[]

Completion results. Besides content, message carries reasoning_content when thinking is on

usage
object

Usage. completion_tokens_details.reasoning_tokens = thinking spend; prompt_tokens_details.cached_tokens = implicit cache hits