XiaoZhan AIhubXiaoZhan AIhub
HomeAI ChatAgentsCreateCreative AgentModel catalogueTopicsPriceDocs
XiaoZhan AIhubXiaoZhan AIhub
HomeAI ChatAgentsCreateCreative AgentModel catalogueTopicsPriceDocs
XiaoZhan AIhubXiaoZhan AIhub
HomeAI ChatAgentsCreateCreative AgentModel catalogueTopicsPriceDocs
Model catalogueKimi K2.7 Code

Kimi K2.7 Code

NEW

Model ID

Put this value in the request body's `model` field — not the display name above.

Text generationReasoningToolsJSON256kOpen source

by Moonshot · Moonshot Kimi K2.7, code-specialised, 256K context.

Try it now

Quick start

EndpointPOST /v1/chat/completions
AuthenticationAuthorization: Bearer sk-gpushare-…Get API key
Call styleSynchronous: one request returns the result
Base URLhttps://usapi.dflop.top/v1
cURL
curl https://usapi.dflop.top/v1/chat/completions \
  -H "Authorization: Bearer sk-gpushare-xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kimi-k2.7-code",
    "messages": [
      {"role": "user", "content": "你可以帮我做什么"}
    ]
  }'

Pricing

Billed per token: input and output are priced separately and settled on the upstream's reported usage.

Rates
Input 0.2426Credits/K·Output 1.011Credits/K
  • Input tokens that hit the prompt cache are billed at 40.44 Credits / 1M — cheaper than full-price input.
  • Failed requests (upstream 4xx / 5xx) are not billed.
  • All your API keys share one balance; when it runs out the API returns HTTP 402 `quota_exceeded`.

Sign in and any personal discount on your account will show up here. Sign in

Capabilities & specs

Category
Text generation
Context window
256k tokens
Default max output
256k tokens
Endpoint family
Chat Completions
Protocols
OpenAI Chat
Released
2026-06-15
License
Open source

Try it

Pick a key under "API access" and fire one real request to see the response — the estimated cost is shown before you send.

Try it in chat

Common errors

404 model_not_found

You passed the display name instead of the model ID.✗ Kimi K2.7 Code→✓ kimi-k2.7-code

→ Copy the Model ID at the top of this page

402 quota_exceeded

Insufficient account balance. All your API keys share one balance.

→ Add funds in your account

401 / 403

The API key is invalid, or it has a model allowlist that doesn't include this ID.

→ Check the key's status and allowed models

400 invalid_request

A request body field is invalid, or this model doesn't support the protocol endpoint you called.

→ Check your request body against the sample code above

More models from this vendor

Kimi K2.5kimi-k2.5Kimi K2.6kimi-k2.6Kimi K3kimi-k3
Try it

关于 Kimi K2.7 Code 的常见问题

怎么调用 Kimi K2.7 Code?
请求体的 model 字段填 kimi-k2.7-code,打到 https://usapi.dflop.top/v1/chat/completions,把 sk-gpushare- 开头的密钥放进 Authorization: Bearer 请求头。OpenAI、Anthropic、Google Gemini 三套官方 SDK 都能直接调用,只需把 base_url 指向本网关。
Kimi K2.7 Code 的 API 价格是多少?
  • ·输入:每 100 万 token 242.64 积分(≈ ¥4.04 / ≈ $0.6)
  • ·输出:每 100 万 token 1,011 积分(≈ ¥16.85 / ≈ $2.5)
  • ·缓存命中的输入:每 100 万 token 40.44 积分(≈ ¥0.674 / ≈ $0.1)
  • ·平台以积分计价,60 积分 = ¥1;每次调用先按上限预扣,返回后按实际用量结算,差额自动退回。
Kimi K2.7 Code 的上下文窗口有多大?
256,000 token,单次请求默认输出上限 256,000 token。
Kimi K2.7 Code 支持哪些能力?
工具调用、思考模式、JSON 模式、开源权重。兼容协议:OpenAI Chat Completions。

输入价格约合每 100 万 token $0.6。本页的 Markdown 版本:/models/kimi-k2.7-code.md