Baltor Get started

Models

Kimi K2 Thinking

By MoonshotAI. 1.03 trillion parameters, a context window of 262,144 tokens and the licence other.

Facts

Released
2025-11-04 the day the repository was first published on Hugging Face Hugging Face, read
Licence
other the licence the model card declares Hugging Face, read
Open weights
Yes the weights are published in this Hugging Face repository Hugging Face, read
Parameters
1.03 trillion counted from the safetensors weight files Hugging Face, read
Active parameters
32.9 billion estimate estimated from the expert counts and sizes in the configuration model configuration, read
Knowledge cutoff
Unknown
Context window
  • 262,144 tokens the maximum position embeddings in the model configuration model configuration, read
  • 262,144 tokens the context length OpenRouter lists OpenRouter, read
Longest output
  • 98,304 tokens the largest output OpenRouter's first provider allows OpenRouter, read
Tool calling
  • Yes OpenRouter lists tools among the supported parameters OpenRouter, read
Structured output
  • Yes OpenRouter lists structured outputs among the supported parameters OpenRouter, read
Reasoning controls
  • Yes OpenRouter lists reasoning controls OpenRouter, read
Inputs and outputs
text in, text out Hugging Face, read
Good for
  • Reasoning: OpenRouter lists reasoning controls for it OpenRouter, read

Prices

Prices in US dollars per million tokens, as each source lists them
ProviderInputOutputContextAs ofSource
Vercel AI Gateway direct0.470 USD2.00 USD216,144 older than 30 days; check the providermodels.dev, read
IO.NET direct0.550 USD2.25 USD32,768 older than 30 days; check the providermodels.dev, read
Google through OpenRouter0.600 USD2.50 USD262,144OpenRouter endpoints, read
Hugging Face direct0.600 USD2.50 USD262,144 older than 30 days; check the providermodels.dev, read
Kilo Gateway direct0.600 USD2.50 USD262,144 older than 30 days; check the providermodels.dev, read
Merge Gateway direct0.600 USD2.50 USD262,144 older than 30 days; check the providermodels.dev, read
NanoGPT direct0.600 USD2.50 USD262,144 older than 30 days; check the providermodels.dev, read
Novita through OpenRouter0.600 USD2.50 USD262,144OpenRouter endpoints, read
NovitaAI direct0.600 USD2.50 USD262,144 older than 30 days; check the providermodels.dev, read
OpenRouter direct0.600 USD2.50 USD262,144 older than 30 days; check the providermodels.dev, read
ZenMux direct0.600 USD2.50 USD262,000 older than 30 days; check the providermodels.dev, read
Meganova direct0.600 USD2.60 USD262,144 older than 30 days; check the providermodels.dev, read

Run it on your own hardware

Weights are the sizes of the files a source lists, or an estimate from the parameter count where none does. Memory is an estimate: weights plus KV cache plus 512 MiB and 5 percent of the weights for runtime buffers. Check it against your hardware.

QuantizationWeightsMemory at 8,192 tokensMemory at 32,768 tokens
UD-TQ1_0230 GiB242 GiB244 GiB
UD-IQ1_S266 GiB280 GiB282 GiB
UD-IQ1_M288 GiB303 GiB305 GiB
UD-IQ2_XXS312 GiB329 GiB330 GiB
UD-IQ2_M329 GiB347 GiB348 GiB
Q2_K348 GiB367 GiB368 GiB
Q2_K_L349 GiB367 GiB369 GiB
UD-Q2_K_XL360 GiB379 GiB380 GiB
UD-IQ3_XXS393 GiB413 GiB415 GiB
Q3_K_S413 GiB434 GiB436 GiB
UD-Q3_K_XL424 GiB446 GiB448 GiB
Q3_K_M456 GiB480 GiB482 GiB
IQ4_XS510 GiB536 GiB538 GiB
IQ4_NL539 GiB567 GiB569 GiB
Q4_0541 GiB569 GiB571 GiB
Q4_K_S543 GiB571 GiB573 GiB
Q4_K_M579 GiB609 GiB610 GiB
Q4_1599 GiB630 GiB631 GiB
UD-Q4_K_XL602 GiB633 GiB635 GiB
Q5_K_S658 GiB692 GiB694 GiB
Q5_K_M679 GiB714 GiB715 GiB
UD-Q5_K_XL680 GiB715 GiB716 GiB
Q6_K785 GiB825 GiB827 GiB
UD-Q6_K_XL819 GiB861 GiB862 GiB
Q8_01,016 GiB1,068 GiB1,070 GiB
UD-Q8_K_XL1,108 GiB1,165 GiB1,166 GiB
BF161,912 GiB2,009 GiB2,010 GiB

