星海词元星海词元
Ready to build?Get an API key — all models at 50% of the official price →
Home › Models › kimi-k2.8-preview

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)

Integrations · Quickstart

Other models from this provider

ModelsInput $/MOutput $/MIntelligence indexCoding index
kimi-k3.1-pro$1.00$5.23——
kimi-k3$1.54$7.6943.676.2
kimi-k3.1-pro-highspeed$2.00$10.46——

Capabilities