June 🎉 GPT 15% Off 🎉 All series, all month 🔥Learn more
MoonshotAI

MoonshotAI: Kimi K2.7 Code

Chat
moonshotai/kimi-k2.7-code

Kimi K2.7 Code 是 Moonshot 官方 (api.moonshot.cn) 强编程推理模型, 内嵌 thinking。OpenAI 协议直用; Anthropic 协议需 thinking:type=enabled (bifrost 转换待修, 见 issue 2026-06-24)。

Context Window
262K
Max Output Tokens
262K
Released
2026-06-12
Capabilities
Function CallingReasoningPrompt CachingWeb Search
Available Providers
MoonshotAIMoonshot
Supported Protocols
OpenAIopenai

Providers

MoonshotAIMoonshot
Input Tokens
$0.95/M
Output Tokens
$4/M
Cache Read
$0.19/M
Web Search
$0.0043/R
Protocols
OpenAIopenai/v1/chat/completions

Code Examples

from openai import OpenAI
client = OpenAI(
base_url="https://api.ofox.ai/v1",
api_key="YOUR_OFOX_API_KEY",
)
response = client.chat.completions.create(
model="moonshotai/kimi-k2.7-code",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)

Frequently Asked Questions

MoonshotAI: Kimi K2.7 Code on Ofox.ai costs $0.95/M per million input tokens and $4/M per million output tokens. Pay-as-you-go, no monthly fees.