Skip to main content
POST
Chat completion with Seed 2.1 Turbo
오른쪽 플레이그라운드를 사용하십시오: Bearer sk-your-api-keyAuthorization에 넣으십시오. 기본 예제는 심층 추론이 비활성화됨(thinking.disabled)으로 설정되어 있어 첫 전송에서 빠른 응답을 받을 수 있습니다.
이 모델은 심층 추론이 기본값으로 ON되어 있습니다. 간단한 질문도 먼저 수백 개의 reasoning tokens를 생성합니다. 디버깅하는 동안 예제의 "thinking": {"type": "disabled"}를 유지하십시오. 실제로 reasoning이 필요할 때는 reasoning_effort(낮음 / 중간 / 높음)으로 전환하십시오. 기능, 가격, 캐싱은 Seed 2.1 Turbo 개요에서 다룹니다.
  • thinking을 켠 상태에서는 max_tokens 여유를 두십시오(reasoning이 출력 예산에 포함됩니다) — 3000+ 권장
  • 모델 이름을 잘못 입력하면 503(사용 가능한 채널 없음)을 반환하며, 404가 아닙니다

매개변수 빠른 참조

응답 하이라이트

  • 추론을 사용하면, choices[0].messagereasoning_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