{"uid":"cap_fVtMpRyEjNKaXgGyrKzqV","slug":"tanship-payai-console-ocr-api-x402-d1562a0a","name":"Tanship PayAI Console — OCR API (x402)","description":"Payment-gated AI and browser automation API using the x402 protocol. All /v1/* endpoints require USDC payment on Base (eip155:8453) via x402 v2 exact scheme.","url":"https://x402.tanship.dev/v1/ai/ocr","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_91FgGKWQ9T-_f8N08qDd1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts text and structured data from images using optical character recognition, gated by micro-payment via the x402 protocol on Base/USDC.","exampleAgentPrompt":"Can you extract all the text from this image of a scanned invoice? I need the line items, amounts, and vendor name pulled out as structured data.","exampleUseCases":[{"title":"Receipt digitization for expense tracking","prompt":"I have a photo of a restaurant receipt — can you read all the text off it, including the itemized charges and total, so I can log it as an expense?"},{"title":"Scanned form data extraction","prompt":"I've got a scanned PDF page of a paper form with handwritten and printed fields. Can you extract all the text and field values from it?"},{"title":"Screenshot text capture","prompt":"Here's a screenshot of a software error message I can't copy-paste from. Can you read and transcribe all the text visible in the image?"}],"resultDescription":"Returns extracted text and recognized content from the submitted image, likely including raw text output and potentially structured fields, delivered as a JSON response after micro-payment settlement via x402 on Base (USDC).","failureModes":["Payment not included or invalid x402 header returns 402 Payment Required","Image not provided or malformed body returns 400 Bad Request","Unsupported image format or corrupt image may return an error or empty OCR result","Low-quality or illegible image may produce poor or partial text extraction","Rate limits or server errors return 5xx responses"],"whenToPreferThis":"Choose this endpoint when you need pay-per-use OCR with no subscription or API key management, settling micropayments automatically via the x402 protocol on Base/USDC. Ideal for AI agents that process documents on-demand and want frictionless, cryptographically settled billing at $0.008 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:51:17.890Z","isFirstParty":false}