alicloud-kimi-k2-instruct
Moonshot AI logo

Alicloud Kimi K2 Instruct

alicloud-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.548 /M tokens
  • Output Tokens: $2.192 /M tokens

Input Modalities

    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="alicloud-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 alicloud-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.