StarSeaStarAPI
HomeModelskimi-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 AIChatReasoningCodingVision

Pricing

Input$0.98 / 1M tokens  (¥6.50)
Output$2.01 / 1M tokens  (¥13.30)
Output multiplier×2.05
Context window1M tokens

Prices are per 1M tokens in USD · ¥6.6 = $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.98 per 1M input tokens it sits above the catalogue median of $0.61 — 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-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-k2.6$0.98$4.0961.8
kimi-k2.7-code$0.98$4.0960.8
kimi-k3$3.03$15.1550.276.2

Capabilities

Chat & general-purpose models

27 models

Reasoning models

27 models

Coding models

25 models

Vision & multimodal input models

19 models

Long-context models

25 models

OpenAI-compatible API

27 models