ModelsthinkingmachinesInkling-2-Mini
providerthinkingmachines /

Inkling-2-Mini

27 DZD in 105 DZD out 5.25 DZD cached/ 1M tokens

Thinking Machines Lab's first looped transformer: a 26.4B Mixture-of-Experts with 3.4B active parameters whose middle layers run three times per token. Reads text, images and PDFs across a 1M-token context, reasons by default and can switch reasoning off — built for agents, coding assistants and document work at low cost.

Public1048576JSONPDF
Inkling-2-Mini
Capabilities
  • Tools
  • Vision
  • PDF input
  • Reasoning
  • Structured output
Reasoning
On by defaultreasoning_effort
  • none
  • low
  • medium
  • high
  • xhigh

Can be turned off

ArchitectureLooped sparse Mixture-of-Experts
Context Window1,048,576 tokensShared by input and output · up to 1,048,576 output tokens

Use Inkling-2-Mini in VS Code, Cursor and Antigravity

DEVUP Code, the DEVUP AI extension, is free to install. Requests are paid from your DEVUP balance.

Explore DEVUP Code

Inkling 2 Mini

Introducing Inkling 2 Mini

Inkling 2 Mini is the smallest model in Thinking Machines Lab's Inkling 2 line, and the lab's first looped transformer. It reads text, images and PDFs and writes text, with a context of 1,048,576 tokens.

Its defining trick is that the middle of the network runs three times for every token. Of 26.4B parameters only 3.4B are active per token, but because those middle layers are applied three times, each token gets the compute of roughly 5.4B active parameters. Thinking Machines describes the effect as letting the model "reason longer without writing its reasoning down" — it reaches answers in fewer visible tokens, especially on agentic coding.

It is aimed at agents and tool use, coding assistants, chatbots and retrieval-augmented generation. Thinking Machines released it on 20 November 2026 with open weights under Apache 2.0.


At a glance

Model typeMultimodal looped transformer, sparse Mixture-of-Experts
Total parameters26.4B
Active per token3.4B (about 5.4B effective, counting the three passes)
Layers24 stored, 48 applied per token
Experts8 of 128 per token
AttentionHybrid local and global
NumericsNVFP4, last layers MXFP8
InputText, images, PDF
OutputText
Maximum context size1,048,576 tokens
Maximum output1,048,576 tokens
ReasoningOn by default, can be switched off
Released20 November 2026
LicenseApache 2.0

Prompt and reply come out of one shared budget of 1,048,576 tokens.


Getting started

BASH
curl https://api.devupai.com/v1/chat/completions \
  -H "Authorization: Bearer $DEVUP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "thinkingmachines/Inkling-2-Mini",
    "messages": [
      { "role": "user", "content": "Write a Python function that merges overlapping time intervals, with tests." }
    ]
  }'

Python, using the OpenAI client:

PYTHON
from openai import OpenAI
import os

client = OpenAI(
    api_key=os.environ["DEVUP_API_KEY"],
    base_url="https://api.devupai.com/v1",
)

response = client.chat.completions.create(
    model="thinkingmachines/Inkling-2-Mini",
    messages=[
        {"role": "user", "content": "Write a Python function that merges overlapping time intervals, with tests."}
    ],
)

print(response.choices[0].message.content)

Node.js:

JAVASCRIPT
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.DEVUP_API_KEY,
  baseURL: "https://api.devupai.com/v1",
});

const response = await client.chat.completions.create({
  model: "thinkingmachines/Inkling-2-Mini",
  messages: [
    { role: "user", content: "Write a Python function that merges overlapping time intervals, with tests." },
  ],
});

console.log(response.choices[0].message.content);

Reasoning

By default the model thinks before it answers, at high effort. The thinking is returned separately from content, and its size appears in usage.completion_tokens_details.reasoning_tokens, billed as output.

Turning it off

reasoning_effort: "none" gives a direct answer. Four runs of a short timetable question, two through this API and two against the underlying service:

TEXT
reasoning_tokens: 0   completion_tokens: 9   content: 2h 35m

