Kimi K2.7 Code
moonshotai/kimi-k2.7-code

Kimi K2.7 Code 是 MoonshotAI 推出的最强编程与智能体(Agent)模型——采用 1 万亿参数混合专家架构,支持 256K 上下文,并具备交错式思维与多步工具调用能力。它在长周期编程任务上取得了显著提升,同时相比 K2.6 将思考 token 的使用量减少了约 30%,并支持文本、图像和视频输入,可用于视觉驱动的开发工作流。

Model price

Input /Mt Output /Mt
UncachedCache read
¥6.5/Mt¥1.3/Mt¥27/Mt

Sample Code

Copy
1base_url="https://api.ppio.com/openai"
2api_key="<YOUR_API_KEY>"
3
4curl "$base_url/v1/chat/completions" \
5  -H "Content-Type: application/json" \
6  -H "Authorization: Bearer $api_key" \
7  -d @- << 'EOF'
8{
9    "model": "moonshotai/kimi-k2.7-code",
10    "messages": [
11        
12        {
13            "role": "user",
14            "content": "Hi there!"
15        }
16    ],
17    "response_format": { "type": "text" }
18}
19EOF
20  

Model Information

Context window:

262.1K

Maximum output tokens:

262.1K

Modality:

Input:
TextImageVideo
Output:
Text

Supported features

Function CallingSupported
Structured OutputSupported
reasoningSupported

API Integration Guide

Base URL:

https://api.ppio.com/openai

Messages protocol Base URL:

https://api.ppio.com/anthropic

API Endpoints:

/v1/chat/completions

Model ID:

moonshotai/kimi-k2.7-code

Usage tierRPMTPM
T1550000000
T210050000000
T3100050000000
T4300050000000
T5600050000000
With more cost-effective products and services
Help you unleash boundless innovation and lead the new era of intelligence
Inquire now