Schematron V2 Small
inference.net's Schematron V2 Small joins the catalog through BYOK: a 3B model that turns messy HTML into schema-conforming JSON, with a 128K-token context, at $0.05 / $0.23 per million input / output tokens.
inference-net/schematron-v2-small is inference.net's Schematron V2 Small, a 3B model trained to read raw HTML and return JSON that matches a schema you supply. It is the family's highest-quality option, approaching frontier-model accuracy on complex schemas and long pages. It has a 128K-token context and takes no instructions: the schema alone drives extraction, so describe ambiguous fields in the schema itself, keep temperature at 0, and strip scripts and boilerplate from the HTML first.
import { createAnyRouter } from "@anyr/ai-sdk-provider"
import { generateObject } from "ai"
import { z } from "zod"
const anyrouter = createAnyRouter()
const { object } = await generateObject({
model: anyrouter("inference-net/schematron-v2-small"),
schema: z.object({ title: z.string(), price: z.number() }),
prompt: html, // the cleaned page HTML
temperature: 0,
})
console.log(object)anyr loginSchematron V2 Small is BYOK-only. Add an inference.net key under Dashboard → BYOK; AnyRouter charges nothing for a BYOK route and inference.net bills you at its own rate.
Playbooks: AI SDK, OpenAI SDK, playground.
Looking for the full catalog?Muốn xem toàn bộ danh mục?想看完整目录? Browse all modelsXem tất cả model浏览全部模型.