extract_text
Runs OCR over an image or PDF you upload.Returns
include_blocks=True, each block carries the recognised line and where it sits on the
page:
.txt asset, so you can serve or re-read it
later without running OCR again:
fetch_text
For an asset already in Dreep, read its text instead of re-uploading the file. The result is cached after the first read, so repeat calls don’t re-run OCR.
Under the hood this is just the asset’s delivery URL with
format=txt, which is why it
costs no upload.
Still processing
OCR on a long PDF can outlive the request. The API answers202 while it finishes, which
the SDK raises as DreepProcessingError: