Kimi K3.1 Pro API
Moonshot's Kimi, built for very long files and research. Served through RouterHub at $0.20 input / $1.00 output per million tokens (prices as of ).
Kimi K3.1 Pro pricing
−90% vs the official API price of $2.00 input / $10.00 output per 1M tokens (source, checked 2026-10-30).
- Input
- $0.20
- Cached input
- $0.02
- Output
- $1.00
- Typical message
- ≈ 0.070¢
USD per 1 million tokens. A typical message is about 1,000 input and 500 output tokens. Cached input uses the cache-read rate when the provider reports a cache hit. Billed from your prepaid balance.
Compare Kimi K3.1 Pro variants
| Model / exact API ID | Input / 1M | Output / 1M | Actions |
|---|---|---|---|
kimi-k3.1-pro |
Chat | ||
kimi-k3.1-pro-uncensored |
Chat |
API compatibility and context
- Exact model ID
kimi-k3.1-pro- Provider
- Moonshot AI
- Variant
- Standard
- Supported API
- OpenAI-compatible Chat Completions API (
/v1/chat/completions) - Availability
- Available
- Context window
- 1,048,576 tokens
- Maximum input
- 1,048,575 tokens
- Maximum output
- 1,048,576 tokens
Use Kimi K3.1 Pro through the API
Create a RouterHub account, add prepaid credits and create an API key. Set ROUTERHUB_API_KEY locally, then send a first request with the exact model ID.
curl --connect-timeout 30 --max-time 600 https://routerhub.si/v1/chat/completions \
-H "Authorization: Bearer $ROUTERHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"kimi-k3.1-pro","messages":[{"role":"user","content":"Write a short noir scene set in a lighthouse."}],"max_tokens":256}'Python: install openai with pip. The example requests 256 output tokens and disables automatic retries, so check Usage before resending a paid request.
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["ROUTERHUB_API_KEY"],
base_url="https://routerhub.si/v1",
timeout=600.0,
max_retries=0,
)
response = client.chat.completions.create(
model="kimi-k3.1-pro",
messages=[{"role": "user", "content": "Write a short noir scene set in a lighthouse."}],
max_tokens=256,
)
print(response.choices[0].message.content)Coding tools that work with Kimi K3.1 Pro
Common questions
What is Kimi K3.1 Pro?
Kimi K3.1 Pro is a Moonshot AI language model served through RouterHub using the OpenAI-compatible Chat Completions API. Its exact API model ID is kimi-k3.1-pro.
How much does Kimi K3.1 Pro cost?
RouterHub charges $0.20 input, $0.02 cached input and $1.00 output per million tokens (prices as of 2026-11-08). A typical chat message of about 1,000 input and 500 output tokens costs about 0.070¢. Usage is billed against your prepaid balance.
What is the Kimi K3.1 Pro context window?
Context window: 1,048,576 tokens. Maximum input: 1,048,575 tokens. Maximum output: 1,048,576 tokens.
Which API does Kimi K3.1 Pro support?
Use the OpenAI-compatible Chat Completions API at https://routerhub.si/v1/chat/completions with the exact model ID kimi-k3.1-pro and your RouterHub API key (Authorization: Bearer header).
Which coding tools work with Kimi K3.1 Pro?
OpenCode, VS Code + Continue, VS Code + Cline, Hermes Agent. Each setup guide lists only compatible model IDs.
Can I try Kimi K3.1 Pro for free?
Kimi K3.1 Pro needs a free RouterHub account with prepaid credits. New accounts get $5 free on their first top-up of $20 or more.