Inkling 2 Mini API: Pricing, 1M Context & Ollama Setup Guide

📌 KEY TAKEAWAYSQuick Technical Reference
Release Status
GA on November 21, 2026 via OpenRouter & Ollama
Pricing Structure
$0.08 / $0.35 per 1M tokens (Input/Output)
Context Window
1,050,000 Unified Multimodal Tokens
Architecture Model
26.4B Looped Transformer MoE (~4.2B Active)
Hardware Arbitrage
Bypass 32GB RAM gate via APIVALE Gateway
⚡ Quick Setup Generator
CLI & IDE One-Click Configurator

Select your coding tool and target model to generate instant, zero-login proxy configuration commands.

BASH
# Export APIVALE proxy base URL and API key
export ANTHROPIC_BASE_URL="https://apivale.com/v1"
export ANTHROPIC_API_KEY="sk-apivale-your-api-key"

# Launch Claude Code CLI with target model
claude --model infer/glm-5.3-flash

Released on November 21, 2026 by Thinking Machines Lab (founded by former OpenAI CTO Mira Murati), the inkling 2 mini api establishes an innovative paradigm for cost-efficient autonomous software engineering. Operating as an Apache 2.0 open-weights looped Mixture-of-Experts architecture, this model delivers frontier reasoning across an expansive 1.05M context window.

Quick Resource & Endpoint Index
  • Provider Identifier: thinkingmachines/inkling-2-mini ($0.08 in / $0.35 out per 1M)
  • Context Architecture: 1,050,000 multimodal tokens with prompt caching support
  • Local CLI Deployment: ollama run inkling-2-mini (Requires 32GB+ Unified RAM)
  • Cloud Gateway Access: Connect via APIVALE ($0.20 Free Credit) with PayPal and zero KYC friction
Related Open-Weights & Frontier Agent Guides

Explore adjacent open architectures: review our Kimi K3 vs LongCat 2.0 Analysis, inspect LongCat 2.5 Benchmarks, or examine frontier comparisons in 6.2 Astra vs Opus 5.5.

1. Looped Transformer MoE: 26.4B Weights with 12-Layer Recurrence

The core innovation behind the inkling 2 mini api lies in its recurrent layer-looping mechanism. Traditional transformer models stack linear feed-forward blocks sequentially, linearly scaling parameter memory requirements with depth.

Thinking Machines Lab implemented a 24-layer physical structure where the 12 middle blocks execute three consecutive recurrent passes per forward token computation. Reusing weights across recurrent iterations grants effective 48-layer reasoning depth while retaining a compact 20GB memory footprint:

Architectural MetricInkling 2 MiniInkling 2 SmallClaude Haiku 5.5
Total Parameters26.4 Billion594 BillionUndisclosed Dense
Active Parameters3.4B ~ 5.4B~17 BillionEstimated 12B
Layer Execution24 physical (12 looped 3x)48 linear MoE layersStandard linear
Context Window1,050,000 tokens1,050,000 tokens200,000 tokens
Checkpoint Footprint~20 GB (NVFP4/MXFP8)~394 GB (Sharded)Cloud-only proprietary
Open LicenseApache 2.0Apache 2.0Proprietary API

Independent evaluations on SWE-bench Verified place Inkling 2 Mini at 58.4% resolved, rivaling proprietary models that cost 15x more per token.

2. Official Token Economics: $0.08 Input & $0.35 Output

Evaluating inkling 2 mini api token economics reveals extreme cost deflation for agent loops. At $0.08 per 1M input tokens and $0.35 per 1M output tokens, developers execute continuous codebase indexing at a fraction of legacy frontier pricing:

Model TierInput ($/1M)Output ($/1M)Cache Read ($/1M)10M Token Pipeline
Inkling 2 Mini (Gateway)$0.08$0.35$0.02$1.85
Inkling 2 Small$0.40$1.60$0.10$8.80
GPT-6.2 Sol$2.00$10.00$0.20$44.00
Claude Opus 5.5$15.00$75.00$1.50$330.00
DeepSeek-R1 (APIVALE)$0.14$0.28$0.014$1.82

Compared to Claude Opus 5.5, deploying Inkling 2 Mini cuts raw API expenditures by over 98%, unlocking continuous multi-turn autonomous coding iterations.

3. Hardware Bottlenecks: Ollama Setup vs Cloud Gateway Arbitrage

While the open-weights release enables local execution, hardware requirements present steep entry barriers for developer teams. To execute ollama run inkling-2-mini reliably, systems require specialized memory architectures:

# Pull and initialize Inkling 2 Mini via Ollama
ollama run inkling-2-mini

