Kimi K2.7 Code

Moonshot AI chatcodereasoningtool_usevision Long

API ID: moonshotai/kimi-k2.7-code-20260612

Input Price
$0.70
/1M tokens
Output Price
$3.50
/1M tokens
Cached Input
$0.15
Save 79%

About Kimi K2.7 Code

Kimi K2 is Moonshot AI's flagship model, delivering exceptional performance on complex reasoning and coding tasks. The model features advanced capabilities that compete with frontier models from larger labs. Kimi K2 excels at mathematical reasoning, code generation, and sophisticated analysis tasks. It demonstrates strong performance on challenging benchmarks and features an extended context window. The model is particularly valuable for applications requiring genuine reasoning capability. For developers seeking capable AI from an innovative Chinese AI lab, Kimi K2 offers compelling capability. It's especially strong for technical applications and scenarios requiring careful analytical thinking.

๐Ÿ’ฐ
Price Ranking
#1045 lowest price among 1240 Chat models

Model Specifications

Context Length
262k
Max Output
262k
Release Date
2026-06-12
Capabilities
chat code reasoning tool_use vision
Input Modalities
textimage
Output Modalities
text

Best For

  • Complex reasoning, math problems, multi-step logic
  • Code generation, debugging, code review, refactoring
  • Image analysis, document understanding, visual Q&A
  • Conversations, content writing, general assistance

Consider Alternatives For

  • Simple Q&A (cheaper models available)

๐Ÿ’ฐ Real-World Cost Examples

Estimated monthly costs for common use cases

Personal AI Assistant
$1.36
/month
50 conversations/day, ~500 tokens each
Code Copilot
$11.76
/month
200 completions/day, ~1k tokens each
Customer Service Bot
$42.00
/month
1000 tickets/day, ~800 tokens each
Data Analysis Pipeline
$57.75
/month
500 analyses/day, ~2k tokens each

Moonshot AI Model Lineup

Compare all models from Moonshot AI to find the best fit

Model Input Output Context Capabilities
Kimi K2.7 Code Current Free Free 262k chat code reasoning tool_use vision
Moonlight 16B A3B Instruct Free Free 8k chat
Moonlight 16B A3B Instruct Free Free 8k chat
Kimi K2 0711 Free Free 131k chat tool_use
Kimi Dev 72B Free Free 131k chat reasoning
Kimi VL A3B Thinking Free Free 131k chat vision reasoning

Similar Models from Other Providers

Cross-brand alternatives with similar capabilities

Other Maestro Reasoning
Input: $0.90
Output: $3.30
Context: 131k
Other Switchpoint Router
Input: $0.85
Output: $3.40
Context: 131k
Alibaba Qwen Qwen3.5 397B A17B
Input: $0.50
Output: $3.60
Context: 262k
Relace Relace Search
Input: $1.00
Output: $3.00
Context: 256k

๐Ÿš€ Quick Start

Get started with Kimi K2.7 Code API

OpenAI-compatible SDK
from openai import OpenAI

client = OpenAI(
    base_url="https://api.provider.com/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="moonshotai/kimi-k2.7-code-20260612",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)
print(response.choices[0].message.content)