Skip to content

OCR (documents)

Extract text from images and PDFs (including multi-page PDFs) and get markdown back.

POST https://api.norlen.io/v1/ocr
Authorization: Bearer YOUR_API_KEY

multipart/form-data — send the file to process.

FieldTypeRequiredDescription
filefileyesImage (png, jpg, webp, bmp, tiff) or pdf — up to 20MB
cleanstringnotrue strips layout/detection markup; defaults to false
Terminal window
curl https://api.norlen.io/v1/ocr \
-H "Authorization: Bearer $NORLEN_API_KEY" \
-F file="@document.pdf" \
-F clean="true"
{
"text": "# Document title\n\nExtracted content as markdown..."
}

Multi-page PDFs are processed in sequence and concatenated into the same text.