OCR API Demo

Test the OCR API endpoint and see the raw JSON response

OCR Document Processor

Upload a PDF or image file to extract and render its contents

API Usage Example

JavaScript/Fetch

const formData = new FormData();
formData.append('file', fileInput.files[0]);

fetch('/api/ocr', {
  method: 'POST',
  body: formData
})
.then(response => response.json())
.then(data => console.log(data));

cURL

curl -X POST \
  http://localhost:3000/api/ocr \
  -F 'file=@document.pdf'