{"uid":"cap_KOMMcVJZw42wDJmRzaDwM","slug":"schemasure-image-extraction-68f36126","name":"SchemaSure Image Extraction","description":"Extract strict, JSON-Schema-valid typed JSON from a PNG, JPEG, or WebP document image. Failed extraction calls are not settled. Always-paid x402 V2 image API.","url":"https://schemasure.com/v2/extract-image","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"image":{"type":"object","required":["data","mimeType"],"properties":{"data":{"type":"string","minLength":1,"description":"Base64-encoded image bytes without a data-URL prefix.","contentEncoding":"base64"},"mimeType":{"enum":["image/png","image/jpeg","image/webp"],"type":"string","description":"Declared image media type; it must match the decoded file signature."}},"additionalProperties":false},"schema":{"type":"object","description":"JSON Schema (draft 2020-12) that the returned `data` is guaranteed to satisfy."},"options":{"type":"object","properties":{"strict":{"type":"boolean","default":true,"description":"Drop fields not present in the schema."},"maxRepairs":{"type":"integer","maximum":5,"minimum":0,"description":"Max validate->re-prompt repair iterations."}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_l7w98g_EWizgRw3IrxBaZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts structured, JSON-Schema-valid typed JSON from PNG, JPEG, or WebP document images using a pay-per-call x402 API","exampleAgentPrompt":"Extract the invoice number, date, vendor name, line items, and total amount from this JPEG invoice image and return the result as strictly typed JSON matching my schema — use up to 3 repair attempts if needed.","exampleUseCases":[{"title":"Invoice data extraction for accounting","prompt":"I have a JPEG scan of an invoice — can you pull out the invoice number, issue date, vendor name, line items with quantities and unit prices, and the total due, and give me back clean JSON that matches my accounting schema? Allow up to 2 repair iterations if the first pass doesn't validate."},{"title":"ID card digitization pipeline","prompt":"I've got a PNG photo of a driver's license — please extract the full name, date of birth, address, license number, and expiry date into a structured JSON object that strictly matches my identity verification schema, dropping any fields not in the schema."},{"title":"Scanned form data capture","prompt":"Here's a WebP image of a filled-out patient intake form — extract all the fields including name, date of birth, insurance provider, and chief complaint into typed JSON conforming to my medical intake schema, with strict mode on so no extra fields slip through."}],"resultDescription":"A structured JSON object that is guaranteed to satisfy the provided JSON Schema (draft 2020-12), containing typed values extracted from the image. The response only includes fields defined in the schema when strict mode is enabled. If extraction fails to validate within the allowed repair iterations, the call is not settled and no charge is applied.","failureModes":["Image MIME type does not match decoded file signature — request rejected","Base64 image data is malformed or empty — parsing error","Provided JSON Schema is invalid or malformed — schema error","Extracted data cannot be made to conform to the schema within maxRepairs iterations — call not settled, no charge","Unsupported image format (e.g. GIF, TIFF) — rejected with unsupported MIME type error","Image content is too low quality or illegible for reliable extraction — may return partial or failed result"],"whenToPreferThis":"Choose this endpoint when you need to extract structured, typed, schema-validated JSON from image files (PNG, JPEG, WebP) such as scanned documents, photos of forms, receipts, or ID cards. It is especially valuable when downstream systems require strict JSON Schema conformance, since the API guarantees the output satisfies your provided schema or does not charge. Prefer it over generic OCR services when typed fields, data validation, and schema enforcement are required. The pay-only-on-success model (failed extractions are not settled) makes it low-risk for batch document processing pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:31:52.489Z","isFirstParty":false}