POST a photo, scan or screenshot to DocuOCR and get the words back as structured JSON: the recognized text plus named fields, tables and confidence scores. Printed and handwritten, PNG, JPG, TIFF or PDF, all on one REST endpoint.
Call it from Python, JavaScript, Java, C# or PHP: the request and response are identical because the work happens server-side. Try it on your own image below. Last updated July 2026.
Upload a document to extract
Drop files here or click to upload
Up to 50 files
Uploading...
Upload an image and see the JSON your code would receive.
An image to text API turns the pixels of a photo, scan or screenshot into machine-readable text. You send the image to an HTTPS endpoint with your API key, the service runs optical character recognition on the page, and it returns the recognized words as JSON. Raw OCR APIs like Google Cloud Vision give you the text and the coordinates of each block, which is enough to display or search. A document extraction API like DocuOCR goes a step further: it reads the same image, then labels the values, so an invoice comes back as an invoice number, a date and totals, and a table comes back as rows and columns with a confidence score on each value. Because it is plain REST, you call it the same way from any language, and the work runs on the server, so a phone photo and a high-resolution scan follow the same code path.
Every major image to text API reads printed text; they differ on handwriting, on what they return, and on how much you get before you pay. Capabilities verified July 2026 from provider docs.
| Image to text API | Handwriting | What it returns | Free to test |
|---|---|---|---|
| DocuOCR | Printed + handwriting | Named fields, tables and confidence as JSON | Yes, free tier |
| Google Cloud Vision | Printed + handwriting | Text and bounding boxes, no named fields | 1,000 units/mo free |
| Azure AI Vision (Read) | Printed + handwriting, 100+ languages | Text, lines and words with positions | Free F0 tier |
| AWS Textract | Printed + handwriting | Text, forms and tables as blocks | 3-month free tier |
| OCR.space | Printed + handwriting (Engine 3) | Plain text, 200+ languages | Rate-limited free API |
| Mistral Document AI | Printed | Markdown plus structured output | No standing free tier |
The real split is text versus fields. Vision, Azure Read and Textract hand you recognized text and positions, so you write the logic that turns "INV-4021" into an invoice number yourself. A document API returns the labeled field, which is most of the work. See the full OCR API pricing comparison for per-1,000-page rates, or the honest best OCR API roundup for how to choose.
The DocuOCR image to text API is language-agnostic REST, so the same three calls work wherever you build. Here is the raw request, then a copy-and-run walkthrough for each language.
# 1. Upload the image, get a file_id
curl -X POST https://docuocr.com/api/documents/upload \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "[email protected]"
# 2. Start extraction with the file_id -> extraction_hash
curl -X POST https://docuocr.com/api/documents/extract \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"file_id": "FILE_ID"}'
# 3. Read the structured JSON back
curl https://docuocr.com/api/documents/extraction/HASH \
-H "Authorization: Bearer YOUR_API_KEY"
A mobile app photographs a receipt and the API returns merchant, date and total, so expenses post themselves with no typing.
An onboarding flow reads a driver license or passport photo into fields, checks confidence, and routes anything uncertain to review.
Scanned or emailed invoices become invoice number, vendor and line items, then flow into QuickBooks, NetSuite or an ERP.
Support and ops tools pull numbers and text out of screenshots so a person does not retype what is on the screen.
Photos of statements and forms become rows and columns your app can load into a database or spreadsheet.
Handwritten forms, notes and log sheets become searchable text, with low-confidence words flagged for a human.
The full endpoint reference and response shape.
An honest roundup of OCR APIs for US teams.
Per-1,000-page rates across the market.
Pull tables from PDFs to Excel, CSV or JSON.
Extract text from images in Python with requests.
Read images into fields from .NET with HttpClient.
Generate an API key, POST your first image, and read the recognized text plus named fields back as JSON in minutes. No engine to host, no SDK to learn, and a free tier to test before you pay per page.