{
"id": "<string>",
"type": "message",
"role": "assistant",
"model": "kimi-k3.1-pro",
"content": [
{
"type": "text",
"text": "<string>"
}
],
"stop_reason": "end_turn",
"stop_sequence": "<string>",
"usage": {
"input_tokens": 123,
"cache_creation_input_tokens": 123,
"cache_read_input_tokens": 123,
"output_tokens": 123,
"output_tokens_details": {
"thinking_tokens": 123
},
"cache_creation": {
"ephemeral_5m_input_tokens": 1,
"ephemeral_1h_input_tokens": 1
},
"server_tool_use": {
"web_search_requests": 1
}
}
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
},
"request_id": "<string>"
}Kimi K3.1 Pro / Highspeed - Anthropic 호환 API
공개 경로는 POST /v1/messages입니다. 추론 강도는 output_config.effort, 5m/1h 쓰기는 최상위 cache_control로 설정합니다. thinking, signature, tool_use 및 서버 검색 결과 블록을 완전히 보존하세요.
{
"id": "<string>",
"type": "message",
"role": "assistant",
"model": "kimi-k3.1-pro",
"content": [
{
"type": "text",
"text": "<string>"
}
],
"stop_reason": "end_turn",
"stop_sequence": "<string>",
"usage": {
"input_tokens": 123,
"cache_creation_input_tokens": 123,
"cache_read_input_tokens": 123,
"output_tokens": 123,
"output_tokens_details": {
"thinking_tokens": 123
},
"cache_creation": {
"ephemeral_5m_input_tokens": 1,
"ephemeral_1h_input_tokens": 1
},
"server_tool_use": {
"web_search_requests": 1
}
}
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
},
"request_id": "<string>"
}{
"type": "error",
"error": {
"type": "<string>",
"message": "<string>"
},
"request_id": "<string>"
}https://direct.evolink.ai이며 텍스트 모델과 장시간 연결을 더 잘 지원합니다. https://api.evolink.ai는 멀티모달 서비스의 기본 엔드포인트이자 텍스트 모델의 대체 주소입니다.인증
##모든 인터페이스는 Bearer Token 인증이 필요합니다##
API Key 받기:
API Key 관리 페이지를 방문하여 API Key를 받으세요
사용 시 요청 헤더에 추가:
Authorization: Bearer YOUR_API_KEY
본문
kimi-k3.1-pro 또는 kimi-k3.1-pro-highspeed를 사용하세요. Highspeed는 생성 속도가 더 빠릅니다.
kimi-k3.1-pro, kimi-k3.1-pro-highspeed thinking과 최종 텍스트를 포함해 이번 생성에 허용되는 최대 token 수입니다.
1 <= x <= 1048576Anthropic Messages 메시지 목록입니다. 여러 턴 대화에서는 assistant의 전체 콘텐츠 블록을 변경하지 말고 다시 전달하세요.
1Show child attributes
Show child attributes
문자열 또는 text 블록 배열 형식의 시스템 프롬프트입니다.
Anthropic SSE 이벤트 스트림 반환 여부입니다.
사용자 정의 함수 또는 서버 측 웹 검색입니다. 내장 검색은 type=web_search_20250305, name=web_search를 사용하며 실제 호출 횟수로 과금합니다.
- Option 1
- Option 2
Show child attributes
Show child attributes
Show child attributes
Show child attributes
중지 시퀀스입니다. 정확히 일치하면 출력을 중단하며 일치한 내용은 출력하지 않습니다. 최대 5개, 각각 32바이트 이내입니다.
5최상위 cache_control만 쓰기 TTL을 제어합니다. 메시지 블록 내부의 캐시 표시는 이를 대체할 수 없습니다. 생략 시 기본값은 5m입니다.
Show child attributes
Show child attributes
출력 설정: 추론 강도 및 구조화 출력.
Show child attributes
Show child attributes
응답
Message 응답입니다. 스트리밍 요청은 Anthropic SSE 이벤트 스트림을 반환합니다
message assistant "kimi-k3.1-pro"
텍스트, 이미지, 추론, 도구 사용 또는 도구 결과를 위한 Anthropic 콘텐츠 블록입니다.
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
Show child attributes
Show child attributes
end_turn, max_tokens, tool_use, refusal, null Show child attributes
Show child attributes