---
title: "Schematron V2 Small | AI Models | Inference.net"
description: "Run Schematron V2 Small (3B, InferenceNet) on Inference.net. 128K context. structured outputs. Deploy with an OpenAI-compatible API and pay-per-token pricing."
url: "https://inference.net/models/schematron-v2-small/"
---

InferenceNet Structured Output Model

# Schematron V2 Small

A specialized extraction model that turns messy HTML into clean, schema-conforming JSON. Schematron V2 Small delivers the family's highest extraction quality — approaching frontier-model accuracy on complex schemas and long pages at a small fraction of the cost.

[Get Started](https://inference.net/signin/) [Documentation](https://docs.inference.net/workhorse-models/schematron)

Model details

Developed by InferenceNet

Size 3B parameters

Context window 125K tokens

Max output 4K tokens

Model API pricing Per 1M tokens

Input $0.05

Cache read $0.05

Output $0.23

[See all pricing](https://inference.net/pricing/)

```
import OpenAI from "openai";
import { z } from "zod";
import { zodResponseFormat } from "openai/helpers/zod";

const openai = new OpenAI({
  baseURL: "https://api.inference.net/v1",
  apiKey: "<YOUR_API_KEY>",
});

// Define the shape you want back. There is no prompt — the schema is
// the only instruction the model needs.
const Listing = z.object({
  title: z.string(),
  price: z.number(),
  city: z.string(),
});

// Messy HTML in, conforming JSON out.
const html = `<div class="listing">
  <h2>Brompton C Line</h2>
  <span class="p">£1,795</span>
  <p>Used · London</p>
</div>`;

const response = await openai.chat.completions.parse({
  model: "inference-net/schematron-v2-small",
  messages: [{ role: "user", content: html }],
  response_format: zodResponseFormat(Listing, "listing"),
  temperature: 0,
});

console.log(response.choices[0].message.parsed);
// { title: "Brompton C Line", price: 1795, city: "London" }
```

How it works Schema-constrained decoding — output is valid JSON by construction, not by retry.

Input · raw HTML

```
<div class="listing">
  <h2>Brompton C Line</h2>
  <span class="p">£1,795</span>
  <p>Used · London</p>
</div>
```

Input · JSON Schema

```
{ "title":  "string",
  "price":  "number",
  "city":   "string" }
```

Schematron V2 Small

Output · conforming JSON Always valid

```
{
  "title": "Brompton C Line",
  "price": 1795,
  "city":  "London"
}
```

## Related models

[See all models](https://inference.net/models/)

Model

[Kimi K3 1024K input context Vision Tools Reasoning $3.00 / $15.00 2 variants](https://inference.net/models/kimi-k3/)

[MiniMax M3.1 Flash 977K input context Vision Tools Reasoning $0.10 / $0.50](https://inference.net/models/minimax-m3.1-flash/)

[Nemotron 3 Super 256K input context Tools $0.102 / $0.48](https://inference.net/models/nemotron-3-super/)

[Schematron V2 Turbo 125K input context $0.03 / $0.15](https://inference.net/models/schematron-v2-turbo/)

## Start building with Schematron V2 Small today

Serverless, OpenAI-compatible, and billed per token. No commitments.

[Get Started](https://inference.net/signin/) [Read the docs](https://docs.inference.net/workhorse-models/schematron)
