kimi-k2.8-preview API
Call kimi-k2.8-preview through a single OpenAI-compatible endpoint — one key, no separate vendor account, no multi-provider wiring.
Moonshot AIChatVision视频理解ReasoningCoding工具调用Long context超大输出Pricing
Input$0.50 / 1M tokens (¥3.25)
Output$2.08 / 1M tokens (¥13.50)
Output multiplier×4.15
Context window1M 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 $0.50 per 1M input tokens it sits in line with the catalogue median of $0.50 — a balanced 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-k2.8-preview",
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-k3.1-pro | $1.00 | $5.23 | — | — |
| kimi-k3 | $1.54 | $7.69 | 43.6 | 76.2 |
| kimi-k3.1-pro-highspeed | $2.00 | $10.46 | — | — |