{"success":true,"data":{"id":"svc_ocr_20","slug":"ocr","name":"OCR — Image to Text","description":"Extract text from images using Tesseract OCR. Send image as image_base64 (PNG/JPEG/WebP/TIFF/BMP, max 10 MB decoded). Returns text and confidence (0-100, where 80+ is reliable). Set language to Tesseract code: 'eng' (default), 'deu' (German), 'fra' (French), 'chi_sim' (Chinese Simplified), 'jpn' (Japanese), 'ara' (Arabic). Use for invoices, receipts, scanned documents, or screenshots with text.","category":"text","endpoint":"https://agentsvc.io/api/v1/proxy/ocr","price_usdc":0.008,"latency_p99_ms":4000,"input_schema":{"type":"object","required":["image_base64"],"properties":{"image_base64":{"type":"string","description":"Base64-encoded image. Supported formats: PNG, JPEG, WebP, TIFF, BMP. Max 10 MB decoded. For best results use high-contrast images with clear text."},"language":{"type":"string","default":"eng","description":"Tesseract language code. Default: 'eng' (English). Other supported: 'deu' (German), 'fra' (French), 'spa' (Spanish), 'ita' (Italian), 'por' (Portuguese), 'rus' (Russian), 'chi_sim' (Chinese Simplified), 'jpn' (Japanese), 'ara' (Arabic), 'kor' (Korean), 'nld' (Dutch), 'pol' (Polish). Use '+' to combine: 'eng+deu'."},"psm":{"type":"integer","default":3,"description":"Page Segmentation Mode. 3 = fully automatic (default, best for most images). 6 = single uniform block of text. 7 = single text line. 11 = sparse text (find text anywhere). 13 = raw line (no line ordering). Use 6 or 7 for forms/labels."}}},"output_schema":{"type":"object","required":["text","confidence","language","processed_at"],"properties":{"text":{"type":"string","description":"Full extracted text from the image, with line breaks preserved"},"confidence":{"type":"number","description":"Overall OCR confidence score (0-100). Above 70 is considered reliable."},"language":{"type":"string","description":"Language code used for recognition"},"word_count":{"type":"integer","description":"Number of words extracted"},"char_count":{"type":"integer","description":"Number of characters extracted (excluding whitespace)"},"processing_ms":{"type":"integer","description":"Time taken for OCR processing in milliseconds"},"processed_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp"}},"example":{"text":"Invoice #12345\nDate: April 10, 2026\n\nBill To:\nJohn Smith\n123 Main Street\n\nTotal Due: $1,250.00","confidence":94,"language":"eng","word_count":18,"char_count":72,"processing_ms":1840,"processed_at":"2026-04-10T14:00:00.000Z"}},"is_active":true,"provider":"agentsvc.io","tags":["ocr","image","text","extract","tesseract","scan","document","invoice","receipt"],"method":"POST","example_input":{"image_base64":"<base64 of a PNG/JPG>","language":"eng"},"price_atomic":"8000","price_display":"$0.008 USDC","try_url":"https://agentsvc.io/api/v1/try/ocr","try_limit_per_day":1,"info_url":"https://agentsvc.io/api/v1/services/ocr","page_url":"https://agentsvc.io/services/ocr","curl_example":"curl -X POST https://agentsvc.io/api/v1/proxy/ocr -H \"Content-Type: application/json\" -d '{\"image_base64\":\"<base64 of a PNG/JPG>\",\"language\":\"eng\"}'","status":{"ok":true,"latency_ms":458,"checked_at":"2026-10-05T09:35:13.144Z"}},"payment":{"protocol":"x402","x402_versions_accepted":[1,2],"scheme":"exact","network":"eip155:8453","network_v1":"base","chain_id":8453,"asset":"USDC","asset_contract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","asset_decimals":6,"eip712_domain":{"name":"USD Coin","version":"2","chainId":8453,"verifyingContract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"},"pay_to":"0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27","facilitator":"https://facilitator.payai.network","request_header_v2":"PAYMENT-SIGNATURE","request_header_v1":"X-PAYMENT","requirements_v2":"base64 JSON in the PAYMENT-REQUIRED response header of the 402","requirements_v1":"JSON body of the 402 (accepts[0])","receipt_header":"PAYMENT-RESPONSE (and X-PAYMENT-RESPONSE): base64 JSON with transaction hash","accounts_required":false,"api_keys_required":false,"settlement":"per call, on-chain, after the service succeeded. Failed calls are never charged."},"links":{"catalog":"https://agentsvc.io/api/v1/services","openapi":"https://agentsvc.io/openapi.json","llms_txt":"https://agentsvc.io/llms.txt","llms_full_txt":"https://agentsvc.io/llms-full.txt","agents_md":"https://agentsvc.io/AGENTS.md","skill_md":"https://agentsvc.io/SKILL.md","status":"https://agentsvc.io/api/v1/status","docs":"https://agentsvc.io/docs","mcp_server":"https://agentsvc.io/mcp-server.mjs","discovery":"https://agentsvc.io/.well-known/x402","agent_card":"https://agentsvc.io/.well-known/agent-card.json"}}