NewAPIVerve Academy: free courses and certifications anyone can verify.Explore the Academy →

Image to Text API

POST

Read the text out of any image file or URL.

Image to Text is an OCR and image to text API that extracts text from image files or remote image URLs using optical character recognition. Upload a JPG, PNG, or GIF up to 5 MB to receive the raw extracted text.

Try it — live request, no key required

Request
POSTapi.apiverve.com/v1/imagetotext
image
Click or drag a file to upload.jpg, .jpeg, .png, .gif, .webp, .bmp, .tiff, .heic · max 400KB for live testing
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "text": "A year after that (in 2021) I hired somebody tp#lp me write blog posts for\nmy personal website.\n\nThe point is, | like reinvesting the money | make\nback into my business.",
    "words": 32,
    "characters": 169,
    "lines": 5,
    "language": [
      "en"
    ],
    "confidence": 87.7,
    "wordBoxes": [
      {
        "text": "after",
        "confidence": 96.7,
        "left": 76,
        "top": 19,
        "width": 35,
        "height": 13,
        "block": 1,
        "line": 1
      },
      {
        "text": "that",
        "confidence": 96.9,
        "left": 115,
        "top": 19,
        "width": 30,
        "height": 12,
        "block": 1,
        "line": 1
      },
      {
        "text": "tp#lp",
        "confidence": 62.6,
        "left": 357,
        "top": 19,
        "width": 49,
        "height": 16,
        "block": 1,
        "line": 1
      },
      {
        "text": "business.",
        "confidence": 96.9,
        "left": 174,
        "top": 150,
        "width": 99,
        "height": 20,
        "block": 3,
        "line": 2
      }
    ]
  }
}

Start from a template — a working app you can deploy in a minute

About the Image to Text API

An image to text API and image text recognition API: extract text from an image upload or an image URL, from photos and screenshots to scanned pages. The API reads text from the image with optical character recognition (OCR) and returns it as plain text in JSON. Pass language to read Spanish, French, German, Portuguese, Italian, Dutch, Russian, Japanese, Chinese, Korean, Arabic or Hindi as well as English, or several codes for mixed text. Paid plans add word, character and line counts, a confidence score and the position of every word.

What people use it for

Expense Receipt Scanning
Accounting software converts uploaded photos of paper receipts into plain text to identify merchant names and purchase totals.
ID Card Digitization
When onboarding new bank customers, verify identity documents by pulling printed names and identification numbers straight from submitted photo files.
Searchable Media Archives
To index visual media, digital asset libraries scan promotional graphics by image URL to make embedded headlines and labels searchable.
Assistive Screen Reading
Transcribe text trapped inside web graphics and infographics before generating spoken audio descriptions for visually impaired readers.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Questions.

Common questions about the Image to Text API.

Read the docs →
What resolution should full-page scans be?
Scans up to 300dpi work: pages larger than 2400 pixels on the long side are scaled down before reading, and word boxes are reported in the original image's pixels. A very dense page can still exceed the reading time limit; the API then returns a 422 saying so, and a crop to the text area or splitting the page succeeds.
Which plan fits 10,000 image extractions a month?
The Starter plan easily covers that volume. Each image extraction consumes 10 credits, meaning Starter provides up to 20,000 extractions each month. That works out to about $1.50 per 1,000 images, while the Free plan gives you 20 calls per month to test.
Are word, character and line counts included on the Free plan?
No. The Free plan returns the extracted text only. Word, character and line counts are premium fields included on any paid plan, starting with Starter.
What image formats and file sizes can I process?
The API supports JPG, PNG, GIF, WebP, BMP, TIFF and HEIC (the iPhone camera format). Phone photos are read the way they display, using their EXIF orientation. Uploaded image files must be 5 MB or smaller.
Can I process an image via URL instead of uploading a file?
Yes, you can pass a direct image URL to the URL extraction endpoint. It supports the same image formats and returns the exact same text as direct file uploads, with OCR metadata on paid plans.
What happens if an image exceeds 5 MB or uses an unlisted format?
Requests with files exceeding the 5 MB limit or formats outside of JPG, PNG, GIF, WebP, BMP, TIFF and HEIC will not be processed. You must resize or convert files before submitting them to the upload endpoint.

Ready to build with Image to Text? Start with 200 free credits — one key unlocks all 406+ APIs.

Explore the catalog

406+ APIs on the same key and the same response shape.

Browse all APIs