# Inkling

> Open-weights model from Thinking Machines with a 1M-token context window and text, image and audio input. Most benchmark scores sit below the registry median.

Use it with Pydantic AI as `fireworks:inkling`.

## Spec sheet

- **Family:** Thinking Machines
- **Released:** 15 Jul 2026
- **Weights:** open
- **Context window:** 1,040,000 tokens
- **Largest response:** 471,859 tokens
- **Accepts:** text, image, audio
- **Tool calling:** yes
- **Knowledge cutoff:** unknown
- **Intelligence index:** 53.2 (rank 75)
- **Price:** $1 input, $4.05 output, $1.76 blended per 1M tokens
- **Index points per $:** 30.2 (rank 65)
- **Speed:** 86 tokens/sec (rank 58)
- **Popularity:** rank 128 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.3% | 55 | Graduate-level science questions, multiple choice | Epoch AI (CC BY 4.0) |
| OTIS Mock AIME | 88.9% | 59 | Competition mathematics problems with exact answers | Epoch AI (CC BY 4.0) |
| FrontierMath | 33.3% | 69 | Original research-level mathematics problems, tiers 1 to 3 | Epoch AI (CC BY 4.0) |
| ARC-AGI-2 | 36.5% | 47 | Abstract visual puzzles that test learning a new rule from a few examples | ARC Prize, via Epoch AI (CC BY 4.0) |
| SimpleQA Verified | 40.3% | 51 | Short factual questions answered from memory, without search | Epoch AI (CC BY 4.0) |
| SciCode | 47% | 61 | Scientific programming problems written by researchers | SciCode, via Epoch AI (CC BY 4.0) |
| WebDev Arena | 1410 | 60 | Rating from human votes on web apps the models built | LMArena, via Epoch AI (CC BY 4.0) |
| APEX-Agents | 33.8% | 53 | Long professional tasks (banking, consulting, law) passed on the first attempt | Mercor, via Epoch AI (CC BY 4.0) |
| LMArena text | 1444 | 48 | Rating from blind human votes between pairs of chat responses | LMArena (CC BY 4.0) |
| Epoch Capabilities Index | 148.4 | 68 | 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 |
| --- | --- | --- | --- | --- | --- |
| Fireworks | BYOK | `fireworks:inkling` | $1 | $0.17 | $4.05 |
| OpenRouter | BYOK | `openrouter:thinkingmachines/inkling` | $1 | $0.17 | $4.05 |
| Together AI | BYOK | `together:thinkingmachines/Inkling` | $1 | $0.17 | $4.05 |

## Example code

### hello.py

Ask Inkling 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', 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 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', 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 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',
    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'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')


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 in your terminal using pax, the TUI for pydantic-ai-harness. Coming soon.

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

uvx pax --model 'fireworks:inkling'
```

### pi.sh

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

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

pi --model 'fireworks/inkling'
```

### codex.sh

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

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

codex --model 'inkling' \
  -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 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'),
  system: 'Be concise, reply with one sentence.',
  prompt: 'Where does "hello world" come from?',
})
console.log(text)
```

## About Inkling

Inkling is an open-weights model from Thinking Machines, released July 2026. It accepts text, image and audio input, has a 1M-token context window, and supports tool calling and a reasoning mode. It does not support structured output. Its intelligence index of 53.2 ranks 78th of 114 and sits below the registry median of 59.5.

Benchmark results are mixed. Its LMArena text rating is slightly above median and its GPQA Diamond score is close to it. Results on FrontierMath and ARC-AGI-2 fall well below the median, and its APEX-Agents score ranks near the bottom. Pricing is $1 per million input tokens and $4.05 per million output tokens, with a blended price a little above the registry median.

Inkling fits multimodal work with long inputs, where open weights and tool calling matter more than top scores on hard reasoning tasks. It is available from three providers.

**Strengths**

- Accepts text, image and audio input with a 1M-token context window
- Supports tool calling and a reasoning mode
- LMArena text rating of 1444, 48th of 114, just above median
- Open weights, served by Fireworks, OpenRouter and Together AI

**Weaknesses**

- Intelligence index of 53.2, 78th of 114, below the 59.5 median
- ARC-AGI-2 score of 36.5%, 47th of 68, versus 61.3% median
- No structured output support

**Best for:** Multimodal agents needing long context and tool calling on a moderate budget, where top reasoning scores are not required.

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
