Kimi K2.6 API
Open-weight Kimi model for coding and long agent runs
About this model
Kimi K2.6 is a Moonshot AI model released in April 2026 as a 1-trillion-parameter mixture-of-experts model with open weights under a Modified MIT License. Moonshot highlights long-horizon coding and agent swarms that run many sub-agents in parallel.
It supports tool calling and has a 256,000-token context window in this catalog. It is the general-purpose option in the K2 line; Kimi K2.7 Code is its coding-tuned successor, and Kimi K3 is the next generation.
Use cases
- Coding and software engineering
- Long multi-step agent tasks
- General writing and analysis
Input and output
- Input
- Text
- Output
- Text
Developer
Moonshot AI
Official site of Moonshot AI- Developer
- Moonshot
- Type
- Conversation
- Context
- 256,000 tokens
Kimi K2.6 request example
Use https://gatelum.com/v1 as the base URL and pass moonshotai/kimi-k2.6 in the model field. You create the key in your account after signing up.
curl --silent --show-error --fail-with-body \
--header 'Authorization: Bearer glt_YOUR_KEY' \
'https://gatelum.com/v1/chat/completions' \
--header "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"model": "moonshotai/kimi-k2.6",
"messages": [
{
"role": "user",
"content": "Hi! Tell me about yourself in two sentences."
}
]
}
JSONClaude Code and Anthropic-protocol clients
For clients using the Anthropic protocol, point the address at ANTHROPIC_BASE_URL=https://gatelum.com with no /v1. The model ID does not change.
export ANTHROPIC_BASE_URL=https://gatelum.com
export ANTHROPIC_AUTH_TOKEN=glt_YOUR_KEY
export ANTHROPIC_MODEL=moonshotai/kimi-k2.6
claudeWhere to use Kimi K2.6
Guides with step-by-step instructions for the tools that support this model: