ocr_auto
Extract text from images and PDFs, automatically splitting large PDFs or compressing images to stay within size limits.
Instructions
Smart OCR that automatically handles oversized files. For PDFs: splits into chunks, OCRs each, and joins results. For images: compresses to fit within size limit before OCR. Use this when you don't know if the file exceeds the size limit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | No | API tier: 'free' (1MB limit, US servers) or 'pro' (5MB limit, EU/GDPR) | free |
| language | No | OCR language code (e.g., 'eng', 'ger', 'fre'). Use 'auto' with Engine 2. | eng |
| file_path | Yes | Path to the image or PDF file to OCR | |
| ocr_engine | No | Engine 1: Faster, Asian languages. Engine 2: Auto-detect, better accuracy. | |
| output_path | No | Optional path to save extracted text (.txt) or full result (.json) | |
| output_format | No | Output format: 'txt' (text only) or 'json' (full API response) | txt |