| kimi-k2.7-code | kimi-k2.8-preview | |
|---|---|---|
| Providers | Moonshot AI | Moonshot AI |
| Input $/M | $0.98 | $0.98 |
| Output $/M | $4.09 | $2.01 |
| Output multiplier | ×4.15 | ×2.05 |
| Context window | 256K tokens | 1M tokens |
| Intelligence index | — | — |
| Coding index | 60.8 | — |
Input pricing is close — 1.00× apart — so the decision should come down to measured quality on your own evaluation set rather than headline cost.
Tags: kimi-k2.7-code — Chat, Reasoning, Coding, Vision · kimi-k2.8-preview — Chat, Reasoning, Coding, Vision
from openai import OpenAI
client = OpenAI(base_url="https://starseaapi.com/v1", api_key="sk-...")
# kimi-k2.7-code
client.chat.completions.create(model="kimi-k2.7-code", messages=[{"role":"user","content":"Hi"}])
# kimi-k2.8-preview
client.chat.completions.create(model="kimi-k2.8-preview", messages=[{"role": "user", "content": "Hi"}])