curl --request POST \
--url https://direct.evolink.ai/v1/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "qwen3.8-max",
"max_tokens": 1024,
"system": "You are a helpful assistant.",
"messages": [
{
"role": "user",
"content": "안녕하세요, 자기소개를 해 주세요"
}
]
}
'{
"id": "msg_xxxxxxxx",
"type": "message",
"role": "assistant",
"model": "qwen3.8-max",
"content": [
{
"type": "text",
"text": "안녕하세요! 저는 Qwen3.8-Max입니다."
}
],
"stop_reason": "end_turn",
"usage": {
"input_tokens": 12,
"output_tokens": 104,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0
}
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "max_tokens is required"
}
}{
"type": "error",
"error": {
"type": "authentication_error",
"message": "Invalid or expired token"
}
}{
"type": "error",
"error": {
"type": "insufficient_quota",
"message": "Insufficient credits"
}
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
}
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
}
}Qwen3.8-Max - Anthropic 호환 API
- Anthropic Messages 프로토콜로 Qwen3.8-Max 호출
- 시스템 프롬프트: 최상위
system필드로 설정(messages 안에 넣지 않음) - 멀티모달 입력:
content에 내용 블록 배열 전달,text/image지원 - 컨텍스트 캐시: 내용 블록에
cache_control을 추가해 명시적 캐시 선언; 적중 / 생성은 응답usage.cache_read_input_tokens/usage.cache_creation_input_tokens참조 - 사고 모드:
thinking으로 활성화하며, 사고는thinking내용 블록으로 스트리밍 반환 - 스트리밍 출력:
stream=true일 때 Anthropic SSE 이벤트(message_start/content_block_delta/message_delta등)로 반환
curl --request POST \
--url https://direct.evolink.ai/v1/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "qwen3.8-max",
"max_tokens": 1024,
"system": "You are a helpful assistant.",
"messages": [
{
"role": "user",
"content": "안녕하세요, 자기소개를 해 주세요"
}
]
}
'{
"id": "msg_xxxxxxxx",
"type": "message",
"role": "assistant",
"model": "qwen3.8-max",
"content": [
{
"type": "text",
"text": "안녕하세요! 저는 Qwen3.8-Max입니다."
}
],
"stop_reason": "end_turn",
"usage": {
"input_tokens": 12,
"output_tokens": 104,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0
}
}{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "max_tokens is required"
}
}{
"type": "error",
"error": {
"type": "authentication_error",
"message": "Invalid or expired token"
}
}{
"type": "error",
"error": {
"type": "insufficient_quota",
"message": "Insufficient credits"
}
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
}
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
}
}https://direct.evolink.ai이며, 텍스트 모델을 더 잘 지원하고 장기 연결을 지원합니다; https://api.evolink.ai는 멀티모달 주력 주소로, 이미지 입력을 포함할 때 이 주소를 사용하세요.인증
##모든 API에는 Bearer Token 인증이 필요합니다##
API Key 발급:
API Key 관리 페이지에서 API Key를 발급받으세요
요청 헤더에 추가:
Authorization: Bearer YOUR_API_KEY
본문
대화 모델 이름
qwen3.8-max "qwen3.8-max"
생성 콘텐츠의 최대 token 수.
필수(Anthropic 프로토콜 요구 사항). 모델이 이 값을 초과해 생성하면 잘립니다.
1024
대화 메시지 목록(system 미포함). 각 메시지는 role(user / assistant)과 content(문자열 또는 내용 블록 배열)를 포함합니다.
Show child attributes
Show child attributes
시스템 프롬프트. 순수 텍스트는 문자열로 전달하며, 명시적 캐시를 선언할 때는 내용 블록 배열로 전달합니다(블록에 cache_control 추가).
샘플링 온도, 범위 [0, 2].
0 <= x <= 2뉴클리어스 샘플링 매개변수, 범위 (0, 1].
0 <= x <= 1확률이 가장 높은 K개의 token에서 샘플링합니다.
사용자 정의 중단 시퀀스, 적중 시 생성을 중단합니다.
Anthropic SSE 이벤트로 스트리밍 반환할지 여부.
심층 사고 구성. 활성화하면 모델이 thinking 내용 블록으로 사고 과정을 반환합니다.
Show child attributes
Show child attributes
도구 정의 목록(Anthropic tools 형식), Function Calling에 사용됩니다.
Show child attributes
Show child attributes
응답
생성 성공
"msg_xxxxxxxx"
"message"
"assistant"
"qwen3.8-max"
응답 내용 블록 배열
Show child attributes
Show child attributes
중단 이유: end_turn(정상 종료), max_tokens(상한 도달), stop_sequence(중단 시퀀스 적중), tool_use(도구 호출 필요)
"end_turn"
token 사용 통계(Anthropic 의미: input_tokens는 캐시를 포함하지 않으며, cache 필드와 상호 배타적으로 합산).
Show child attributes
Show child attributes