Kimi K2 Instruct
Moonshot AI logo

Kimi K2 Instruct

kimi-k2-instruct
Moonshot AI
Kimi-K2 is a MoE architecture foundational model with extremely powerful coding and agent capabilities, featuring a total of 1 trillion parameters and activating 32 billion parameters. In benchmark performance tests across major categories such as general knowledge reasoning, programming, mathematics, and agents, the K2 model outperforms other mainstream open-source models. The Kimi-K2 model supports a context length of 128k tokens. It does not support visual capabilities.

Pricing

  • Input Tokens: $0.540 /M tokens
  • Output Tokens: $2.160 /M tokens

Input Modalities

  • Text

Output Modalities

  • Text

Capabilities

  • Tools
  • Tool calling
  • Structured outputs

Try this model

Python
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AIHUBMIX_API_KEY"],
    base_url="https://aihubmix.com/v1",
)

response = client.chat.completions.create(
    model="kimi-k2-instruct",
    messages=[
      {
        "role": "user",
        "content": "Hello, how are you?"
      }
    ],
    max_tokens=1024,
    stream=False,
)

print(response.choices[0].message.content)

Frequently asked questions

What is Kimi K2 Instruct?

Kimi-K2 is a MoE architecture foundational model with extremely powerful coding and agent capabilities, featuring a total of 1 trillion parameters and activating 32 billion parameters. In benchmark performance tests across major categories such as general knowledge reasoning, programming, mathematics, and agents, the K2 model outperforms other mainstream open-source models. The Kimi-K2 model supports a context length of 128k tokens. It does not support visual capabilities.