{"uid":"cap_Hy4p1xvQrEKCN3fwegeln","slug":"claim-check-extract-30fcc11a","name":"Claim Check Extract","description":"Grounded verification and extraction for AI agents: fact-check a claim against a source with verbatim quotes, or turn invoices, receipts, job posts and any text into typed JSON. Pay per call over x402, no API key. Daily model quota published at /health.","url":"https://claim-check.agent-utils.workers.dev/v1/extract","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"text":{"type":"string","maxLength":200000},"preset":{"enum":["invoice","receipt","contact","event","job"],"type":"string","description":"Built-in schema to use"},"schema":{"type":"object","description":"Your own JSON Schema (type object with properties), max 8 KB. Used instead of preset."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"data":{"type":"object","description":"Object shaped by the preset or your schema"},"model":{"type":"string"},"preset":{"type":["string","null"]},"modelMs":{"type":"integer"},"textChars":{"type":"integer"}}}}}}},"responseSchema":{"type":"json","example":{"data":{"tax":29.7,"iban":null,"buyer":{"name":"Beta Corp","taxId":null,"address":null},"total":178.2,"seller":{"name":"Acme Tools Ltd","email":null,"taxId":"GB123456789","address":null},"dueDate":"2026-09-30","currency":"EUR","subtotal":148.5,"issueDate":"2026-09-01","lineItems":[{"amount":120,"quantity":1,"unitPrice":120,"description":"Widget Pro"},{"amount":28.5,"quantity":3,"unitPrice":9.5,"description":"Cable"}],"paymentTerms":"bank transfer, 30 days","invoiceNumber":"2026-0142"},"model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","preset":"invoice","modelMs":2100,"textChars":230}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mEBLMDtdCyOqOvv1DYReE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts structured JSON from unstructured text (invoices, receipts, job posts, contacts, events) using a built-in preset or custom schema, paying per call via x402.","exampleAgentPrompt":"Parse this invoice text into structured JSON using the invoice preset — extract the seller, buyer, line items, totals, due date, and invoice number: 'Acme Tools Ltd | Invoice 2026-0142 | Bill to: Beta Corp | Widget Pro x1 @ £120, Cable x3 @ £9.50 | Subtotal £148.50 + VAT £29.70 = £178.20 | Due 2026-09-30, bank transfer 30 days'.","exampleUseCases":[{"title":"Automated invoice data entry","prompt":"Extract all the structured fields from this invoice text using the invoice preset — I need seller name, tax ID, buyer, line items with quantities and prices, subtotal, tax, total, due date, and payment terms: 'Globex Corp | INV-0099 | To: Initech | 5x Gadget @ $40 = $200, 2x Doohickey @ $15 = $30 | Subtotal $230 + Tax $23 = $253 | Due 2026-10-15, net 30'."},{"title":"Job posting structured parsing","prompt":"Turn this job posting into structured JSON using the job preset: 'Senior Backend Engineer at NovaTech — Remote, $140k–$170k, 5+ years Go/Kubernetes required, apply by Nov 1 2026 at jobs@novatech.io'."},{"title":"Receipt expense categorization","prompt":"Parse this receipt into structured data with the receipt preset so I can log it as an expense: 'Starbucks #4412 | 2026-09-15 | 1x Latte $6.50, 1x Blueberry Muffin $4.25 | Total $10.75 | Card ending 4242'."}],"resultDescription":"A JSON object shaped by the chosen preset or custom schema containing all extracted fields (e.g. for invoices: seller, buyer, line items, subtotal, tax, total, due date, currency, invoice number), plus metadata including the model used, processing time in milliseconds, and character count of the input text.","failureModes":["Text exceeds 200,000 character limit — request rejected","Custom schema exceeds 8 KB limit — schema rejected","Model quota exhausted for the day — check /health for current quota","Payment not processed via x402 — 402 response returned","Malformed or ambiguous text yields incomplete extraction with null fields","Unsupported preset value causes validation error"],"whenToPreferThis":"Choose this endpoint when you need to turn free-form document text (invoices, receipts, job postings, contacts, events) into typed, structured JSON without setting up an API key — especially in agentic pipelines that already handle x402 micropayments. It is ideal for one-off or low-volume extraction tasks where pay-per-call is preferable to a subscription. Prefer it over general-purpose LLM calls when you want a deterministic output schema and verbatim grounding from the source text.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:34:11.692Z","isFirstParty":false}