Kimi K3.1 Pro API
Moonshot's Kimi K3.1 Pro for long reasoning and agent tasks
About this model
Kimi K3.1 Pro is the first model of Moonshot AI’s K3.1 series. Moonshot describes it as a post-trained version of Kimi K3 with substantially more post-training compute; the underlying model is open-weight with 2.8 trillion parameters, 104 billion active.
It supports tool calling. In this catalog its context window is 200,000 tokens. Pick it over Kimi K3 for the newer post-training; Kimi K3.1 Pro HS is the same model served for faster output.
Use cases
- Agentic workflows with tool calls
- Coding and analysis
- Long-document work
Input and output
- Input
- Text
- Output
- Text
Developer
Moonshot AI
Official site of Moonshot AI- Developer
- Moonshot
- Type
- Conversation
- Context
- 200,000 tokens
Kimi K3.1 Pro request example
Use https://gatelum.com/v1 as the base URL and pass moonshotai/kimi-k3.1-pro 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-k3.1-pro",
"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-k3.1-pro
claudeWhere to use Kimi K3.1 Pro
Guides with step-by-step instructions for the tools that support this model: