Please rotate your device

To continue exploring this website, please rotate your device to a vertical orientation

Kimi K3

moonshotai/Kimi-K3

The open frontier model. 2.8T parameters, 1M-token context, top benchmarks scores.

Model APIlarge language

Kimi K3 is Moonshot AI’s flagship 2.8-trillion-parameter Mixture-of-Experts (MoE) large language model. It is built specifically to handle complex reasoning, long-horizon coding, and agentic knowledge work.

Key specifications and capabilities include:

  • 1M Token Context Window: Supports massive context lengths with native vision capabilities, enabling processing of entire codebases, research papers, and multi-modal inputs.

  • Long-Horizon Coding & Engineering: Built to run extended coding sessions autonomously with minimal supervision.

  • Native Multimodality: Combines software logic with visual reasoning, allowing it to leverage screenshots for tasks in game design, frontend UI, CAD, and dashboard creation.

  • Reasoning Modes: Operates with native thinking capabilities, allowing users to configure reasoning effort levels (low, high, or max) depending on task complexity.

Input

python
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://inference.baseten.co/v1"
)

response = client.chat.completions.create(
    model="moonshotai/Kimi-K3",
    messages=[
        {
            "role":"user",
            "content":[
                {"text":"Describe this image in one sentence.","type":"text"},
                {"type":"image_url",
                    "image_url":{"url":"https://picsum.photos/id/237/200/300"}
                }
            ]
        }
    ],
)

print(response.to_json())

Output

json
{
  "id": "chatcmpl-xxxx",
  "choices": [
    {
      "finish_reason": "stop",
      "index": 0,
      "logprobs": "None",
      "message": {
        "content": "<CONTENT_TEXT>",
        "refusal": "None",
        "role": "assistant",
        "annotations": "None",
        "audio": "None",
        "function_call": "None",
        "reasoning_content": "<REASONING_TEXT>"
      },
      "stop_reason": 163586,
      "token_ids": "None",
      "routed_experts": "None"
    }
  ],
  "model": "moonshotai/Kimi-K3",
  "object": "chat.completion",
  "usage": {
    "completion_tokens": 82,
    "prompt_tokens": 189,
    "total_tokens": 271,
    "prompt_tokens_details": {
      "cached_tokens": 0,
      "created_cache_tokens": 0,
      "multimodal_tokens": {
        "image": 96
      }
    }
  },
  "prompt_logprobs": "None",
  "prompt_token_ids": "None",
  "prompt_text": "None",
  "kv_transfer_params": "None",
  "ec_transfer_params": "None",
  "metrics": "None"
}