Kimi K2.7 Code는 Moonshot의 코딩 중심 모델로, 긴 컨텍스트 코드 이해 및 생성에 탁월합니다. 매우 큰 입력을 지원하여 전체 저장소 분석, 마이그레이션, 에이전트 코딩 흐름에 적합합니다.
OpenAI를 바로 대체할 수 있습니다. base_url과 model만 변경하세요.
# Python - pip install openai from openai import OpenAI client = OpenAI( base_url="https://meshtok.com/v1", api_key="sk-your-MeshTok-key", ) resp = client.chat.completions.create( model="moonshot/kimi-k2.7-code", messages=[{"role":"user","content":"Hello!"}], ) print(resp.choices[0].message.content)
# cURL curl https://meshtok.com/v1/chat/completions \ -H "Authorization: Bearer sk-your-MeshTok-key" \ -H "Content-Type: application/json" \ -d '{"model":"moonshot/kimi-k2.7-code","messages":[{"role":"user","content":"Hello!"}]}'
고려해볼 만한 다른 모델입니다.
General Kimi model with strong Chinese.
General-purpose chat model.
General-purpose chat model.
General-purpose chat model.