Kimi K2.6 API

Open-weight Kimi model for coding and long agent runs

moonshotai/kimi-k2.6
MoonshotConversation

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

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."
    }
  ]
}
JSON
Claude 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.

macOS / Linux
export ANTHROPIC_BASE_URL=https://gatelum.com
export ANTHROPIC_AUTH_TOKEN=glt_YOUR_KEY
export ANTHROPIC_MODEL=moonshotai/kimi-k2.6
claude

Where to use Kimi K2.6

Guides with step-by-step instructions for the tools that support this model: