OCR: Optical Character Recognition

Our API provides a feature to extract characters from images.

Extract text from images using OCR.

Performs optical character recognition (OCR) to extract text from images, enabling text-based analysis, data extraction, and automation workflows from visual data.

post

/v1/ocr

Authorizations
Body
mimeTypestring · enum
Options: application/pdf, image/gif, image/tiff, image/jpeg, image/png, image/bmp, image/webp, text/html
documentany ofrequired
pagesany of
Responses
curl -L \
  --request POST \
  --url 'https://api.aimlapi.com/v1/ocr' \
  --header 'Authorization: Bearer JWT' \
  --header 'Content-Type: application/json' \
  --data '{"mimeType":"application/pdf","pages":{"start":1,"type":"start"}}'

No body

Last updated

Was this helpful?