메인 콘텐츠로 건너뛰기
POST
/
v1
/
responses
Doubao Seed 2.0 Responses API 빠른 채팅
curl --request POST \
  --url https://api.evolink.ai/v1/responses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "doubao-seed-2.0-pro",
  "input": "안녕하세요, Doubao Seed 2.0의 새로운 기능을 소개해 주세요"
}
'
{
  "id": "resp_02177148667427813c33c36521378d02b2c8389204fa8c3e2f63e",
  "object": "response",
  "created_at": 1771486674,
  "model": "doubao-seed-2-0-code-preview-260215",
  "status": "completed",
  "output": [
    {
      "id": "rs_0217****404a",
      "type": "reasoning",
      "summary": [
        {
          "text": "<string>",
          "type": "summary_text"
        }
      ],
      "status": "completed"
    }
  ],
  "service_tier": "default",
  "usage": {
    "input_tokens": 88,
    "input_tokens_details": {
      "cached_tokens": 0
    },
    "output_tokens": 230,
    "output_tokens_details": {
      "reasoning_tokens": 211
    },
    "total_tokens": 318
  },
  "max_output_tokens": 32768,
  "caching": {
    "type": "enabled"
  },
  "store": true,
  "expire_at": 1771745874,
  "error": {}
}

인증

Authorization
string
header
필수

##모든 API는 Bearer Token 인증이 필요합니다##

API Key 받기:

API Key 관리 페이지를 방문하여 API Key를 받으세요

요청 헤더에 추가:

Authorization: Bearer YOUR_API_KEY

본문

application/json
model
enum<string>
기본값:doubao-seed-2.0-pro
필수

채팅 모델 이름

  • doubao-seed-2.0-pro: 플래그십 버전, 종합 능력 최강, 복잡한 추론 및 고품질 생성에 적합
  • doubao-seed-2.0-lite: 경량 버전, 더 빠른 속도, 높은 가성비
  • doubao-seed-2.0-mini: 초고속 버전, 가장 빠른 응답, 간단한 작업에 적합
  • doubao-seed-2.0-code: 코드 전용 버전, 코드 생성 및 이해에 최적화
사용 가능한 옵션:
doubao-seed-2.0-pro,
doubao-seed-2.0-lite,
doubao-seed-2.0-mini,
doubao-seed-2.0-code
예시:

"doubao-seed-2.0-pro"

input
string
필수

입력 내용 (텍스트), user 역할로 입력한 텍스트 정보와 동일

예시:

"안녕하세요, Doubao Seed 2.0의 새로운 기능을 소개해 주세요"

응답

응답 생성 성공

id
string

이번 응답의 고유 식별자

예시:

"resp_02177148667427813c33c36521378d02b2c8389204fa8c3e2f63e"

object
enum<string>

객체 유형, response로 고정

사용 가능한 옵션:
response
예시:

"response"

created_at
number

생성 시간의 Unix 타임스탬프 (초)

예시:

1771486674

model
string

실제 사용된 모델 이름 및 버전

예시:

"doubao-seed-2-0-code-preview-260215"

status
enum<string>

응답 상태

  • completed: 생성 완료
  • in_progress: 생성 중
  • incomplete: 미완료
  • failed: 실패
사용 가능한 옵션:
completed,
in_progress,
incomplete,
failed
예시:

"completed"

output
(사고 체인 출력 · object | 메시지 출력 · object)[]

모델 출력 내용 목록

service_tier
string

이번 요청의 서비스 등급

예시:

"default"

usage
object

토큰 사용 통계 정보

max_output_tokens
integer

모델 출력 최대 토큰 수

예시:

32768

caching
object

캐시 설정

store
boolean

응답 저장 여부

예시:

true

expire_at
integer

저장 만료 시간 (Unix 타임스탬프)

예시:

1771745874

error
object

오류 정보, 성공 시 null