Moonshot Text Available

Kimi K2.7 Code API

Moonshot AI Kimi K2.7 Code 多模态编程与 Agent 模型,支持 256K tokens 上下文、长程代码任务、图片与视频理解、深度思考和多步工具调用。

Starting price 按实际 Token 用量计费 · Price snapshot

Waiting to refresh live prices…

Get started Developer guide

Model pricing

Compare all public tiers and current prices for this series on one page.

Input

按实际 Token 用量计费

Output

总价 = 各类 Token 用量 × 对应单价

Context

262,144

Max output

32,768

Model ID
kimi-k2.7-code
Billing model
Fixed combination billing
Available groups
default
Capabilities
chat
Combination pricing rules
按实际 Token 用量计费总价 = 各类 Token 用量 × 对应单价
  • Token 单价由当前计费表达式推导;实际费用按请求用量结算
查看高级计费表达式v2:tier("moonshot_kimi_k2_7_code_cny_at_7_plus_10pct_2026_09_01", tokens(p, 1.021429) + tokens(c, 4.242857) + tokens(cr, 0.204286))

API reference

Base URL is https://api.rokoapi.com/v1. The model in requests must use the model IDs listed above.

curl https://api.rokoapi.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kimi-k2.7-code",
    "messages": [{"role":"user","content":"Introduce yourself in one sentence"}]
  }'

For more parameters, limits, and async task queries, read the Kimi K2.7 Code developer guide. Kimi K2.7 Code Developer guide · OpenAI · Authorization

Other Moonshot model series