Skip to main content
All posts
Coding Agents

Running 2.8T Kimi K3.1 Pro Uncensored (1M Context + Vision) in Claude Code, OpenCode, and Roo Code

How to pair moonshotai/kimi-k3.1-pro-uncensored ($1.95 in / $6.90 out, 1M context, native Vision) as your Architect/Opus tier alongside GLM-5.3 and DeepSeek V4.1 Flash subagents.

Key Engineering Takeaways

  • 2.8T Multimodal Uncensored Flagship: moonshotai/kimi-k3.1-pro-uncensored is now live on bf16.ai with a full 1,048,576-token input window, 131,072 max output tokens, native image + text input, structured JSON tool calling, and selectable reasoning_effort (low, high, max).
  • Priced Below Official Output Rates: Output tokens settle at $6.90 / 1M (below the $10.00 / 1M official standard output rate), with $1.95 / 1M input and $0.28 / 1M cached prefix reads.
  • Three-Tier Agent Routing: Keep kimi-k3.1-pro-uncensored on your Opus / Architect slot, zai-org/glm-5.3-uncensored ($1.35 / $4.20) on your daily coding loop, and deepseek/deepseek-v4.1-flash-uncensored ($0.26 / $1.00) on parallel subagents to control session spend.

1. Where a 2.8T Multimodal Uncensored Model Moves the Needle

Most day-to-day repository edits do not need a 2.8-trillion-parameter Mixture-of-Experts model. When a coding agent is grepping files, running vitest, or applying mechanical search-and-replace diffs, a fast Flash model or zai-org/glm-5.3-uncensored finishes the turn faster and at a fraction of the cost.

Where smaller or text-only models hit a ceiling is at the architectural and multimodal boundary:

  1. Simultaneous Visual + 1M-Token Repository Synthesis: Feeding full Figma/UI screenshots, flamegraphs, or network waterfall captures alongside 400,000+ tokens of TypeScript/Rust source code in a single turn without losing cross-file invariants.
  2. Defensive Security & Binary Reconstruction: Analyzing decompiled Electron, .NET, or native C/C++ artifacts that you own — where standard commercial APIs routinely sever the stream mid-answer over heuristic cyber-risk triggers.
  3. Nuanced Multilingual & Literary Localization: Translating full-length game scripts, historical archives, or medical/legal corpora inside a 1M context window without unwanted tone sanitization or dropped paragraphs.

Three-tier model routing across Kimi K3.1 Pro Uncensored, GLM-5.3 Uncensored, and DeepSeek V4.1 Flash Uncensored on bf16.ai

Three-tier routing on bf16.ai: reserve 2.8T Kimi K3.1 Pro Uncensored for Architect/Opus turns, run daily diffs on GLM-5.3 Uncensored, and fan parallel exploration subagents onto DeepSeek V4.1 Flash Uncensored.

2. Wiring Kimi K3.1 Pro into Claude Code’s /model opus Slot

Claude Code natively separates its model tiers via environment variables (ANTHROPIC_DEFAULT_OPUS_MODEL, ANTHROPIC_DEFAULT_SONNET_MODEL, ANTHROPIC_DEFAULT_HAIKU_MODEL, and CLAUDE_CODE_SUBAGENT_MODEL).

By binding moonshotai/kimi-k3.1-pro-uncensored to the Opus slot while keeping zai-org/glm-5.3-uncensored as your default Sonnet loop and deepseek/deepseek-v4.1-flash-uncensored on subagents, you only pay 2.8T flagship rates when you explicitly type /model opus for a hard architectural design or visual audit:

export BF16_API_KEY="sk-bf16-v1-..."

env -u ANTHROPIC_API_KEY \
  ANTHROPIC_BASE_URL="https://api.bf16.ai" \
  ANTHROPIC_AUTH_TOKEN="$BF16_API_KEY" \
  ANTHROPIC_MODEL="zai-org/glm-5.3-uncensored" \
  ANTHROPIC_DEFAULT_OPUS_MODEL="moonshotai/kimi-k3.1-pro-uncensored" \
  ANTHROPIC_DEFAULT_SONNET_MODEL="zai-org/glm-5.3-uncensored" \
  ANTHROPIC_DEFAULT_HAIKU_MODEL="deepseek/deepseek-v4.1-flash-uncensored" \
  CLAUDE_CODE_SUBAGENT_MODEL="deepseek/deepseek-v4.1-flash-uncensored" \
  claude

Remember that ANTHROPIC_BASE_URL on bf16.ai is https://api.bf16.ai with no /v1 suffix — Claude Code appends /v1/messages and /v1/messages/count_tokens automatically.

3. OpenCode Configuration with Ctrl+T Reasoning Effort Variants

In OpenCode (~/.config/opencode/opencode.json), moonshotai/kimi-k3.1-pro-uncensored supports both image attachments (attachment: true, input: ["text", "image"]) and interactive reasoning-effort cycling (low → high → max via Ctrl+T):

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "bf16": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "bf16.ai",
      "options": {
        "baseURL": "https://api.bf16.ai/v1",
        "apiKey": "{env:BF16_API_KEY}"
      },
      "models": {
        "moonshotai/kimi-k3.1-pro-uncensored": {
          "name": "Kimi K3.1 Pro 2.8T (Uncensored)",
          "attachment": true,
          "reasoning": true,
          "tool_call": true,
          "modalities": { "input": ["text", "image"], "output": ["text"] },
          "limit": { "context": 1048576, "output": 131072 },
          "variants": {
            "low": { "reasoningEffort": "low" },
            "high": { "reasoningEffort": "high" },
            "max": { "reasoningEffort": "max" }
          }
        },
        "zai-org/glm-5.3-uncensored": {
          "name": "GLM-5.3 Flagship (Uncensored)",
          "reasoning": true,
          "tool_call": true,
          "modalities": { "input": ["text"], "output": ["text"] },
          "limit": { "context": 1048576, "output": 131072 }
        },
        "deepseek/deepseek-v4.1-flash-uncensored": {
          "name": "DeepSeek V4.1 Flash (Uncensored)",
          "attachment": true,
          "reasoning": true,
          "tool_call": true,
          "modalities": { "input": ["text", "image"], "output": ["text"] },
          "limit": { "context": 1048576, "output": 65536 }
        }
      }
    }
  }
}

4. Live Catalog & Cost Comparison Across All Active Models

Every model in the bf16.ai catalog runs with Zero-Prompt Retention (ZDR), 1,048,576 input context, and pure USD per-token settlement:

Model IDModalitiesContext / Max OutInput / Cached / Output (per 1M)Ideal Agent Slot
moonshotai/kimi-k3.1-pro-uncensoredText + Image + Tools1M / 131K$1.95 / $0.28 / $6.90Opus / Architect, complex visual specs, uncut localization
zai-org/glm-5.3-uncensoredText + Tools1M / 131K$1.35 / $0.25 / $4.20Primary Sonnet coding loop, SAST & binary security audits
zai-org/glm-5.3-flash-uncensoredText + Image + Tools1M / 65K$0.30 / $0.065 / $1.12Multimodal UI inspection & structured JSON extraction
deepseek/deepseek-v4.1-flash-uncensoredText + Image + Tools1M / 65K$0.26 / $0.045 / $1.00Parallel subagents, browser loops & fast diffs

For full step-by-step setup guides across 24 supported coding agents, autonomous bots, and desktop clients — with automatic API key substitution when signed in — visit /docs/clients.