Back to Models
moonshotai/kimi-k2-7-code
Kimi K2.7 Code
MoonshotAI: Kimi K2.7 Code is a coding-focused model in Moonshot AI's Kimi K2 family, built to complete end-to-end programming tasks reliably over long contexts. It uses a native multimodal mixture-of-experts...
6/12/2026
262,144 tokens
Input: ¥55/M
Output: ¥530/M
Specifications
Modalities
Input
text
image
Output
text
Supported Parameters
frequency_penalty
include_reasoning
logit_bias
logprobs
max_tokens
min_p
parallel_tool_calls
presence_penalty
reasoning
repetition_penalty
response_format
seed
stop
structured_outputs
temperature
tool_choice
tools
top_k
top_logprobs
top_p
Max Output Tokens
262,144Code Examples
curl https://api.fastmetal.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "japan-kimi-k2.7-code",
"messages": [{"role": "user", "content": "Hello!"}]
}'Frequently asked questions
- How much does the Kimi K2.7 Code API cost?
- On FastMetal, Kimi K2.7 Code is billed per token in yen: ¥55 per 1M input tokens and ¥530 per 1M output tokens, before tax. Usage is drawn from a prepaid balance; there is no subscription or monthly fee.
- Can I call Kimi K2.7 Code with the OpenAI SDK?
- Yes. Point base_url at https://api.fastmetal.ai/v1 and pass "japan-kimi-k2.7-code" as the model; existing OpenAI-style code works unchanged, including streaming, tool calls and structured output.
- What is the context window of Kimi K2.7 Code?
- 262,144 tokens, shared between the prompt and the response.
- What do I need to try Kimi K2.7 Code?
- Create an account and add credit; the model is then available both in the browser chat and over the API. There is no contract or minimum spend.
Try Kimi K2.7 Code right now
Kimi K2.7 Code is available on FastMetal through one API key. Start in the browser, or call it from the OpenAI SDK.