# Inkling Small

> Inkling Small is a low-cost open-weight model from Thinking Machines that accepts text, image and audio. Its benchmark results mostly sit below the registry median, though its value ranking is strong.

Use it with Pydantic AI as `openrouter:thinkingmachines/inkling-small`.

## Spec sheet

- **Family:** Thinking Machines
- **Released:** 30 Jul 2026
- **Weights:** open
- **Context window:** 524,288 tokens
- **Largest response:** 262,144 tokens
- **Accepts:** text, image, audio
- **Tool calling:** yes
- **Knowledge cutoff:** unknown
- **Intelligence index:** 53.2 (rank 75)
- **Price:** $0.45 input, $1.2 output, $0.64 blended per 1M tokens
- **Index points per $:** 83.5 (rank 29)
- **Speed:** 154 tokens/sec (rank 17)
- **Popularity:** rank 166 of 194 by usage
- **Pydantic AI Gateway:** not built in; [bring your own key](https://ai.pydantic.dev/gateway/#bring-your-own-key)

## Benchmarks

| Benchmark | Score | Rank among models tested | What it measures | Source |
| --- | --- | --- | --- | --- |
| Intelligence index | 53.2 | 78 | Our composite of the benchmarks below, 0-100 | Pydantic, from the sources credited below |
| GPQA Diamond | 88.5% | 53 | Graduate-level science questions, multiple choice | Epoch AI (CC BY 4.0) |
| OTIS Mock AIME | 90% | 58 | Competition mathematics problems with exact answers | Epoch AI (CC BY 4.0) |
| FrontierMath | 46.3% | 59 | Original research-level mathematics problems, tiers 1 to 3 | Epoch AI (CC BY 4.0) |
| ARC-AGI-2 | 40.1% | 45 | Abstract visual puzzles that test learning a new rule from a few examples | ARC Prize, via Epoch AI (CC BY 4.0) |
| SimpleQA Verified | 19.1% | 71 | Short factual questions answered from memory, without search | Epoch AI (CC BY 4.0) |
| SciCode | 49.7% | 53 | Scientific programming problems written by researchers | SciCode, via Epoch AI (CC BY 4.0) |
| WebDev Arena | 1406.6 | 61 | Rating from human votes on web apps the models built | LMArena, via Epoch AI (CC BY 4.0) |
| LMArena text | 1414 | 84 | Rating from blind human votes between pairs of chat responses | LMArena (CC BY 4.0) |
| Epoch Capabilities Index | 150.8 | 61 | Epoch AI's own composite across about 40 benchmarks; shown for comparison, not part of our index | Epoch AI (CC BY 4.0) |

## Providers and prices

US dollars per million tokens.

| Provider | Gateway | Pydantic AI string | Input | Cached input | Output |
| --- | --- | --- | --- | --- | --- |
| OpenRouter | BYOK | `openrouter:thinkingmachines/inkling-small` | $0.45 | $0.1 | $1.2 |

## Example code

### hello.py

Ask Inkling Small a question with a Pydantic AI agent and print the answer. Run it with uv run hello.py.

```python
# /// script
# dependencies = ["pydantic-ai"]
# ///
import os

from pydantic_ai import Agent

os.environ['OPENROUTER_API_KEY'] = '...'

agent = Agent('openrouter:thinkingmachines/inkling-small', instructions='Be concise, reply with one sentence.')

result = agent.run_sync('Where does "hello world" come from?')
print(result.output)
```

### structured_output.py

Get validated, typed output from Inkling Small by giving the agent a Pydantic model. Run it with uv run structured_output.py.

```python
# /// script
# dependencies = ["pydantic-ai"]
# ///
import os

from pydantic import BaseModel
from pydantic_ai import Agent

os.environ['OPENROUTER_API_KEY'] = '...'


class CityLocation(BaseModel):
    city: str
    country: str


agent = Agent('openrouter:thinkingmachines/inkling-small', output_type=CityLocation)

result = agent.run_sync('Where were the olympics held in 2012?')
print(result.output)
#> city='London' country='United Kingdom'
```

### tools.py

Give Inkling Small two tools to call, one of which reads the agent's dependencies. Run it with uv run tools.py.

```python
# /// script
# dependencies = ["pydantic-ai"]
# ///
import os
import random

from pydantic_ai import Agent, RunContext

os.environ['OPENROUTER_API_KEY'] = '...'

agent = Agent(
    'openrouter:thinkingmachines/inkling-small',
    deps_type=str,
    instructions="You're a dice game, roll the die and see if it matches the user's guess.",
)


@agent.tool_plain
def roll_dice() -> str:
    """Roll a six-sided die and return the result."""
    return str(random.randint(1, 6))


@agent.tool
def get_player_name(ctx: RunContext[str]) -> str:
    """Get the player's name."""
    return ctx.deps


result = agent.run_sync('My guess is 4', deps='Anne')
print(result.output)
```

### streaming.py

Stream Inkling Small's reply to the terminal as it is generated. Run it with uv run streaming.py.

```python
# /// script
# dependencies = ["pydantic-ai"]
# ///
import asyncio
import os

from pydantic_ai import Agent

os.environ['OPENROUTER_API_KEY'] = '...'

agent = Agent('openrouter:thinkingmachines/inkling-small')


async def main():
    async with agent.run_stream('Explain prompt caching in three bullet points.') as response:
        async for text in response.stream_text(delta=True):
            print(text, end='', flush=True)


asyncio.run(main())
```

### pax.sh

Chat with Inkling Small in your terminal using pax, the TUI for pydantic-ai-harness. Coming soon.

```sh
export OPENROUTER_API_KEY='...'

uvx pax --model 'openrouter:thinkingmachines/inkling-small'
```

### pi.sh

Use Inkling Small as the model behind the pi coding agent, with your own OpenRouter key.

```sh
# npm install -g @earendil-works/pi-coding-agent
export OPENROUTER_API_KEY='...'

pi --model 'openrouter/thinkingmachines/inkling-small'
```

### codex.sh

Run OpenAI's Codex CLI on Inkling Small, which OpenRouter serves over an OpenAI-compatible API.

```sh
# npm install -g @openai/codex
export OPENROUTER_API_KEY='...'

codex --model 'thinkingmachines/inkling-small' \
  -c model_provider='openrouter' \
  -c model_providers.openrouter.name='OpenRouter' \
  -c model_providers.openrouter.base_url='https://api.openrouter.example/v1' \
  -c model_providers.openrouter.env_key='OPENROUTER_API_KEY'
```

### ai_sdk.ts

Call Inkling Small from TypeScript with the Vercel AI SDK.

```ts
// npm install ai @ai-sdk/openai-compatible
import { createOpenAICompatible } from '@ai-sdk/openai-compatible'
import { generateText } from 'ai'

process.env.OPENROUTER_API_KEY = '...'

const openrouter = createOpenAICompatible({
  name: 'openrouter',
  baseURL: 'https://api.openrouter.example/v1',
  apiKey: process.env.OPENROUTER_API_KEY,
})

const { text } = await generateText({
  model: openrouter('thinkingmachines/inkling-small'),
  system: 'Be concise, reply with one sentence.',
  prompt: 'Where does "hello world" come from?',
})
console.log(text)
```

## About Inkling Small

Inkling Small is an open-weight model from Thinking Machines, released July 2026. It accepts text, image and audio input, supports tool calling and reasoning mode, and offers a 524k token context window. Input costs $0.45 per million tokens and output $1.20, below the registry median blended price.

Benchmark results are mostly below the median. Its intelligence index is 53.2, 78th of 114, against a median of 59.5. It scores 88.5% on GPQA Diamond, near the median of 89.8%, but only 19.1% on SimpleQA Verified, 71st of 76. Its 83.5 intelligence points per dollar rank 29th of 194.

Structured output is not supported, and the model is served only through OpenRouter. It suits budget-conscious work where multimodal input matters more than factual recall or top accuracy.

**Strengths**

- Accepts text, image and audio input, with tool calling and reasoning mode
- Blended price $0.64 per million tokens, below the $1.01 median
- 83.5 intelligence points per dollar, 29th of 194
- 524k token context window and 262k maximum response length

**Weaknesses**

- Intelligence index 53.2, 78th of 114, below the 59.5 median
- SimpleQA Verified 19.1%, 71st of 76, against a 46.5% median
- Available from one provider only, OpenRouter

**Best for:** Cost-sensitive agents needing tool calling and multimodal input, where factual recall matters less.

Prices come from [genai-prices](https://github.com/pydantic/genai-prices), in US dollars per million tokens. Benchmark scores come from Epoch AI and LMArena (CC BY 4.0); the index and its sources are described at https://models.pydantic.dev/methodology.md. Data built 2026-11-25. Compare with other models: https://models.pydantic.dev/models.md
