ProductsOCR API

OCR API

Extract printed and handwritten text from images, photos and scans.

1,000 images free every month for each OCR feature

Features

Turn images and documents into text

The OCR API detects and extracts text from images (text detection) and from dense documents such as scans, receipts and forms (document text detection), returning the full text line by line through the images:annotate REST endpoint.

Text detection

Read sparse text in photos, screenshots, signs and product labels with TEXT_DETECTION.

Document text detection

Read dense text in scans, receipts, invoices, forms and contracts with DOCUMENT_TEXT_DETECTION.

Printed and handwritten text

Recognize printed and handwritten text, such as notes, filled-in forms and annotations.

Up to 16 images per request

Send several images in one call, as base64 or a public https:// URL, and get a result for each.

Text line by line

Get the full text of each image in reading order, line by line, ready to search, store or translate.

Dozens of languages

Read text in dozens of languages, including Chinese, Japanese and Korean.

Standard REST and JSON: send images with your API key and get their text back, line by line.

Read the quickstart

Use cases

Where teams use the OCR API

Receipts and invoices

Capture merchants, dates and line items for expense and accounting workflows.

Forms and contracts

Digitize applications, agreements and other paperwork for review and search.

Photos and screenshots

Read signs, labels and on-screen text captured by your users' cameras.

Searchable archives

Turn scanned documents into text you can index and search.

Need the text in another language? Send the extracted text to the Translation API.

Explore Translation API

Quickstart

Read your first image

Create an API key in the Vionex Console, then send an image.

Base URL https://api.vionexlimited.com
Authentication X-Api-Key header, Authorization: Bearer or ?key=
Interface REST images:annotate
  1. Detect text in an image

    Send the image as base64 in image.content and choose TEXT_DETECTION or DOCUMENT_TEXT_DETECTION. The full text, line by line, is in fullTextAnnotation.text and in the first entry of textAnnotations, with its language in locale.

    • Up to 16 images per request
    • Base64 image.content up to 10 MB, or a public https:// URL in image.source.imageUri
    • An image without text returns an empty textAnnotations list
    # On macOS, replace base64 -w0 FILE with base64 -i FILE
    curl -X POST "https://api.vionexlimited.com/v1/images:annotate" \
      -H "X-Api-Key: YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "requests": [{
          "image": {"content": "'"$(base64 -w0 receipt.jpg)"'"},
          "features": [{"type": "DOCUMENT_TEXT_DETECTION"}]
        }]
      }'
    
    Response
    {
      "responses": [
        {
          "textAnnotations": [
            {
              "locale": "en",
              "description": "MEETING NOTES\nRoom 4A · 10:00\n"
            }
          ],
          "fullTextAnnotation": {
            "text": "MEETING NOTES\nRoom 4A · 10:00\n",
            "pages": [{"width": 1280, "height": 960}]
          }
        }
      ]
    }
    

API endpoints

OCR API endpoints
MethodEndpointDescription
POST/v1/images:annotateDetect text in up to 16 images

Pricing

Pay per image

Graduated monthly pricing in US dollars, billed separately for each OCR feature.

OCR API prices in USD
Monthly usage Price (USD)
OCR text detection (per image or page)First 1,000 units per month are free
0 – 1,000 images / month Free
1,000 – 5,000,000 images / month $1.50 per 1,000 images
Over 5,000,000 images / month $0.60 per 1,000 images
OCR document text detection (per image or page)First 1,000 units per month are free
0 – 1,000 images / month Free
1,000 – 5,000,000 images / month $1.50 per 1,000 images
Over 5,000,000 images / month $0.60 per 1,000 images
  • Each OCR feature applied to an image is one unit: running text detection and document text detection on the same image counts as two.
  • Prices are quoted per 1,000 images, and the last block is prorated, so you pay for exactly the units you use.
  • Only images that are processed successfully are billed.

Example: 5,300 images with text detection in one month cost $6.45 (1,000 images free · 4,300 images × $1.50 per 1,000 images).

Start building with Vionex

Create an account in minutes and pay only for what you use.