SuperAPI AI Directory

k2 - Moonshot AI's latest open-source MoE architecture foundation model

Author: AI小集 · Original source: AI工具集

What is k2

k2 is the MoE architecture foundation modelKimilaunched by Moonshot AI with super strong coding and Agent capabilities, with 1T total parameters and 32B activated parameters. In benchmark performance tests across major categories such as general knowledge reasoning, programming, mathematics, and Agent, the K2 model outperforms other mainstream open-source models. The k2 model has a context length of 128k, does not support visual functions, and supports ToolCalls, JSON Mode, Partial Mode, web search functionality, etc. The k2 model has open-sourced two versions: Kimi-K2-Base, a base model suitable for subsequent research and customized development; and Kimi-K2-Instruct, an instruction fine-tuned model that can be directly used for general chat and agent scenarios.

k2

Main features of k2

  • Super strong coding capability: Optimized specifically for programming tasks, supporting complex code generation, debugging, explanation, and cross-language conversion.
  • Agent capability: Supports multi-step tool calls (ToolCalls), and can autonomously plan and execute task chains (such as data queries, API calls, file operations, etc.).
  • Mathematical and logical reasoning: Performs better than mainstream open-source models in math competition problems (such as AIME), logic puzzles, and scientific computing.

Technical characteristics of k2

  • MoE architecture: 1 trillion total parameters, 32 billion activated parameters, balancing performance and efficiency.
  • Context length: 128K tokens (about 250,000 Chinese characters), suitable for long document analysis or long conversations.
  • Non-visual model: Focuses on text processing,does not support image understanding(kimi-latest-vision should be used instead).

Performance of k2

In the three capabilities of agentic coding, tool use, and math & reasoning, Kimi K2 has surpassed DeepSeek-V3-0324 and Qwen-235B-A22B, but still lags slightly behind top closed-source models such as Claude 4 Opus and GPT-4.1.

k2

How to use k2

  • Visit Kimi assistant: VisitKimi assistant's official website, where the k2 model is selected by default.
  • Get API key: Register and log in to the Moonshot AI open platform. Enter the "API key" page, create and copy the key.
k2

Test cases of k2

Official test:

  • Prompt: Create a 3D HTML mountain scene with cliffs, rivers, and day-night lighting. Supports drag/zoom, animated transitions, realistic gradients, and toggleable contour lines… (Create a 3D HTML mountain scene with cliffs, rivers, and day-night lighting changes. Supports drag and zoom, animated transitions, realistic gradients, and toggleable contour line display…)
k2-
  • Prompt: Create a HTML!! an immersive browser-based futures trading simulator with professional-grade UI/UX using modern JavaScript libraries. Focus on real-time visualizations and interactive trading mechanics.(Create an HTML-based immersive browser futures trading simulator using modern JavaScript libraries, with professional-grade UI/UX design. Focus on implementing real-time visualization and interactive trading mechanisms.)
k2

Model pricing of k2

Model version Context length Input price (cache hit) Input price (cache miss) Output pricing
kimi-k2-0711-preview 128 K tokens ¥1.00 / million tokens ¥4.00 / million tokens ¥16.00 / million tokens
  • Billing details
    • 1M tokens = 1,000,000 tokens
    • Cache hit: If the request content already exists in the system cache, the input portion is billed at ¥1.00/million tokens .
    • Cache miss: For brand-new or uncached content, the input portion is billed at ¥4.00/million tokens .
    • Output portion: Regardless of whether it is cached, it is uniformly billed at ¥16.00/million tokens .
    • Context length: A single request supports up to 131,072 tokens(≈250,000 Chinese characters)

k2 project address

  • Project official website:Kimi intelligent assistant
  • HuggingFace model library:https://huggingface.co/moonshotai/Kimi-K2-Instruct
  • Technical paper:https://moonshotai.github.io/Kimi-K2/

k2 application scenarios

  • Code and software development: K2 is designed for complex coding tasks, supporting reading tens of thousands of lines of source code or an entire requirements document at once, and generating a complete project skeleton.
  • Intelligent Agent and process automation: K2 supports understanding natural language instructions, autonomously calling databases, file systems, email, or internal APIs, and completing multi-step business loops.
  • Mathematical reasoning and research assistance: Leads mainstream open-source models on benchmarks such as AIME and MATH. Users can input an entire paper, competition problem, or complex formula at once, and the model will provide step-by-step derivations, reproducible Python/JAX/PyTorch experiment scripts, and LaTeX derivations that can be inserted directly into papers.
  • Text insights: Legal, audit, and operations teams can use the k2 model to quickly complete agreement comparison, compliance checks, or fault localization.