Kimi K3.1 Pro¶
Kimi K3.1 Pro is Moonshot AI's open-weight large language model. On Mango Inference you call it by its model ID through the OpenAI-compatible and Anthropic-compatible APIs, with no servers to run, and pay per token.
At a glance¶
| Property | Value |
|---|---|
| Model ID | moonshotai/Kimi-K3.1-Pro |
| Developer | Moonshot AI |
| Input | Text, image, file (PDF) |
| Output | Text |
| Context window | 1,048,576 tokens |
| Max output tokens | 1,048,576 tokens |
| Features | Tool calling, structured output, reasoning, images and PDFs |
| Price | Per token. See the pricing page. |
| Model card | moonshotai/Kimi-K3.1-Pro on Hugging Face |
The model catalogue changes over time. The live list is authoritative: see Models and pricing.
Call Kimi K3.1 Pro¶
Get an API key, then send a request with moonshotai/Kimi-K3.1-Pro as the model.
curl https://api.mangoboost.io/v1/chat/completions \
-H "Authorization: Bearer $MANGOINFERENCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "moonshotai/Kimi-K3.1-Pro",
"messages": [
{"role": "user", "content": "Explain tool calling in one paragraph."}
]
}'
from openai import OpenAI
client = OpenAI(
base_url="https://api.mangoboost.io/v1",
api_key="<your-api-key>",
)
resp = client.chat.completions.create(
model="moonshotai/Kimi-K3.1-Pro",
messages=[{"role": "user", "content": "Explain tool calling in one paragraph."}],
)
print(resp.choices[0].message.content)
export ANTHROPIC_BASE_URL="https://api.mangoboost.io"
export ANTHROPIC_API_KEY="<your-api-key>"
export ANTHROPIC_DEFAULT_OPUS_MODEL="moonshotai/Kimi-K3.1-Pro"
export ANTHROPIC_DEFAULT_SONNET_MODEL="moonshotai/Kimi-K3.1-Pro"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="moonshotai/Kimi-K3.1-Pro"
See Claude Code for the full setup.
Kimi K3.1 Pro reads images and PDF documents as well as text: send them inline, base64-encoded. See Images and PDFs.
Kimi K3.1 Pro is a reasoning model: responses can carry the model's reasoning alongside the answer. See Reasoning for how to read it and what it costs.
Supported request parameters¶
| Parameter | Supported |
|---|---|
temperature |
Yes |
top_p |
Yes |
top_k |
Yes |
stop |
Yes |
n |
Yes |
logprobs, top_logprobs |
Yes |
response_format |
Yes |
tools, tool_choice |
Yes |
For every parameter and its values, see Chat Completions.