Schematron API
Extract typed, schema-validated JSON directly from raw HTML using Inference.net's hosted Schematron V2 models over /v1/chat/completions, /v1/responses, and /v1/messages. Compare live pricing and throughput tiers across Schematron V2 Turbo and Schematron V2 Small with 128K context windows, default Zero Data Retention, and US data residency. Pair with our structured data extraction solution (/solutions/structured-data-extraction/) and Crawl4AI guide (/content/crawl4ai-complete-guide/).
- Purpose-built HTML-to-JSON extraction with strict JSON Schema adherence
- Ultra-low flat pricing starting at $0.03/1M input and $0.15/1M output tokens
- Hosted on Inference.net with default Zero Data Retention (SOC 2 Type II)
- 128K context window and US data residency via us.api.inference.net
All live Schematron models on Inference.net
Every rate, context limit, and capability below is pulled directly from the live public catalog. Select any model for full specs, live latency benchmarks, and prompt-caching guidance.
| Model | Context | Max output | Input / 1M | Cached / 1M | Output / 1M | Capabilities | Start |
|---|---|---|---|---|---|---|---|
Schematron V2 Turbo inference-net/schematron-v2-turbo | 128K | 8K | $0.03 | $0.03 | $0.15 | Text | Use API |
Schematron V2 Small inference-net/schematron-v2-small | 128K | 4K | $0.05 | $0.05 | $0.23 | Text | Use API |
Call Schematron over OpenAI or Anthropic SDKs
Use the top live model ID (inference-net/schematron-v2-turbo) with the standard OpenAI SDK, curl, or Claude Code over native /v1/messages.
import OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://api.inference.net/v1',
apiKey: process.env.INFERENCE_API_KEY,
})
const completion = await client.chat.completions.create({
model: 'inference-net/schematron-v2-turbo',
messages: [{ role: 'user', content: 'Hello' }],
})import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.inference.net/v1",
api_key=os.environ["INFERENCE_API_KEY"],
)
completion = client.chat.completions.create(
model="inference-net/schematron-v2-turbo",
messages=[{"role": "user", "content": "Hello"}],
)curl https://api.inference.net/v1/chat/completions \
-H "Authorization: Bearer $INFERENCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "inference-net/schematron-v2-turbo",
"messages": [
{ "role": "user", "content": "Hello" }
]
}'Point Claude Code or any Anthropic SDK client at Inference.net with zero proxy setup and full prompt-cache support.
export ANTHROPIC_BASE_URL="https://api.inference.net"
export ANTHROPIC_AUTH_TOKEN="$INFERENCE_API_KEY"
export ANTHROPIC_MODEL='inference-net/schematron-v2-turbo'
export ANTHROPIC_DEFAULT_OPUS_MODEL='inference-net/schematron-v2-turbo'
export ANTHROPIC_DEFAULT_SONNET_MODEL='inference-net/schematron-v2-turbo'
export ANTHROPIC_DEFAULT_HAIKU_MODEL='inference-net/schematron-v2-turbo'
export CLAUDE_CODE_SUBAGENT_MODEL='inference-net/schematron-v2-turbo'
export CLAUDE_CODE_MAX_CONTEXT_TOKENS="128000"
claudeBenchmark, compare, and model Schematron costs
Verify unit economics across prompt-cache hit rates, compare providers, and explore engineering guides for Schematron.
Explore other open-weight model families
Switch across DeepSeek, Kimi, GLM, and the full catalog with one API key and one OpenAI-compatible client.
Frequently asked questions.
Quick answers to help you get started
Inference.net currently serves 2 live Schematron models with transparent pay-as-you-go per-token billing. Input rates start at $0.03 per 1M input tokens ($0.15 per 1M output tokens) on Schematron V2 Turbo. Every rate in the comparison table above pulls directly from the live public catalog.
Schematron V2 models use flat low-cost per-token pricing rather than a separate prompt-cache discount, with cached input reads billed at the standard input rate ($0.03 per 1M tokens on Schematron V2 Turbo). Because HTML-to-JSON extraction runs as single-pass schema inference over distinct pages, pre-clean raw HTML with lxml and review /solutions/structured-data-extraction/ and /content/crawl4ai-complete-guide/ for batch and crawler workflows.
Yes. Point the official OpenAI TypeScript or Python SDK to https://api.inference.net/v1 with your INFERENCE_API_KEY, set model to "inference-net/schematron-v2-turbo", pass your JSON Schema via response_format with temperature 0, and call /v1/chat/completions, /v1/responses, or /v1/messages. See /docs/api/models/schematron/ and /solutions/structured-data-extraction/ for full preprocessing and Batch API examples.
Yes. Schematron V2 Turbo and Schematron V2 Small are hosted directly on Inference.net infrastructure, so Zero Data Retention (ZDR) is enabled by default for new accounts under SOC 2 Type II controls and prompts or extracted JSON outputs are not stored after processing or used for model training. Review our ZDR policy for full details. Both models also support US data residency via https://us.api.inference.net/v1 alongside https://api.inference.net/v1.
Live Schematron models on Inference.net scale up to a 128K-token context window (128,000 tokens) and up to 8K output tokens on Schematron V2 Turbo. Context limits and caching vary by checkpoint, so check each model row above for exact specs and multimodal capabilities. Both Schematron V2 models focus on text-only HTML-to-JSON structured outputs; see /solutions/structured-data-extraction/ and /content/crawl4ai-vs-firecrawl-vs-schematron/ for pipeline comparisons.
Start calling Schematron in minutes
Create a project API key with Zero Data Retention enabled by default on eligible Inference.net-hosted routes and route requests to inference-net/schematron-v2-turbo with pay-as-you-go billing.