PicToText

For KYC and identity verification

ID OCR API. Passports and IDs in. Typed JSON out.

PicToText is an ID OCR API for KYC. Send a photo of a passport, national ID card or driver's license to one endpoint and get the fields back as JSON, with nothing to train or configure.

No card required. 3 tries a day without an account.

POST /api/v1/ocr · 200 OK
Fictional ICAO 9303 specimen. No real person.
passportNumber
L898902C3
name
ANNA MARIA ERIKSSON
gender
Female
birthDay
1974-08-12
nationality
UTO
expiryDay
2012-04-15
mrz
2 lines, verbatim
Sample response for documentType passportRun it on your own image →

One ID OCR API request. Typed fields back.

Upload the image as multipart form data, name the document type, read the JSON. Errors come back as plain HTTP status codes with a reason you can act on.

1

Send the image

curl -X POST https://pictotext.io/api/v1/ocr \
  -H "Authorization: Bearer $PICTOTEXT_KEY" \
  -F "image=@passport.jpg" \
  -F "documentType=passport"
2

Read the fields

{
  "passportNumber": "L898902C3",
  "name": "ANNA MARIA ERIKSSON",
  "birthDay": "1974-08-12",
  "expiryDay": "2012-04-15",
  "mrz": "P<UTOERIKSSON<<ANNA<MARIA…"
}
3

Handle the edge cases

400
Unsupported image or document type
401
Missing or revoked API key
429
Rate limited. Retry after Retry-After; not charged
null
A field it could not read, instead of a guess
Read the quickstart →

Before you integrate

What happens to the images?

Uploaded files and OCR results are deleted automatically after 30 days.

What if a field is unreadable?

It comes back as null. MRZ lines are copied character for character or not at all.

What are the limits?

Free accounts get 10 requests per 60 seconds, 2 at a time. Any paid plan or credit pack removes both caps.

How is it billed?

One credit per successful call; rejected requests are free. Plan calls are used first, then prepaid credits, which never expire.

Free

$0

100 API calls when you sign up, then credit packs from $3.99 for 1,000 calls.

Start free

Premium

Most popular

$29.90/ month

10,000 API calls a month. Extra credits from $2.70 per 1,000.

Start Premium

Enterprise

$249/ month

100,000 API calls a month. Extra credits from $2.49 per 1,000.

Start Enterprise

Your first response is a few minutes away

Sign up, verify your email, copy the key into the snippet. Every call then shows up in your dashboard.