Image to Text API
Pricing
from $1.60 / 1,000 image reads
Image to Text API
Image to text: OCR with line and word positions and confidence scores. $0.002 per image OCR result; start extra; usage included; failed results uncharged.
Image to Text API
Pricing
from $1.60 / 1,000 image reads
Image to text: OCR with line and word positions and confidence scores. $0.002 per image OCR result; start extra; usage included; failed results uncharged.
URL
url
Required
The input URL; null only on the one invalid_input record of a run given no input.
OK
ok
Required
true when the image was read; false with error.
Text
text
Optional
All text read, in reading order: lines by a newline, paragraphs by a blank line. An image with no readable text gives an empty string and is charged — the read was done.
Lines
lines
Optional
With granularity lines: each line as {text, confidence, box: {x, y, w, h}} in the image's pixels.
Words
words
Optional
With granularity words: each word as {text, confidence, box: {x, y, w, h}} in the image's pixels.
Width
width
Optional
Image width in pixels, after EXIF orientation.
Height
height
Optional
Image height in pixels, after EXIF orientation.
Error
error
Optional
{code, message} when ok is false.
Paragraphs
paragraphs
Optional
With granularity paragraphs: text, mean word confidence and pixel box for each TSV paragraph.
markdown
Optional
Optional escaped Markdown of the OCR text; no generated headings.
confidence
Optional
Optional mean kept-word confidence (0–100); null when no kept words.