[Integrations](https://spiral.ai/integrations) › [Grok](https://spiral.ai/integrations/grok) › [Schematron V2 Small](https://spiral.ai/integrations/grok/schematron-v2-small)

# How to Use Schematron V2 Small in Grok

Schematron V2 Small turns HTML into typed JSON, with particular strength on complex schemas and long pages. Choose it when extraction quality matters most; Schematron V2 Turbo prioritizes throughput.

|  |  |
| --- | --- |
| Model | Schematron V2 Small |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.001228 per run at the default inputs. $0.065 per 1M input tokens, $0.299 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Schematron V2 Small in Grok

- Use Schematron V2 Small with the product HTML I supplied. Create a schema for product name, specifications, and availability, then return the extracted record.
- Extract employer, role, location, and requirements from this job-page HTML using Schematron V2 Small. Put the extraction instructions into the schema descriptions.
- Use Schematron V2 Small to extract headline, author, and publication date from this article HTML. Allow missing details to remain empty.
- Process this company-page HTML with Schematron V2 Small. Define a schema for company name, description, and contact details, using only information present.
- Use Schematron V2 Small on this product HTML. Describe the current sale price precisely in the schema so it is distinguished from the original price.

## How to set up Schematron V2 Small in Grok

Pick the way that suits you. Each takes about two minutes.

### Use the Grok connector

1. **Add a custom connector**: In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.

```text
https://api.spiral.ai/mcp
```

2. **Sign in to Spiral and approve**: Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.

3. **Check that it is connected**: Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.

### Use the Spiral skill

1. **Send Grok this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Schematron V2 Small**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "openrouter",
    "model": "inference-net/schematron-v2-small",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: Grok finds Schematron V2 Small on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/grok

## Schematron V2 Small tools and prices

- [Inference.net: Schematron V2 Small](https://spiral.ai/tools/openrouter/inference-net/schematron-v2-small) (OpenRouter): Up to $0.001228 per run at the default inputs. $0.065 per 1M input tokens, $0.299 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| seed |  | — |  |
| stop |  | — |  |
| min_p | 0 to 1 | — |  |
| top_k | 0 to … | — |  |
| top_p | 0 to 1 | — |  |
| max_tokens | 1 to 8192 | — | The most output tokens to generate. |

## What can you do with Schematron V2 Small in Grok?

Turn supplied webpage HTML into organized product, job, or article records. Ask the chat agent to define a clear extraction schema and explain any missing information.

### Product catalog ingestion

Extract product names, current sale prices, specifications, and availability from product-page HTML into consistent records.

### Job posting collection

Turn job-page HTML into records containing employer, role, location, requirements, and advertised compensation. Allow missing compensation to remain null.

### Article metadata indexing

Extract headlines, authors, publication dates, and article links from supplied HTML for a searchable content index.

### Company directory enrichment

Convert company-page HTML into records of names, descriptions, locations, and contact details explicitly present on each page.

### Recurring product monitoring

Have an agent fetch tracked pages, extract current product details, and compare the resulting records with earlier observations.

### Parser replacement evaluation

Run extraction against saved HTML alongside an existing parser. Compare individual fields before replacing parsing rules.

## Overview

- [OpenRouter](https://spiral.ai/providers/openrouter)
- [All Grok guides](https://spiral.ai/integrations/grok)

## Schematron V2 Small in other agents

- [Amp](https://spiral.ai/integrations/amp/schematron-v2-small)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/schematron-v2-small)
- [Claude](https://spiral.ai/integrations/claude-desktop/schematron-v2-small)
- [Claude Code](https://spiral.ai/integrations/claude-code/schematron-v2-small)
- [Cline](https://spiral.ai/integrations/cline/schematron-v2-small)
- [Codex](https://spiral.ai/integrations/codex/schematron-v2-small)
- [Cursor](https://spiral.ai/integrations/cursor/schematron-v2-small)
- [Devin](https://spiral.ai/integrations/devin/schematron-v2-small)
- [dots](https://spiral.ai/integrations/dots/schematron-v2-small)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/schematron-v2-small)
- [Gemini](https://spiral.ai/integrations/gemini/schematron-v2-small)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/schematron-v2-small)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/schematron-v2-small)
- [goose](https://spiral.ai/integrations/goose/schematron-v2-small)
- [Grok Build](https://spiral.ai/integrations/grok-build/schematron-v2-small)
- [Hermes](https://spiral.ai/integrations/hermes/schematron-v2-small)
- [Instinct](https://spiral.ai/integrations/instinct/schematron-v2-small)
- [Manus](https://spiral.ai/integrations/manus/schematron-v2-small)
- [Muse](https://spiral.ai/integrations/muse/schematron-v2-small)
- [Muse Code](https://spiral.ai/integrations/muse-code/schematron-v2-small)
- [n8n](https://spiral.ai/integrations/n8n/schematron-v2-small)
- [Notion](https://spiral.ai/integrations/notion/schematron-v2-small)
- [OpenClaw](https://spiral.ai/integrations/openclaw/schematron-v2-small)
- [opencode](https://spiral.ai/integrations/opencode/schematron-v2-small)
- [Perplexity](https://spiral.ai/integrations/perplexity/schematron-v2-small)
- [Raycast](https://spiral.ai/integrations/raycast/schematron-v2-small)
- [VS Code](https://spiral.ai/integrations/vscode/schematron-v2-small)
- [Windsurf](https://spiral.ai/integrations/windsurf/schematron-v2-small)
- [Zapier](https://spiral.ai/integrations/zapier/schematron-v2-small)

## More Grok guides

- [Sakana Namazu](https://spiral.ai/integrations/grok/sakana-namazu)
- [Schematron V2 Turbo](https://spiral.ai/integrations/grok/schematron-v2-turbo)
- [Ripple 65B Preview](https://spiral.ai/integrations/grok/ripple-65b-preview)
- [Seed 2.0 Lite](https://spiral.ai/integrations/grok/seed-2-0-lite)
- [Relace Search](https://spiral.ai/integrations/grok/relace-search)
- [Seed 2.0 Mini](https://spiral.ai/integrations/grok/seed-2-0-mini)

## Questions about Schematron V2 Small in Grok

**Can Grok use Schematron V2 Small?**

Yes. Add Spiral to Grok as an MCP server, and Grok can find and run Schematron V2 Small like any built-in tool.

**How much does Schematron V2 Small cost in Grok?**

Up to $0.001228 per run at the default inputs. $0.065 per 1M input tokens, $0.299 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Grok plan is separate.

**Do I need an OpenRouter account to use Schematron V2 Small in Grok?**

No. Spiral runs Schematron V2 Small on its own OpenRouter account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Schematron V2 Small in Grok?**

About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.

**Does Grok wait while Schematron V2 Small runs?**

Schematron V2 Small runs in the background. Grok starts the run, checks on it and gives you the text, json when it's ready.

**What is Schematron V2 Small best used for?**

Extracting typed records from HTML, especially when pages are long or the desired schema is complex. Product catalogs, job postings, and article metadata are useful starting points.

**How should I write extraction instructions?**

Put the instructions into schema descriptions. Specify which value to extract when several appear, such as the current sale price versus the original price; conversational directions do not steer extraction.

**Can Schematron V2 Small open a webpage itself?**

It needs HTML supplied by your agent or crawler. It does not fetch web addresses or render JavaScript, so your agent must obtain the page content before extraction.

**How much HTML and JSON can it handle?**

The maker lists a 128K-token context window and a 4K-token maximum output. Split large extraction jobs into smaller sections when the requested JSON would exceed that output allowance.

**What improves extraction accuracy?**

Use temperature zero, remove scripts and styles, and keep the HTML that contains the desired information. Add precise schema descriptions wherever multiple values could fit the same field.

