{"slug":"1gateway-dev-v1-convert-ocr-8c9ae0","title":"Use when an agent must read text from a scan, photo or screenshot","host":"1gateway.dev","method":"GET","resource":"https://1gateway.dev/v1/convert/ocr","category":"image","description":"Use when an agent must read text from a scan, photo or screenshot: scanned PDFs (embedded page images) or PNG/JPEG/WebP up to 5 MB, Korean and English, tables kept as Markdown. Up to 3 pages per call. Input: url via GET, or POST a file (multipart 'file', raw body, or JSON contentBase64). Output: JSO","price_listed":0.015,"price_asked":0.015,"state":"answering","state_label":"Answering","checks_7d":4,"answered_7d":4,"latency_ms_median":224,"reported_calls_30d":4,"reported_payers_30d":1,"networks":["eip155:137","eip155:143","eip155:42161","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"contentBase64":"","url":"https://raw.githubusercontent.com/tesseract-ocr/tessdoc/main/images/eurotext.png"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"additionalProperties":false,"properties":{"contentBase64":{"description":"File bytes as base64 (MCP argument or POST JSON; alternative to url; max 5 MB decoded)","maxLength":7000000,"type":"string"},"url":{"description":"Public http(s) URL of a PNG/JPEG/WebP image or a scanned PDF (≤ 5 MB). For uploads use POST.","maxLength":2048,"pattern":"^https?://","type":"string"}},"required":[],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"additionalProperties":true,"properties":{"bytes":{"type":"integer"},"costNeurons":{"type":["number","null"]},"markdown":{"type":"string"},"model":{"type":"string"},"notes":{"items":{"type":"string"},"type":"array"},"pages":{"items":{"additionalProperties":true,"properties":{"chars":{"type":"integer"},"confidence":{"type":"string"},"page":{"type":"integer"}},"type":"object"},"type":"array"},"pagesRead":{"type":"integer"},"sourceType":{"type":"string"},"totalPages":{"type":"integer"},"warnings":{"items":{},"type":"array"}},"required":["markdown","sourceType","pagesRead","totalPages","pages","bytes","model","costNeurons","warnings","notes"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.015,"price_match":true,"latency_ms":259,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.015,"price_match":true,"latency_ms":186,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.015,"price_match":true,"latency_ms":206,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.015,"price_match":true,"latency_ms":242,"error":null},{"day":"2026-11-06","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.015,"price_match":true,"latency_ms":201,"error":null},{"day":"2026-11-05","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.015,"price_match":true,"latency_ms":190,"error":null},{"day":"2026-11-04","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.015,"price_match":true,"latency_ms":217,"error":null},{"day":"2026-11-03","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.015,"price_match":true,"latency_ms":225,"error":null},{"day":"2026-11-02","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.015,"price_match":true,"latency_ms":227,"error":null},{"day":"2026-11-01","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.015,"price_match":true,"latency_ms":245,"error":null},{"day":"2026-10-31","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.015,"price_match":true,"latency_ms":223,"error":null}],"description_full":"Use when an agent must read text from a scan, photo or screenshot: scanned PDFs (embedded page images) or PNG/JPEG/WebP up to 5 MB, Korean and English, tables kept as Markdown. Up to 3 pages per call. Input: url via GET, or POST a file (multipart 'file', raw body, or JSON contentBase64). Output: JSON markdown, pages with confidence, warnings. PDFs with selectable text: use /v1/convert/markdown. Example: ?url=<Tesseract eurotext.png sample>","last_updated":"2026-11-23T00:52:36.044Z","schemes":["exact"]}