Model facts & API quick start
Kimi K2.7 Code (moonshotai/Kimi-K2.7-Code) is served on Chutes. Call it through the OpenAI-compatible API at https://llm.chutes.ai/v1 with a Chutes API key and "model": "moonshotai/Kimi-K2.7-Code".
Kimi K2.7 Code at a glance
- Model ID
moonshotai/Kimi-K2.7-Code- Developer
- Moonshot
- Deployed by
- chutes
- Type
- LLM
- Input price
- $0.832 per 1M tokens
- Output price
- $3.50 per 1M tokens
- Cached input price
- $0.167 per 1M tokens
- Confidential compute (TEE)
- No
- Open weights
moonshotai/Kimi-K2.7-Code
API quick start
- Base URL
https://llm.chutes.ai/v1- model
moonshotai/Kimi-K2.7-Code- Endpoint
POST /v1/chat/completions- Auth header
Authorization: Bearer $CHUTES_API_KEY
OpenAI-compatible: point any OpenAI SDK at the base URL above and pass your Chutes API key as the API key.
cURL
bash
curl -X POST "https://llm.chutes.ai/v1/chat/completions" \
-H "Authorization: Bearer $CHUTES_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "moonshotai/Kimi-K2.7-Code",
"messages": [
{
"role": "user",
"content": "Hello!"
}
],
"stream": false,
"max_tokens": 1024,
"temperature": 0.7
}'