OCR ID
Send a photo of an identity document and get structured fields back instead of a wall of text: the number, the name, the dates and the rest, keyed and ready to store o…
Send a photo of an identity document and get structured fields back instead of a wall of text: the number, the name, the dates and the rest, keyed and ready to store or validate.
It is vision-model backed rather than template-matched, so a phone photo taken at an angle, in bad light, or slightly rotated still reads. A heavily rotated card usually still OCRs even when face matching on the same image would not.
Pair it with verify-nik or verify-npwp to check that what was read is structurally valid, and with kyc-verify when you also need the document photo compared against a selfie.
Call it
The first response is 402 with the exact price and every rail you can
pay with. Pay, repeat the request with the proof, and you get the result.
curl -X POST https://api.glianalabs.com/v1/tools/ocr-id \
-H 'content-type: application/json' \
-d '{"image_url":"https://example.com/ktp.jpg"}'When to use it
An identity document (Indonesian KTP/SIM/KK/NPWP, or a foreign passport/driving licence). Prefer image_base64 so the image is never stored; if you pass one of our /v1/media URLs the object is deleted after the read. Max 6.291456MB. Returns { fields, verification }: fields are copied as printed (null when absent), including religion and marital status where the document shows them. For Indonesian documents the verification block checks the NIK structurally — region code against official Kepmendagri data, plus the birth date and gender encoded in the NIK against the printed ones. That is a confidence signal for the read, NOT proof the document is genuine. Nothing is stored and no face matching is performed (use tools/face-compare for that).
What it costs
$0.0050 per successful call — flat, with no plan, minimum or monthly fee. A call that fails validation is refused before it runs, so it is never charged.
Not sure this is the right endpoint? GET /v1/consult?intent=… is
free and answers that.
Often used with this
KYC Verify
$0.0150One request takes an identity document and a selfie and returns the fields it read from the document alongside a face-similarity score between the two.
Face Compare
$0.0110Send two images and get back a similarity score, a match flag and the threshold it was judged against.
Face Detect
$0.0030Find faces in an image. Use when an agent counts people, checks a photo contains exactly one face before a match, or estimates age and gender.