---
title: "Inkling 2 Small"
description: "An open-weights model from Thinking Machines, released November 2026, with a 1M-token context window and image input. It stands out on ARC-AGI-2 and on low blended price, and sits mid-table on overall intelligence."
canonical: https://pydantic.dev/models/list/inkling-2-small/
---

# Inkling 2 Small

> An open-weights model from Thinking Machines, released November 2026, with a 1M-token context window and image input. It stands out on ARC-AGI-2 and on low blended price, and sits mid-table on overall intelligence.
>
> Markdown copy of [https://pydantic.dev/models/list/inkling-2-small/](https://pydantic.dev/models/list/inkling-2-small/). Index for agents: [llms.txt](https://pydantic.dev/models/llms.txt)

**Agents: use the API for model information.** It answers a question in one request, where the pages need several.

- Choose a model for an agent: `POST https://pydantic.dev/models/api/select` with a JSON body such as `{"description": "what the agent does"}`. It returns up to five ranked models with reasons. Format: [select.md](https://pydantic.dev/models/select.md)
- Search models by name: `GET https://pydantic.dev/models/api/search?query=<text>`
- List, filter and sort models: `GET https://pydantic.dev/models/api/models`, for example `?weights=open&max_price=2&sort=efficiency`
- One model in full: `GET https://pydantic.dev/models/api/models/<slug>`
- Any other question about the models: `GET https://pydantic.dev/models/api/ask?query=<question>`

Add `intent=<intent>&stack=<stack>&harness=<harness>` to the query string of all but the single model. An `OPTIONS` request to any endpoint returns its schema. The same five are tools of the MCP server at `https://pydantic.dev/models/mcp`. More: [usage.md](https://pydantic.dev/models/usage.md)

Use it with Pydantic AI as `fireworks:inkling-2-small`.

## Spec sheet

- **Type:** writes text
- **Family:** Thinking Machines
- **Released:** 5 Nov 2026
- **Weights:** open
- **Context window:** 1,048,576 tokens
- **Largest response:** 262,144 tokens
- **Accepts:** text, image
- **Tool calling:** yes
- **Knowledge cutoff:** unknown
- **Intelligence index:** 57.1 (rank 58)
- **Scores updated:** 2026-12-04
- **Price:** $0.3 input, $1 output, $0.47 blended per 1M tokens
- **Index points per $:** 120.2 (rank 22)
- **Speed:** 114 tokens/sec (rank 33)
- **Popularity:** rank 32 of 222 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 | 57.1   | 58                       | Our composite of the benchmarks below, 0-100                                   | Pydantic, from the sources credited below |
| ARC-AGI-2          | 81.7%  | 23                       | Abstract visual puzzles that test learning a new rule from a few examples      | ARC Prize, via Epoch AI (CC BY 4.0)       |
| SciCode            | 52.3%  | 43                       | Scientific programming problems written by researchers                         | SciCode, via Epoch AI (CC BY 4.0)         |
| APEX-Agents        | 46.8%  | 44                       | Long professional tasks (banking, consulting, law) passed on the first attempt | Mercor, via Epoch AI (CC BY 4.0)          |
| LMArena text       | 1402.8 | 94                       | Rating from blind human votes between pairs of chat responses                  | LMArena (CC BY 4.0)                       |

## Providers and prices

US dollars per million tokens.

| Provider              | Gateway | Pydantic AI string                          | Input | Cached input | Output |
| --------------------- | ------- | ------------------------------------------- | ----- | ------------ | ------ |
| Cloudflare Workers AI | BYOK    | –                                           | $0.3  | $0.1         | $1     |
| Fireworks             | BYOK    | `fireworks:inkling-2-small`                 | $0.3  | $0.03        | $1     |
| Together AI           | BYOK    | `together:thinkingmachines/Inkling-2-Small` | $0.3  | $0.03        | $1     |

## Use Inkling 2 Small with Pydantic AI

### hello.py

Ask Inkling 2 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['FIREWORKS_API_KEY'] = '...'

agent = Agent('fireworks:inkling-2-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 2 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['FIREWORKS_API_KEY'] = '...'


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


agent = Agent('fireworks:inkling-2-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 2 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['FIREWORKS_API_KEY'] = '...'

agent = Agent(
    'fireworks:inkling-2-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 2 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['FIREWORKS_API_KEY'] = '...'

agent = Agent('fireworks:inkling-2-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

Code with Inkling 2 Small in your terminal using Pax, the Pydantic AI coding agent.

```sh
export FIREWORKS_API_KEY='...'

uv run --from pydantic-ai-pax pax -m 'fireworks:inkling-2-small'
```

### codex.sh

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

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

codex --model 'inkling-2-small' \
  -c model_provider='fireworks' \
  -c model_providers.fireworks.name='Fireworks' \
  -c model_providers.fireworks.base_url='https://api.fireworks.example/v1' \
  -c model_providers.fireworks.env_key='FIREWORKS_API_KEY'
```

### ai_sdk.ts

Call Inkling 2 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.FIREWORKS_API_KEY = '...'

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

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

## About Inkling 2 Small

Inkling 2 Small costs $0.3 per million input tokens and $1 per million output tokens, has a 1M token context window and scores 57.1 on our intelligence index, #58 of 106.

Inkling 2 Small is an open-weights model from Thinking Machines, released November 2026. It accepts text and image input and supports tool calling, structured output and a reasoning mode. It has a 1M-token context window and can return up to 262k tokens in a response. It is served by Cloudflare Workers AI, Fireworks and Together AI.

Its clearest result is ARC-AGI-2, where it scores 81.7%, 23rd of 72 and well above the median of 61.3%. Its overall intelligence index of 57.1 is 61st of 109, slightly below the median of 58.7. Its SciCode score of 52.3% is a little above median. On APEX-Agents, which tests long professional tasks, it scores 46.8%, 46th of 65 against a median of 54.4%.

Pricing is its main practical advantage. At $0.30 per million input tokens and $1 per million output tokens, its blended price of $0.475 is well below the $0.80 registry median, and it ranks 22nd of 222 on intelligence per dollar.

**Strengths**

- 81.7% on ARC-AGI-2, 23rd of 72 and well above the 61.3% median
- Blended price of $0.475 per million tokens, well below the $0.80 median
- 120.2 intelligence points per dollar, 22nd of 222 models
- 1M-token context window with up to 262k output tokens and image input

**Weaknesses**

- 46.8% on APEX-Agents, 46th of 65 and below the 54.4% median
- Intelligence index of 57.1 ranks 61st of 109, slightly below median

**Best for:** Cost-sensitive agents doing abstract reasoning, long-context reading, or mixed text and image tasks rather than professional workflows.

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), Browser Use, our own Pydantic AI benchmarks (CC BY 4.0), and, for decision models, Artificial Analysis and the Jev Decision Index; the index and its sources are described in [the methodology](https://pydantic.dev/models/methodology.md). Data built 2026-12-04. This model from the API: `https://pydantic.dev/models/api/models/inkling-2-small`. Compare it with others: `https://pydantic.dev/models/api/models?slug=inkling-2-small,<other slug>`
