Back to models
Moonshot

Kimi K2.7 Code

月之暗面直供的 Kimi K2.7 Code 模型,以编码为中心的智能体模型,专为长程软件工程任务优化,仅支持思考模式。擅长跨多文件重构、功能实现、长会话调试等复杂工作流。

Quick Stats

Context

262K

Max Output

16K

Provider

Moonshot

Specs

1

Modalities

in textin imageout text

Specs & List Price (per 1M tokens)

Quality
Input $0.970149Output $4.029851Cache read $0.19403

Recommended Plan

Kimi K2.7 Code Starter Plan

Pay-as-you-go after top-up; $1 free credit for new users.

Buy Plan

API Endpoint

Model IDmoonshotai/kimi-k2.7-code

cURL

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

Python

from openai import OpenAI

client = OpenAI(
    base_url="https://intertoken.ai/v1",
    api_key="$TOKENPORTAL_API_KEY",
)

resp = client.chat.completions.create(
    model="moonshotai/kimi-k2.7-code",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)

Start using this model

Sign up free, get an API key, and make your first call in 30 seconds.

Kimi K2.7 Code · TokenPortal