# Terminal confirmation verifies looped execution
# >>> Loading 26.4B Looped MoE (3.4B active weights, 1.05M buffer)

Local execution constraints highlight critical operational friction:

  • Memory Thresholds: Mixed NVFP4/MXFP8 weights consume 20GB disk space, requiring 32GB unified Apple Silicon memory or 32GB+ workstation VRAM.
  • Context Degradation: Running 1M token contexts locally demands 64GB+ system RAM, causing thermal throttling on portable MacBooks.
  • Infrastructure Costs: Purchasing dedicated 32GB developer laptops costs upwards of $2,800 per engineer.

Provisioning the inkling 2 mini api via cloud gateways bypasses workstation constraints entirely, delivering sub-second TTFT without local hardware lock-in.

4. Interactive Local Hardware vs Gateway Cost Calculator

Measure total ownership expenditure between physical local workstations and elastic cloud gateway routing:

Inkling 2 Mini: Hardware Amortization vs API Gateway Calculator
Click to compare capital expenditures.

5. APIVALE Hybrid Smart Routing & Production Setup

Deploying the inkling 2 mini api inside production pipelines provides resilient agentic execution. Systems route standard code reviews to Inkling 2 Mini, escalating complex proofs to GPT-6.2 Astra or DeepSeek-R1:

import os, requests

class InklingHybridRouter:
    """Production gateway router managing Inkling 2 Mini and domestic fallbacks."""
    def __init__(self):
        self.api_key = os.getenv("APIVALE_API_KEY")
        self.url = "https://apivale.com/v1/chat/completions"
        self.headers = {"Authorization": f"Bearer {self.api_key}", "Content-Type": "application/json"}

    def generate(self, prompt: str, requires_deep_reasoning: bool = False) -> str:
        model = "deepseek/deepseek-r1" if requires_deep_reasoning else "thinkingmachines/inkling-2-mini"
        payload = {
            "model": model,
            "messages": [{"role": "user", "content": prompt}],
            "temperature": 0.2
        }
        try:
            res = requests.post(self.url, headers=self.headers, json=payload, timeout=60)
            if res.status_code == 200:
                return res.json()["choices"][0]["message"]["content"]
        except requests.RequestException:
            pass
        payload["model"] = "qwen/qwen-3.8-max"
        return requests.post(self.url, headers=self.headers, json=payload, timeout=60).json()["choices"][0]["message"]["content"]

Export terminal environment variables to connect Claude Code CLI or Cursor directly:

export OPENAI_BASE_URL="https://apivale.com/v1"
export OPENAI_API_KEY="sk-apivale-prod-key-here"
export MODEL_NAME="thinkingmachines/inkling-2-mini"

6. Frequently Asked Questions

What is Inkling 2 Mini?

Inkling 2 Mini is a 26.4B parameter looped Mixture-of-Experts multimodal open-weights model created by Thinking Machines Lab featuring 1.05M context.

Can I run Inkling 2 Mini locally with Ollama?

Yes, run ollama run inkling-2-mini on hardware with 32GB unified Apple Silicon memory or 32GB+ dedicated VRAM for stable execution.

What are the API token prices for Inkling 2 Mini?

Cloud providers charge $0.08 per 1M input tokens and $0.35 per 1M output tokens, cutting expenses by 98% compared to proprietary frontier models.

What is the difference between Inkling 2 Mini and Inkling 2 Small?

Mini features 26.4B looped weights optimized for local and low-latency workflows, while Small deploys a 594B architecture for dense cloud reasoning.

How do I connect Inkling 2 Mini to Claude Code or Cursor via APIVALE?

Configure your OpenAI base URL to https://apivale.com/v1, pass your APIVALE key, and target model identifier thinkingmachines/inkling-2-mini.

🎁 ZERO-CARD FREE TRIAL ACTIVE
⚡ Slash Coding Agent Token Costs by 80% with APIVALE

Zero credit card required. Register in 10s to claim 100,000 Free Tokens ($0.20) for instant testing in our Web Playground or via Cursor / Claude Code CLI. Test DeepSeek-V4.1, Qwen 3.8, and GLM-5.3 completely free before deciding to recharge!

⚡100,000 Free Starter Tokens (Zero Credit Card Required)
🧪Instant Online & CLI Testing (DeepSeek / Qwen / GLM)
🎁+50% First Deposit Bonus (Deposit $5 → Get $7.50 When Ready)
💳PayPal & Global Cards (Instant 0s Activation, Zero KYC)
✓ Zero KYC • No forced payments • Tokens never expire • Start testing 100% free
Alex Rivera
About Alex Rivera

Alex Rivera specializes in distributed gateway architecture, multi-model latency arbitrage, and token cost economics for autonomous agent infrastructure.