ForHosting KIT · OCR & Data Extraction

Read an ID document

Send one photo of the front of an ID and get the holder’s full name, document number, date of birth, expiry date and issuing authority when printed, each labelled. Signups stop stalling at the retyping step. Pay per use, no subscription.

● BetaPer request + per image$0.010
Use it from WebAPIEmailTelegramApp soon

Run this on our servers with your account. Free tools run in your browser; this one bills your KIT balance per the price above.

Onboarding forms die at the ID upload step when someone has to retype a document number by hand.

What the reader returns

Signup forms often stall at the identity step, when someone has to copy a document number by hand. This reader takes a photographed or scanned national ID card, driver’s licence or residence permit and returns the printed details: full name, document number, date of birth, expiry date and, when present, the issuing authority. Each value is labelled with where it came from. You get plain data, not a picture of the card, which suits teams that store the details but never keep the original image.

Consent and what happens to the image

Identity documents carry personal data, so the rule is simple: you send a document because its holder agreed to the check, and the image is used only to produce your result. Once the retention period ends the file is deleted, and nothing you send is used to train anything. Typical uses are filling in a new customer’s legal name and birth date at account opening, logging a guest’s name and document number at check-in, or confirming age from the birth date before issuing a ticket. For forms or invoices, the dedicated readers fit better.

What comes back

Send one image of the front of the document and you receive the holder's full name, document number, date of birth, expiration date and issuing authority when present, each tagged with the field it came from. The response is plain structured data, not a rendering of the card, which matters for teams that store the extracted fields but never keep the original image.

Account opening for regulated services

A fintech captures a driver's license photo during signup and auto-fills the applicant's legal name and birth date instead of asking them to type it twice.

Short-term rental check-in

A property manager scans a guest's ID at check-in to log the name and document number against the reservation without a front-desk clerk transcribing it.

Age verification at the door

An event platform reads the date of birth from an uploaded ID to confirm eligibility before issuing a ticket, without storing the photo afterward.

HR document intake

A staffing agency batches new hires' ID uploads overnight and pulls document numbers into the HR system before the morning shift starts.

Is there a free tier or trial?

There's no free tier — free tiers get abused and slow everyone down. No subscription, no tokens, no invented credits, and a failed task is never charged.

Which document types are supported?

National ID cards, driver's licenses and resident permits with a standard printed layout are the primary target; results depend on image legibility.

Do you keep the document image?

No. Images and results are deleted once the retention window closes, and nothing submitted is used for model training.

What happens if the ID photo is blurry or cropped?

The system retries internally up to three times; if it still can't read the document, you get a clear error response and are not charged.

Can I process many IDs at once?

Yes, each document is its own async task, so you can submit a batch of images and collect results as each task completes rather than waiting on one synchronous call.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/ocr/id-document

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/ocr/id-document \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"image":"https://ejemplo.com/imagen.jpg"}'
{
  "image": "https://ejemplo.com/imagen.jpg"
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "ocr.id_document",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.010
Per image$0.0575

Published price — no tokens, no invented credits. A failed task is never charged.

max_mb25
max_pages10
HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.
422task_failedThe task failed after 3 retries. You are never charged for it.

This endpoint reads a photographed or scanned identification card and returns the printed fields as structured data, so your signup flow keeps moving instead of stalling on a keyboard.

Built for the moment before trust

Every KYC flow, rental application or age-gated signup hits the same wall: a human has to confirm that the document in front of the camera says what the form claims. This endpoint reads national ID cards, driver's licenses and resident permits, and hands back the printed fields as clean data instead of a photo someone has to squint at.

Consent is part of the request, not an afterthought

Once retention expires, the file is deleted; nothing you send is used to improve or train models. Identification documents carry personal data, so this endpoint is designed around a simple rule: you send it because the document holder agreed to the check, and we do not repurpose that image for anything beyond producing your result.

How the request behaves

If the document is unreadable after three internal retries, you get a clear error instead of a bill. Call POST /ocr/id-document with the image and you get a task_id immediately. The job runs asynchronously and the answer arrives at your webhook, or you can fetch it from a signed link that stays valid for 24 hours.

Where it slots into a pipeline

Because the call is async and billed per completed task, teams wire it straight into signup or verification queues: a user uploads a photo, your backend fires the request, and by the time the rest of the onboarding form is validated the extracted fields are usually already sitting in your database ready for a human or a rules engine to review.

What is the ID document OCR API for?

It reads a photo or scan of a national ID, driver's license or resident permit and returns the printed fields as structured data for KYC, onboarding or check-in flows.

What does it cost?

$0.010 per request plus $0.0575 per image processed, billed only on completed tasks. A failed task is never charged.

How do I get the result?

Send the request to POST /ocr/id-document, receive a task_id right away, and collect the output via a signed webhook or a signed link valid for 24 hours.

Read the full KIT documentation →