Schematron V2 Small
Schematron V2 Small is a 3B-parameter HTML-to-JSON extraction model from Inference.net.
Input per 1M
$0.0525
Output per 1M
$0.2415
Context
128Ktokens
Per 1M tokens
$0.0525 · $0.2415
Context
128Ktokens
opencode.json
export ANTHROPIC_BASE_URL="https://deference.si"
export ANTHROPIC_AUTH_TOKEN="$DEFERENCE_API_KEY"
export CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY="1"
claude --model inference-net/schematron-v2-smallmodel = "inference-net/schematron-v2-small"
model_provider = "deference"
web_search = "disabled"
[model_providers.deference]
name = "Deference"
base_url = "https://deference.si/v1"
wire_api = "responses"
env_key = "DEFERENCE_API_KEY"# Cursor › Settings › Models
OpenAI API Key: your sk-df-… key
Override OpenAI Base URL: https://deference.si/v1
Add model: inference-net/schematron-v2-small{
"provider": {
"deference": {
"npm": "@ai-sdk/openai-compatible",
"options": { "baseURL": "https://deference.si/v1", "apiKey": "{env:DEFERENCE_API_KEY}" },
"models": { "inference-net/schematron-v2-small": { "limit": { "context": 128000, "output": 4096 } } }
}
}
}curl https://deference.si/v1/chat/completions \
-H "Authorization: Bearer $DEFERENCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "inference-net/schematron-v2-small",
"messages": [{ "role": "user", "content": "Say hello in one sentence." }]
}'import os
from openai import OpenAI
client = OpenAI(base_url="https://deference.si/v1", api_key=os.environ["DEFERENCE_API_KEY"])
completion = client.chat.completions.create(
model="inference-net/schematron-v2-small",
messages=[{"role": "user", "content": "Say hello in one sentence."}],
)
print(completion.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://deference.si/v1", apiKey: process.env.DEFERENCE_API_KEY });
const completion = await client.chat.completions.create({
model: "inference-net/schematron-v2-small",
messages: [{ role: "user", content: "Say hello in one sentence." }],
});
console.log(completion.choices[0].message.content);Needs an API keyGet one
Pricing and limits
- Cache read$0.0525per 1M tokens
- Max output4,096tokens
OpenRouter's price plus OpenRouter's 5% platform fee. Deference adds no markup.