MoonshotAI: Kimi K2.7 Code
Chatmoonshotai/kimi-k2.7-codeKimi 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
Moonshot
Supported Protocols
openai
Providers
Moonshot
Input Tokens
$0.95/M
Output Tokens
$4/M
Cache Read
$0.19/M
Web Search
$0.0043/R
Protocols
openai
/v1/chat/completionsCode Examples
from openai import OpenAIclient = OpenAI(base_url="https://api.ofox.io/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)
Related Models
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.
MoonshotAI: Kimi K2.7 Code supports a context window of 262K tokens with max output of 262K tokens, allowing you to process large documents and maintain long conversations.
Simply set your base URL to https://api.ofox.ai/v1 and use your Ofox API key. The API is OpenAI-compatible — just change the base URL and API key in your existing code.
MoonshotAI: Kimi K2.7 Code supports the following capabilities: Function Calling, Reasoning, Prompt Caching, Web Search. Access all features through the Ofox.ai unified API.