Skip to main content
POST
Messages 응답 생성

인증

Authorization
string
header
필수

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

본문

application/json
model
string
필수
예시:

"minimax-m3"

messages
object[]
필수
max_tokens
integer
필수

생성할 최대 토큰 수입니다(필수).

필수 범위: x >= 1
system

시스템 프롬프트입니다.

temperature
number

응답에 주입되는 무작위성입니다(0–1).

필수 범위: 0 <= x <= 1
top_p
number
필수 범위: 0 <= x <= 1
top_k
integer

각 토큰에 대해 확률이 가장 높은 K개 후보에서만 샘플링합니다.

stop_sequences
string[]

생성을 중단시키는 사용자 지정 시퀀스입니다.

tools
object[]

모델이 호출할 수 있는 도구이며, 각 도구는 name, description, input_schema(JSON Schema)를 가집니다.

tool_choice
object

도구 선택: { type: 'auto' } | { type: 'any' } | { type: 'tool', name }.

stream
boolean

true이면 Anthropic SSE 이벤트 스트림으로 반환합니다(message_start / content_block_delta / message_delta / message_stop).

응답

Anthropic 호환 Messages 응답입니다.

id
string
필수
type
string
필수
예시:

"message"

role
string
필수
예시:

"assistant"

content
object[]
필수
model
string
필수
usage
object