Moonshot
Kimi K3.1 Pro
Moonshot’s Kimi K3.1 Pro supports coding, tool use and long-context work with text and images.
- Context window
- 1M tokens
- Accepts
- Text and images
- Input per 1M tokens
- $2.00
- Output per 1M tokens
- $10.00
Send your first request
Set LYCEUM_API_KEY to your API key, then run this request. Usage is billed to your account.
- Base URL
https://api.lyceum.technology/openai/v1- Model ID
moonshotai/kimi-k3.1-pro- Request fields
model, messages, stream, max_tokens, tools, tool_choice
Documented request fields for this endpoint. See the documentation for model-specific controls and limits.
app.py · Install openai and set LYCEUM_API_KEY
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["LYCEUM_API_KEY"],
base_url="https://api.lyceum.technology/openai/v1",
)
response = client.chat.completions.create(
model="moonshotai/kimi-k3.1-pro",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)app.ts · Install openai and set LYCEUM_API_KEY in Node.js
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.LYCEUM_API_KEY,
baseURL: "https://api.lyceum.technology/openai/v1",
});
const response = await client.chat.completions.create({
model: "moonshotai/kimi-k3.1-pro",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0]?.message.content);Terminal · Set LYCEUM_API_KEY in your terminal
curl https://api.lyceum.technology/openai/v1/chat/completions \
-H "Authorization: Bearer $LYCEUM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "moonshotai/kimi-k3.1-pro",
"messages": [
{"role": "user", "content": "Hello!"}
]
}'What it costs
You pay only for the tokens you use.
Token pricing
| USD per million tokens | |
|---|---|
| Input | $2.00 |
| Cached input | $0.20 |
| Output | $10.00 |
No base fee. Caching applies only where listed. Check the model's processing region before sending data.
The model in detail
Checked against the sources below. Anything they don't state is left out.
Capabilities
- Input and output
- Text and images in, text out
- Context window
- 1M tokens
- Tool calling
- Supported
Availability
- API model ID
moonshotai/kimi-k3.1-pro- Provider
- Moonshot
- Processing region
- EU-hosted
- Capabilities and request fields: Lyceum API documentation, checked 9 September 2026.
- Parameters, licence and release date: Moonshot’s own sources, including its model card and announcement, checked 29 September 2026.
Common questions about Kimi K3.1 Pro
Short answers about the model ID, price, limits and behaviour.
What is the model ID for Kimi K3.1 Pro?
Use moonshotai/kimi-k3.1-pro as the model value. The OpenAI-compatible base URL is https://api.lyceum.technology/openai/v1. You authenticate with your Lyceum API key as a Bearer token.
How much does Kimi K3.1 Pro cost?
Kimi K3.1 Pro costs $2.00 per 1M input tokens, $0.20 per 1M cached input tokens and $10.00 per 1M output tokens. Prices are in US dollars. Billed per token. No base fee.
What is the context window of Kimi K3.1 Pro?
Kimi K3.1 Pro has a 1M tokens context window. One request can generate up to 131,072 tokens and run for up to 300 seconds. Set stream: true for long outputs.
Does Kimi K3.1 Pro support tool calling?
Yes. Send tools in the standard OpenAI format. Automatic tool calls, parallel calls and tool-result round trips work.
Does Kimi K3.1 Pro support prompt caching?
Yes, and it is automatic. When requests share an identical start, the cached part is billed at $0.20 per 1M tokens instead of $2.00. Keep the stable part of your prompt at the front. A cache hit is best effort, so read usage.prompt_tokens_details.cached_tokens, which is missing on a miss.
Where does Kimi K3.1 Pro run, and is my data kept?
Kimi K3.1 Pro runs on EU-hosted infrastructure. We don’t keep your prompts or outputs, and we never use them for training.
How do I call Kimi K3.1 Pro with the OpenAI SDK?
Point the OpenAI SDK at https://api.lyceum.technology/openai/v1, use your Lyceum API key and set model="moonshotai/kimi-k3.1-pro". Chat completions, streaming, tool calling and usage accounting work as they do with OpenAI.
Behaviour notes follow the Lyceum API documentation, checked 6 October 2026.
Similar models
Other models in our catalogue for the same kind of work.