Baltor Get started

Models

Kimi K2.7 Code

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

Facts

Released
2026-06-11 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
33.3 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
  • 235,929 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, image in, text out Hugging Face, read
Good for
  • Vision: Hugging Face files it under image-text-to-text Hugging Face, read
  • Coding: the maker's name for the model marks it for code Hugging Face, read
  • Reasoning: OpenRouter lists reasoning controls for it OpenRouter, read

Prices

Prices in US dollars per million tokens, as each source lists them
ProviderInputOutputContextAs ofSource
Inceptron through OpenRouter0.656 USD3.30 USD262,144OpenRouter endpoints, read
Kilo Gateway direct0.656 USD3.30 USD262,144 older than 30 days; check the providermodels.dev, read
OpenRouter direct0.656 USD3.30 USD262,144 older than 30 days; check the providermodels.dev, read
Inceptron direct0.660 USD3.40 USD262,144 older than 30 days; check the providermodels.dev, read
Deep Infra direct0.680 USD3.40 USD262,144 older than 30 days; check the providermodels.dev, read
DeepInfra through OpenRouter0.680 USD3.40 USD262,144OpenRouter endpoints, read
Ambient direct0.690 USD3.49 USD262,144 older than 30 days; check the providermodels.dev, read
CoreWeave direct0.710 USD3.50 USD262,144 older than 30 days; check the providermodels.dev, read
CoreWeave through OpenRouter0.710 USD3.50 USD262,144OpenRouter endpoints, read
StreamLake through OpenRouter0.713 USD3.00 USD256,000OpenRouter endpoints, read
Venice through OpenRouter0.750 USD3.50 USD256,000OpenRouter endpoints, read
ai& direct0.750 USD3.50 USD262,144 older than 30 days; check the providermodels.dev, read
ModelRun through OpenRouter0.850 USD3.75 USD262,144OpenRouter endpoints, read
SiliconFlow direct0.859 USD3.80 USD262,144 older than 30 days; check the providermodels.dev, read
SiliconFlow through OpenRouter0.859 USD3.80 USD262,144OpenRouter endpoints, read
Novita through OpenRouter0.912 USD3.84 USD262,144OpenRouter endpoints, read
Abacus direct0.950 USD4.00 USD262,144 older than 30 days; check the providermodels.dev, read
Alibaba through OpenRouter0.950 USD4.00 USD262,144OpenRouter endpoints, read
BaseTen through OpenRouter0.950 USD4.00 USD262,000OpenRouter endpoints, read
Baseten direct0.950 USD4.00 USD262,000 older than 30 days; check the providermodels.dev, read
Cloudflare through OpenRouter0.950 USD4.00 USD262,144OpenRouter endpoints, read
Fireworks through OpenRouter0.950 USD4.00 USD262,144OpenRouter endpoints, read
GMICloud through OpenRouter0.950 USD4.00 USD262,144OpenRouter endpoints, read
HPC-AI direct0.950 USD4.00 USD256,000 older than 30 days; check the providermodels.dev, read
Hugging Face direct0.950 USD4.00 USD262,144 older than 30 days; check the providermodels.dev, read
Moonshot AI through OpenRouter0.950 USD4.00 USD262,144OpenRouter endpoints, read
NanoGPT direct0.950 USD4.00 USD262,144 older than 30 days; check the providermodels.dev, read
Nebius through OpenRouter0.950 USD4.00 USD262,144OpenRouter endpoints, read
Nebius Token Factory direct0.950 USD4.00 USD262,144 older than 30 days; check the providermodels.dev, read
NovitaAI direct0.950 USD4.00 USD262,144 older than 30 days; check the providermodels.dev, read
Ofox direct0.950 USD4.00 USD262,144 older than 30 days; check the providermodels.dev, read
Pioneer direct0.950 USD4.00 USD256,000 older than 30 days; check the providermodels.dev, read
Together AI direct0.950 USD4.00 USD262,144 older than 30 days; check the providermodels.dev, read
Vercel AI Gateway direct0.950 USD4.00 USD256,000 older than 30 days; check the providermodels.dev, read
ZenMux direct0.950 USD4.00 USD262,144 older than 30 days; check the providermodels.dev, read
OpenReason direct1.00 USD4.22 USD262,144 older than 30 days; check the providermodels.dev, read
TensorX direct1.25 USD4.50 USD262,144 older than 30 days; check the providermodels.dev, read
Moonshot AI through OpenRouter1.90 USD8.00 USD262,144OpenRouter endpoints, 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-IQ1_M283 GiB298 GiB300 GiB
UD-IQ2_XXS296 GiB312 GiB313 GiB
UD-IQ2_M296 GiB312 GiB314 GiB
UD-Q2_K_XL316 GiB333 GiB335 GiB
UD-IQ3_S390 GiB411 GiB412 GiB
UD-Q3_K_M432 GiB454 GiB456 GiB
UD-Q3_K_XL432 GiB455 GiB456 GiB
UD-Q4_K_XL544 GiB572 GiB573 GiB

Start it with a local runtime

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

Use it from your harness

Set up for Abacus with the model moonshotai/Kimi-K2.7-Code. 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": {
    "abacus": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Abacus",
      "options": {
        "baseURL": "https://routellm.abacus.ai/v1",
        "apiKey": "{env:ABACUS_API_KEY}"
      },
      "models": {
        "moonshotai/Kimi-K2.7-Code": {
          "name": "Kimi K2.7 Code",
          "limit": {
            "context": 262144,
            "output": 235929
          }
        }
      }
    }
  }
}
  • 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": {
    "abacus": {
      "baseUrl": "https://routellm.abacus.ai/v1",
      "api": "openai-completions",
      "apiKey": "$ABACUS_API_KEY",
      "models": [
        {
          "id": "moonshotai/Kimi-K2.7-Code"
        }
      ]
    }
  }
}
  • The apiKey field can name an environment variable as $NAME.

From Pi documentation, read .

Codex

Codex speaks only the Responses API, and Abacus 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 Abacus 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

Published results

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