{"x402Version":1,"service":{"name":"schemasure","title":"SchemaSure — structured extraction","description":"Pay-per-call APIs that extract strict, JSON-Schema-valid typed JSON from unstructured text, HTML, or document images. Output is guaranteed to validate against the caller-supplied JSON Schema (Ajv, draft 2020-12) or the request returns a typed error and is not charged (charge-only-on-success). Both production services use x402 V2 with USDC on Base mainnet; the image service is always paid and has no V1 or free route. A legacy V1 text endpoint provides limited free evaluation calls. No signup, API keys, or account dashboard — built for autonomous AI agents.","category":"data-transformation","tags":["x402","structured-output","ai-agents","structured-data","json","extraction","schema","json-schema","text-to-json","image-to-json","ocr","vision","data-cleaning","parsing","llm","agents"],"icon":"https://schemasure.com/icon.svg","homepage":"https://schemasure.com","documentation":"https://schemasure.com/llms.txt","openapi":"https://schemasure.com/openapi.json","pricing":"https://schemasure.com/.well-known/pricing.json","benchmarks":"https://schemasure.com/.well-known/benchmarks.json","version":"0.2.0"},"payment":{"enabled":true,"priceUsd":0.01,"pricing":"$0.01/call, flat, failed calls free","chargeModel":"charge-only-on-success","freeCallsPerWallet":3},"accepts":[{"scheme":"exact","network":"base","maxAmountRequired":"10000","resource":"https://schemasure.com/extract","description":"Turn messy text, HTML, or document images into guaranteed schema-valid JSON, or pay nothing.","mimeType":"application/json","payTo":"0x9876af0F6D8Ed5155Cd02d1ca56D128601612690","maxTimeoutSeconds":60,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","outputSchema":{"type":"object","required":["data","meta"],"properties":{"data":{"description":"Extracted value; guaranteed to validate against the request `schema`."},"meta":{"type":"object","required":["repairs","latencyMs","validated"],"properties":{"repairs":{"type":"integer"},"latencyMs":{"type":"integer"},"validated":{"const":true},"deterministicFields":{"type":"array","items":{"type":"string"}}}}}},"extra":{"name":"USD Coin","version":"2"}}],"resource":{"name":"schemasure: extract_to_schema","description":"Pay-per-call APIs that extract strict, JSON-Schema-valid typed JSON from unstructured text, HTML, or document images. Output is guaranteed to validate against the caller-supplied JSON Schema (Ajv, draft 2020-12) or the request returns a typed error and is not charged (charge-only-on-success). Both production services use x402 V2 with USDC on Base mainnet; the image service is always paid and has no V1 or free route. A legacy V1 text endpoint provides limited free evaluation calls. No signup, API keys, or account dashboard — built for autonomous AI agents.","endpoint":"https://schemasure.com/extract","method":"POST","tags":["x402","structured-output","ai-agents","structured-data","json","extraction","schema","json-schema","text-to-json","image-to-json","ocr","vision","data-cleaning","parsing","llm","agents"],"icon":"https://schemasure.com/icon.svg","inputSchema":{"type":"object","additionalProperties":false,"required":["input","schema"],"properties":{"input":{"type":"string","minLength":1,"description":"Raw unstructured content to extract from (plain text or HTML)."},"inputType":{"type":"string","enum":["text","html","auto"],"default":"auto","description":"How to interpret `input`: plain text, HTML, or auto-detect (default)."},"schema":{"type":"object","description":"JSON Schema (draft 2020-12) that the returned `data` is guaranteed to satisfy."},"options":{"type":"object","additionalProperties":false,"properties":{"maxRepairs":{"type":"integer","minimum":0,"maximum":5,"description":"Max validate->re-prompt repair iterations."},"strict":{"type":"boolean","default":true,"description":"Drop fields not present in the schema."},"deterministic":{"type":"boolean","default":true,"description":"Enable deterministic pre-extraction hints."}}}}},"outputSchema":{"type":"object","required":["data","meta"],"properties":{"data":{"description":"Extracted value; guaranteed to validate against the request `schema`."},"meta":{"type":"object","required":["repairs","latencyMs","validated"],"properties":{"repairs":{"type":"integer"},"latencyMs":{"type":"integer"},"validated":{"const":true},"deterministicFields":{"type":"array","items":{"type":"string"}}}}}},"examples":[{"request":{"input":"Invoice #A-1042 — Acme Corp. Total due: $1,299.00 USD on 2026-08-01.","schema":{"type":"object","additionalProperties":false,"required":["invoiceNumber","total","currency","dueDate"],"properties":{"invoiceNumber":{"type":"string"},"total":{"type":"number"},"currency":{"type":"string","enum":["USD","EUR","GBP"]},"dueDate":{"type":"string","format":"date"}}}},"response":{"data":{"invoiceNumber":"A-1042","total":1299,"currency":"USD","dueDate":"2026-08-01"},"meta":{"repairs":0,"latencyMs":640,"validated":true}}}]},"mcp":{"tool":"extract_to_schema","transport":"stdio","description":"Turn messy text, HTML, or document images into guaranteed schema-valid JSON, or pay nothing."}}