kimi-k3.1-pro API
Call kimi-k3.1-pro through a single OpenAI-compatible endpoint — one key, no separate vendor account, no multi-provider wiring.
Moonshot AIChatReasoningCodingVisionPricing
Input$2.00 / 1M tokens (¥7.80)
Output$10.46 / 1M tokens (¥40.80)
Output multiplier×5.23
Context window256K tokens
Prices are per 1M tokens in USD · ¥6.5 = $1 · Billed in CNY
Moonshot AI
Kimi models target long-context reading and code generation, with dedicated coding variants tuned for repository-scale tasks.
When to use it
At $2.00 per 1M input tokens it sits above the catalogue median of $1.32 — a capability-first choice. Best for coding agents and repository-scale edits. Every model here is reachable with the same API key, so trialling it against a stronger sibling costs one line of code.
Code
from openai import OpenAI
client = OpenAI(
base_url="https://starseaapi.com/v1",
api_key="sk-your-key"
)
r = client.chat.completions.create(
model="kimi-k3.1-pro",
messages=[{"role": "user", "content": "Explain prefix caching in one paragraph"}]
)
print(r.choices[0].message.content)Other models from this provider
| Models | Input $/M | Output $/M | Intelligence index | Coding index |
|---|---|---|---|---|
| kimi-k2.8-preview | $1.00 | $4.15 | — | — |
| kimi-k3 | $3.08 | $15.38 | 43.6 | 76.2 |