AGTCloud API Docs
가이드API 레퍼런스통합 및 리소스업데이트 및 도움말
공급업체별 매개변수 차이

Kimi 매개변수 및 프로토콜 차이

호환 프로토콜에서 Kimi 모델의 매개변수 차이와 사용 방법을 알아봅니다.

Kimi는 이 페이지에 따라 매개변수를 조정하세요. 전체 구조: Chat Completions, Responses, Messages.

대상 모델

모델적용 범위
kimi-k3.1-pro, kimi-k3.1-pro-highspeed, kimi-k3세 프로토콜의 공통 규칙, 개별 확장 대상 모델은 해당 행에 표시

Chat Completions 차이

필드차이 설명
temperature, top_p각각 1.0, 0.95로 고정. 생략 권장, 다른 값은 오류
n, presence_penalty, frequency_penalty각각 1, 0, 0로 고정. 다른 값은 오류
reasoning_effortlow/high/max 지원, 기본값 max. 추론 및 추론 보존이 항상 켜지며 K2.x의 thinking 스위치는 사용하지 않음
max_completion_tokens기본값 131072, 최대 1048576. 입력과 출력 예산 합이 컨텍스트를 넘으면 출력 예산 자동 축소, 입력 자체는 범위 내여야 함
stop최대 5개 문자열, 각 32바이트 이하
tool_choiceauto/none/required 지원. 함수 지정 객체는 추론과 호환되지 않아 400 반환
messages[].reasoning_content여러 턴과 도구 호출 시 추론 및 tool_calls을 포함한 전체 assistant 메시지를 그대로 재전송
messages[].partialKimi Partial Mode: 마지막 assistant에 true을 설정해 접두사부터 생성, response_format.type=json_object과 병용 금지
messages[].tools동적 도구는 kimi-k3.1-pro, kimi-k3에 공식 명시. 전체 도구 정의와 content 없는 system 추가. 그 위치부터 사용 가능하며 후속 요청에도 유지

Responses 차이

필드차이 설명
reasoning.effortlow/high/max 지원, 기본값 max
max_output_tokens기본값 131072, 최대 1048576
tool_choiceauto만 지원
tools[].typefunction/namespace/custom/web_search만 지원, custom 도구 이름은 apply_patch만 허용
text.formattype: "json_schema", schema 사용. name 생략 시 output
응답의 대화 상태 필드store, background은 false, previous_response_id, conversation는 null 고정. 서버 응답 체인 대신 클라이언트가 전체 입출력 이력 재전송

Messages 차이

필드차이 설명
max_tokens필수, 최소 1, 0 불가
output_config.effortlow/high/max 지원, 기본값 max
tool_choice.typeauto/any/none 지원, 기본값 auto
stop_sequences최대 5개 문자열, 각 32바이트 이하
이전 thinking 블록signature과 함께 다음 assistant에 그대로 재전송
output_config.format구조화 출력에 type: "json_schema", schema 필수

캐시 차이

필드차이 설명
Chat / Responses의 prompt_cache_optionsmode은 implicit만, ttl는 5m/1h 지원, 기본값 5m. 생략해도 기본 5분 캐시 기록
Chat / Responses의 prompt_cache_breakpoint명시적 중단점 미지원, 콘텐츠에 넣으면 400
Messages의 cache_control요청 최상위만 적용, messages 내부 표시는 무시. type은 ephemeral 고정, ttl은 5m/1h, 기본값 5m. 생략해도 TTL 5분으로 읽기/쓰기
추론 강도강도 변경은 접두사 캐시 적중을 깨뜨리므로 대화 시작 시 결정

미디어 입력 차이

입력프로토콜 블록차이 설명
이미지image_urlChat: image_url.url에 Base64 Data URL 또는 원본 ms://<file_id> 참조, 일반 공개 이미지 URL은 미지원
동영상video_urlChat: Base64 Data URL 또는 업로드된 동영상의 ms://<file_id> 참조
이미지input_imageResponses: image_url은 Base64 Data URL, 공개 HTTP(S)는 미지원
이미지imageMessages: source.type=base64이면 media_type, data, source.type=url이면 source.url에 원본 ms://<file_id> 참조
SVG이미지 입력Base64 포함 SVG 미지원, 분석하려면 XML 소스를 텍스트로 전달

ms://은 Kimi 원본 참조 형식으로 Kimi에 먼저 업로드해야 합니다. 이 페이지는 AGTCloud 업로드 API를 제공하지 않습니다.

호출 예제

MODEL_ID을 선택한 프로토콜에서 사용 가능한 전체 모델 ID로 바꾸고 본인 API Key를 사용하세요.

curl 'https://api.agtcloud.ai/v1/chat/completions' \
  -H 'Authorization: Bearer your-api-key' \
  -H 'Content-Type: application/json' \
  --data '{
    "model": "MODEL_ID",
    "messages": [{"role": "user", "content": "API 시간 초과 진단 방법을 세 가지로 설명하세요"}],
    "reasoning_effort": "low",
    "max_completion_tokens": 4096,
    "prompt_cache_options": {"mode": "implicit", "ttl": "1h"}
  }'

공식 참고 자료

이 페이지의 내용