All four identical, all correct, nothing but the answer in content.

Thinking Machines notes that its minimum setting does not fully disable reasoning. On short questions we saw none; on harder ones some deliberation may remain, so keep a few hundred tokens of headroom in max_tokens even with none.

Effort levels

none, low, medium, high and xhigh are accepted. Above none they behave as one setting. On the same problem, our capability test measured:

LevelReasoning tokens
low441
medium508 (repeats: 475, 429, 508)
high490
xhigh481

Three runs at medium alone vary by 79 tokens — more than the distance between levels. There is no ladder to climb: pick reasoning on or reasoning off.

This fits the design. Much of the model's extra thinking happens inside the looped layers, before any token is written, so the visible reasoning is already short and does not stretch with effort.


Images

Images are sent as image_url parts, by link or as base64. Thinking Machines recommends each side be between 40 and 4,096 pixels.

BASH
curl https://api.devupai.com/v1/chat/completions \
  -H "Authorization: Bearer $DEVUP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "thinkingmachines/Inkling-2-Mini",
    "messages": [{
      "role": "user",
      "content": [
        { "type": "text", "text": "List the line items and amounts on this receipt." },
        { "type": "image_url", "image_url": { "url": "https://example.com/receipt.jpg" } }
      ]
    }]
  }'

Document reading is a strength: Thinking Machines reports 92.8% on OmniDocBench v1.6, and 76.5% on ScreenSpot Pro for locating interface elements in screenshots.


PDF documents

PDF files are accepted as file parts:

PYTHON
import base64

with open("contract.pdf", "rb") as f:
    pdf = base64.b64encode(f.read()).decode()

response = client.chat.completions.create(
    model="thinkingmachines/Inkling-2-Mini",
    max_tokens=4000,
    messages=[{
        "role": "user",
        "content": [
            {"type": "text", "text": "What is the notice period for termination, and in which clause?"},
            {"type": "file", "file": {
                "filename": "contract.pdf",
                "file_data": f"data:application/pdf;base64,{pdf}",
            }},
        ],
    }],
)

Tool calling

All three ways of steering a call work: tool_choice left on auto, set to "required", or naming one function.

PYTHON
tools = [{
    "type": "function",
    "function": {
        "name": "run_tests",
        "description": "Run the test suite for a path and return failures",
        "parameters": {
            "type": "object",
            "properties": {"path": {"type": "string"}},
            "required": ["path"],
        },
    },
}]

response = client.chat.completions.create(
    model="thinkingmachines/Inkling-2-Mini",
    max_tokens=4000,
    messages=[{"role": "user", "content": "Check whether the parser module still passes its tests."}],
    tools=tools,
    tool_choice="required",
)

for call in response.choices[0].message.tool_calls:
    print(call.function.name, call.function.arguments)

In our tests every mode returned finish_reason: "tool_calls" with valid arguments, after a short deliberation of 54 to 73 reasoning tokens.

For agents, add guard rails. Thinking Machines warns that this model is less dependable than larger ones at following detailed tool-use instructions, may take destructive actions without asking, and may misreport what it did. Run it in a sandbox, require confirmation for irreversible steps, and verify results rather than trusting its summary.


Structured output

json_schema and json_object are both honoured.

BASH
curl https://api.devupai.com/v1/chat/completions \
  -H "Authorization: Bearer $DEVUP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "thinkingmachines/Inkling-2-Mini",
    "max_tokens": 2000,
    "messages": [
      { "role": "user", "content": "Pull out the sender, the date and the requested action: \"From Nadia, 3 Dec: please renew the SSL certificate before Friday.\"" }
    ],
    "response_format": {
      "type": "json_schema",
      "json_schema": {
        "name": "request",
        "strict": true,
        "schema": {
          "type": "object",
          "properties": {
            "sender": { "type": "string" },
            "date": { "type": "string" },
            "action": { "type": "string" }
          },
          "required": ["sender", "date", "action"],
          "additionalProperties": false
        }
      }
    }
  }'

