# Inkling 2 Small

Agents, coding assistants, and chat over text and images. Thinking Machines' open-weights Inkling 2 Small for agents, coding, and image understanding. Served on GraphN managed inference behind an OpenAI-compatible API as `inkling-2-small`.

## Overview

Inkling 2 Small is Thinking Machines' open-weights multimodal model. It accepts text and images and generates text. Thinking Machines describes it for developers building agentic and tool-use systems, coding assistants, chatbots, and retrieval-augmented applications, and for general instruction-following. It is a 48-layer decoder with a sparse mixture-of-experts backbone, routing each token to 8 of 384 experts.

## Strengths

- Text and image input in one model
- Tool calling with adjustable reasoning effort
- 128K-token served context

## Use cases

- Coding assistants and agentic tool use
- Questions over documents, screenshots, and charts

## Good to know

Text and image input only; no video or audio. At most five images per request. The model card's context window is 1M tokens; this deployment serves 131,072. Thinking is on unless turned off, and the reasoning counts against max_tokens: with a small budget the whole budget can go to reasoning, returning empty content with finish_reason "length". Turn thinking off or allow a few thousand output tokens.

## Specifications

- **Type**: Chat
- **Context**: 128K context
- **Parameters**: 594B total, 17B active (MoE), NVFP4 weights
- **License**: Apache-2.0
- **Family**: Inkling
- **Weights**: thinkingmachines/Inkling-2-Small
- **Pricing**: Input $0.30/1M · Output $1.00/1M

## API access

### curl

```bash
curl https://model.graphn.ai/v1/chat/completions \
  -H "Authorization: Bearer $GRAPHN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "inkling-2-small",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
```

### Python

```python
import os

from openai import OpenAI

client = OpenAI(base_url="https://model.graphn.ai/v1", api_key=os.environ["GRAPHN_API_KEY"])

response = client.chat.completions.create(
    model="inkling-2-small",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)
```

### TypeScript

```typescript
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://model.graphn.ai/v1",
  apiKey: process.env.GRAPHN_API_KEY,
});

const response = await client.chat.completions.create({
  model: "inkling-2-small",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(response.choices[0].message.content);
```

### CLI

```bash
graphn model chat inkling-2-small -m "What is GraphN?"
```

### Function SDK

```python
@function
async def ask(question: str) -> str:
    return await chat.complete(question, model="inkling-2-small")
```

[Start free](https://graphn.ai/signup?next=%2Fplayground%3Fmodel%3Dinkling-2-small)

[Model card](https://huggingface.co/thinkingmachines/Inkling-2-Small) · [Managed inference](https://graphn.ai/) · [Pricing](https://graphn.ai/pricing) · [Inference quickstart](https://graphn.ai/docs/inference-quickstart)
