MOONSHOT

kimi-k2.7-code

Moonshot AI's Kimi K2.7 Code, a 256K-token context model tuned for programming and agentic software work, with thinking always on. Listed as deprecated in Moonshot's docs, with access limited to existing users.

Usage billing

Official price vs Nbility

Per 1M tokens, read live from the gateway. Nbility shows its lowest public group.

Moonshot list price

Input$6.50Output$27.00

Nbility · china-大厂 group

Input4.225Output17.55

Group prices

Every available group is listed with its effective input and output price.

Usage billing
GroupRatioInputOutputCache read price
Base pricex1
6.50/1M
27.00/1M
1.30/1M
china-大厂x0.65
4.225/1M
17.55/1M
0.845/1M

Quick start

Replace YOUR_API_KEY with a key from your account.

curl https://api.nbility.ai/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"kimi-k2.7-code","messages":[{"role":"user","content":"Hello"}]}'

Compatible endpoints

openaiPOST /v1/chat/completions
openai-responsePOST /v1/responses
openai-response-compactPOST /v1/responses/compact
anthropicPOST /v1/messages
geminiPOST /v1beta/models/{model}:generateContent
openai-alpha-searchPOST /v1/alpha/search

Docs for this model