Make sure finish_reason is stop before you parse; a reply cut off by the cap is not valid JSON.


Prompt caching

A prefix that repeats across requests is served from cache and billed at the cached-input rate. Order messages so the fixed material — instructions, tool schemas, documents — comes first and the changing request comes last.


How looping works

Inkling 2 Mini architecture

The network stores 24 layers. The middle 12 share their weights across three passes, so a token goes through 48 layer applications in total. Thinking Machines found that looping the middle of the network — where more abstract processing happens — helped more than looping the final layers on 27 of 28 evaluations.

Some consequences worth knowing:

  • Fewer visible tokens. Part of the reasoning happens inside the loops, so chains of thought come out shorter than a same-sized model would need.
  • More compute per token than the active count suggests. Each token costs about 5.4B active parameters of compute, not 3.4B.
  • Knowledge does not loop. Extra passes help long-context and multi-step tasks, but factual recall depends on parameter count, so it stays at the level of a small model.
  • Native low precision. Most weights were trained and are served in NVFP4, with the last layers in MXFP8, so there is no conversion loss from a higher-precision original.

Thinking Machines also tested whether looping hides reasoning from oversight. Its preliminary finding is that, at this scale, looping adds capability without a meaningful loss in how readable and monitorable the chain of thought remains.


Benchmarks

Results reported by Thinking Machines Lab.

AreaBenchmarkScore
IndexArtificial Analysis Index v5.020.1
IndexVals Index v2.246.5%
CodingSWE-Bench Verified (bash only)79.2%
CodingSWE-Bench Pro v2 (Hard)77.9%
CodingSWE-Bench Multilingual73.7%
CodingTerminal Bench v2.171.6%
CodingDeepSWE v1.148.2%
Search and toolsBrowseComp (with compaction)79.0%
Search and toolsDeepSearchQA (with compaction)85.3%
Search and toolsMCP Atlas (public)82.7%
Knowledge workGDPVal-AA v2.11319
FinanceVals Finance Index50.1%
Visual perceptionScreenSpot Pro (original / with Python)76.5% / 87.7%
Visual perceptionOmniDocBench v1.692.8%
Visual reasoningMMMU Pro (Standard 10)74.9%
STEM reasoningARC-AGI v1 / v284.5% / 49.3%
Long contextLongBench v266.9%
Long contextMRCR v2 8-needle (256K–512K)46.4%
Instruction followingComplexConstraints v1.133.4%
FactualityAA-Omniscience v1.1 (non-hallucination rate)63.4%

Thinking Machines places it first among open-weight models under 100B total parameters on DeepSWE v1.1 and the Vals Index. The weak spots are visible in the same table: complex instruction following and factuality.


Common pitfalls

SymptomCauseFix
A coding or debugging task runs on and onThe model can fall into long reasoning loopsCap max_tokens and the number of agent turns
high does not think more than lowEffort levels above none are not gradedChoose reasoning on or off
A confident but wrong factFactual recall is the weakest area of a small modelGround answers with retrieval, verify facts
An agent ran a destructive stepThe model may act without askingSandbox it and confirm irreversible actions
Stilted or mixed-language repliesQuality drops outside EnglishPrefer English prompts, or a larger model
Empty content, finish_reason: "length"Reasoning used up the capRaise max_tokens, or send reasoning_effort: "none"

Limits to keep in mind

Thinking Machines is direct about the trade-offs. Inkling 2 Mini is less capable than Inkling 2 Small on most evaluations, with the widest gap on factual recall and knowledge-heavy questions, and it may state wrong facts with confidence. It is weaker at multi-turn chat and complex instruction following, can be overly cautious on mental-health topics, and its quality drops outside English.

Like any language model it can hallucinate, carry biases from its training data, and its knowledge ends at its training cutoff.

For anything consequential — and in particular medical, legal or safety-critical decisions — evaluate it on your own task, add safeguards in your application, and keep a person reviewing the output.


Licensing

Weights are released under Apache 2.0. Use is also subject to Thinking Machines Lab's Model Acceptable Use Policy.


References