Start it with a local runtime

  • Ollama
    ollama run hf.co/unsloth/Kimi-K2-Thinking-GGUF:Q4_0
  • LM Studio
    lms get unsloth/Kimi-K2-Thinking-GGUF
    lms server start
  • llama.cpp server
    llama-server -hf unsloth/Kimi-K2-Thinking-GGUF:Q4_0 --jinja
  • vLLM
    vllm serve moonshotai/Kimi-K2-Thinking
  • SGLang
    sglang serve --model-path moonshotai/Kimi-K2-Thinking --port 30000

Use it from your harness

Set up for Hugging Face with the model moonshotai/Kimi-K2-Thinking. Each endpoint page has the same setup for its own address.

OpenCode

Put this in opencode.json in your project folder:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "huggingface": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Hugging Face",
      "options": {
        "baseURL": "https://router.huggingface.co/v1",
        "apiKey": "{env:HF_TOKEN}"
      },
      "models": {
        "moonshotai/Kimi-K2-Thinking": {
          "name": "Kimi K2 Thinking",
          "limit": {
            "context": 262144,
            "output": 98304
          }
        }
      }
    }
  }
}
  • OpenCode reads any OpenAI-compatible address through the @ai-sdk/openai-compatible package, and an address that speaks the Responses API through @ai-sdk/openai.

From OpenCode documentation, read .

Pi

Put this in ~/.pi/agent/models.json:

{
  "providers": {
    "huggingface": {
      "baseUrl": "https://router.huggingface.co/v1",
      "api": "openai-completions",
      "apiKey": "$HF_TOKEN",
      "models": [
        {
          "id": "moonshotai/Kimi-K2-Thinking"
        }
      ]
    }
  }
}
  • The apiKey field can name an environment variable as $NAME.

From Pi documentation, read .

Codex

Codex speaks only the Responses API, and Hugging Face documents no Responses address. A gateway that offers one can sit in between.

  • Codex speaks the Responses API only: responses is the one supported wire API of a custom provider. Ollama and LM Studio are built in and start with --oss.

From Codex documentation, read .

Claude Code

Claude Code sends Anthropic Messages requests, and Hugging Face documents no such address. A gateway that translates to that API can sit in between.

  • Claude Code sends Anthropic Messages requests to ANTHROPIC_BASE_URL. Anthropic says it does not support routing Claude Code to models other than Claude through any gateway, so some features may not work with another model.

From Claude Code documentation, read .

Other ways to reach it

  • IO.NET, model moonshotai/Kimi-K2-Thinking
  • Kilo Gateway, model moonshotai/kimi-k2-thinking
  • Meganova, model moonshotai/Kimi-K2-Thinking
  • NanoGPT, model moonshotai/kimi-k2-thinking
  • NovitaAI, model moonshotai/kimi-k2-thinking
  • OpenRouter, model moonshotai/kimi-k2-thinking
  • ZenMux, model moonshotai/kimi-k2-thinking
  • Ollama, model hf.co/unsloth/Kimi-K2-Thinking-GGUF:Q4_0

Published results

These are results other people published. Baltor did not run them and does not rank models by them.