Open Source Identity Verification Tools for Flexible KYC 2026
Open source KYC fits teams that manage their own document capture, customer records and review rules. This guide shows how to call our standalone ID Verification API at $0.20 per call or run a hosted workflow.
Contents
In this guide
Jump to the part you need.
Open source KYC fits teams that want to control document capture, customer records and review rules and can maintain those components themselves. Verify document authenticity, presentation-attack detection and screening-data freshness separately before going live. If you keep capture, our standalone ID Verification API costs $0.20 per call. If you want a hosted workflow, our full ID check costs $0.33 before AML screening.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
Summary: what open source KYC covers and what you still verify yourself
| Layer of the flow | What you run yourself | What you must add or verify | Didit list price |
|---|---|---|---|
| Document capture and text extraction | A capture screen and text extraction you build, host and maintain | Authenticity, tamper and forgery checks, plus document coverage for the countries you serve | ID document verification $0.15 inside a workflow, or the standalone ID verification API at $0.20 per call |
| Liveness and face comparison | Image processing and face analysis code you run and tune | Passive liveness and a 1:1 face match whose attack coverage you have assessed | Passive liveness $0.10 plus face match 1:1 $0.05 |
| Screening: sanctions and PEPs | Storage for list data you licence and refresh yourself | List coverage, update frequency and how potential matches are handled | AML screening $0.20 per check |
| Flow and decisions | Your own code to sequence steps and branch on results | A hosted flow, an audit trail and routing to a reviewer | Workflow Orchestrator, free on every plan |
| Storage and retention | A database you operate and a retention policy you write | Encryption, access control, deletion tests and evidence your auditor accepts | Retention and audit log by plan |
| Full ID check | Document authenticity, passive liveness, 1:1 face matching and device and IP analysis. | Budget AML screening separately. Check the plan’s audit log and retention terms, and define which results need human review. | $0.33 per completed check: document verification $0.15, passive liveness $0.10, face match 1:1 $0.05 and device and IP analysis $0.03 |
Start free in the sandbox at business.didit.me, no sales call, and keep the Didit pricing page open while you size the flow. For developers, connect Didit to an AI assistant through the Didit MCP server. Our sandbox is free on every plan, and each sandbox application can create 500 test sessions every 24 hours.
The 14,000+ document types and 220+ countries in this guide describe our ID Verification coverage. AML screening is a separate check at $0.20, so a full ID check plus AML is two lines on your bill.
Two documented routes: keep your capture, or use our hosted flow
Route 1, you own capture. Your application collects the document images and posts them to the standalone ID Verification API, POST https://verification.didit.me/v3/id-verification/, at $0.20 per call. You keep the capture experience, the upload flow and the user record. You get back a request_id and an id_verification object with status, extracted fields, MRZ data and warnings. That price buys a document read and authenticity check on one front image and, for dual-sided documents, one back image.
Route 2, we own capture. You create a workflow and a session, and the person completes our hosted flow at the returned url. The full ID check costs $0.33 per completed check: document verification $0.15, passive liveness $0.10, face match 1:1 $0.05 and device and IP analysis $0.03. AML screening is not in that price and adds $0.20 per check. That price buys the hosted capture, the liveness capture, the face match, the device and IP analysis and the console evidence a reviewer reads.
The standalone API returns request_id and a single id_verification object. The hosted decision endpoint returns a session status and feature arrays such as id_verifications[]. If you move to the hosted flow, update your response parser and decide which checks to include in the workflow.
What open source KYC covers, and where it stops
Capture and text extraction. An open source capture layer and an OCR library read text from a document image, including an expiry date your application can compare with the current date. They do not tell you whether the document is genuine or whether the portrait was replaced, and those two questions need separate authenticity and portrait-replacement checks. Presentation-attack testing belongs to the liveness model you choose. Portrait replacement belongs to document authenticity testing. Plan for both rather than assuming one covers the other.
Liveness and face comparison. Image processing libraries and face landmark models get you a comparison score. Test the specific model you pick against screen replays and printed photos before you trust it on a live capture, and store what the model returned so a later review can check it. On our side that work is passive liveness at $0.10 and face match 1:1 at $0.05 inside the full check.
Flow and decisions. A general workflow engine coordinates background processing well. A verification link is interactive: it expires, it needs a redirect, and it returns an outcome a person may have to review. Check the maintenance status and the licence of any engine before you commit to it, and confirm it can hold a per-session audit trail.
Storage and retention. A relational database holds identity records well once you add encryption, access control, a retention rule and tested deletion procedures. A database on its own is not a compliant store. Document your applicable lawful basis, any condition required for processing biometric data to uniquely identify a person, and your retention and deletion rules (Regulation 2016/679).
Fraud models and rules. Training a model needs labels, and labels come from decisions you already made and reviewed. Start with a rule you can explain to a reviewer, then add model scores once you have the review history to judge them.

Prerequisites before you write any code
- A Didit organization created at business.didit.me, with a sandbox application for building and testing.
- Copy the API key for your sandbox application from the Business Console and make it available to the server as
DIDIT_API_KEY. - Your capture layer, if you keep one: the code that produces the document images and the user record.
- A server that can hold the API key as a secret and receive webhooks over HTTPS.
- A written decision on which outcomes are automatic and which go to a human reviewer, including any AML hit.
- Document your applicable lawful basis, any condition required for processing biometric data to uniquely identify a person, and your retention and deletion rules.
- Optional: a callback URL you control, if you want the browser redirected at the end of the flow.
How to add a paid verification step to an open source KYC flow
The outcome is a KYC flow that runs alongside your capture and returns a decision you can audit: a workflow that holds the checks, a webhook destination that tells you when a session changes, and a decision read that returns the evidence. The recommended method is to build in the sandbox first, register the webhook before you create sessions, and treat the browser redirect as a user-experience detail rather than the source of truth. The calls below are the documented Didit calls, trimmed to the minimum glue.
- Create the workflow that holds the checks. A workflow is the ordered list of steps a person goes through. This call creates a KYC workflow with document OCR, passive liveness, face match and AML screening. Persist the returned
workflow.idasWORKFLOW_ID.curl -X POST https://verification.didit.me/v3/workflows/ \ -H "x-api-key: $DIDIT_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "workflow_label": "Standard KYC", "workflow_type": "kyc", "features": [ {"feature": "OCR"}, {"feature": "LIVENESS", "config": {"face_liveness_method": "PASSIVE"}}, {"feature": "FACE_MATCH"}, {"feature": "AML"} ] }' - Register the webhook destination before the first session. Register the destination before the first session so it can receive subscribed events. If delivery fails, check the destination’s delivery log or retrieve the session decision directly. Save the returned
secret_shared_keyas your webhook secret.curl -X POST https://verification.didit.me/v3/webhook/destinations/ \ -H "x-api-key: $DIDIT_API_KEY" \ -H "Content-Type: application/json" \ -d '{"label": "Production", "url": "https://myapp.com/hooks/didit", "subscribed_events": ["status.updated", "data.updated", "user.status.updated", "user.data.updated"], "webhook_version": "v3"}'Verify the
X-Signature-V2header with HMAC-SHA256 over the canonical JSON body using that destination secret, then de-duplicate deliveries byevent_id. Answer within 5 seconds. Details are in the webhook documentation. - Create a session and send the person to the hosted flow. One call returns
session_id,urlandsession_token. SetWORKFLOW_IDbefore you run it, then setSESSION_IDfrom the create response. The unquoted heredoc lets the shell expandWORKFLOW_IDinto the JSON body.export WORKFLOW_ID="the-workflow-id-from-step-1" curl -X POST https://verification.didit.me/v3/session/ \ -H "x-api-key: $DIDIT_API_KEY" \ -H "Content-Type: application/json" \ --data-binary @- <<JSON { "workflow_id": "$WORKFLOW_ID", "vendor_data": "user-42", "callback": "https://myapp.com/kyc/return" } JSONThe callback is optional. If the application has allowed domains configured, an HTTP(S) callback must match an allowed origin by scheme, host and port. Custom app URL schemes are accepted. Keep the browser redirect separate from the onboarding decision: the redirect is a user-experience event, and the decision comes from the webhook and the decision endpoint.
- Read the event, then retrieve the full decision. The webhook signals that a session changed. After verifying the webhook, retrieve the session decision to read the status and feature results. Feature results arrive as plural arrays, so read
id_verifications[],liveness_checks[],face_matches[]andaml_screenings[], never singular fields, and branch onsession_kindbefore anything else.export SESSION_ID="the-session-id-from-the-create-response" curl "https://verification.didit.me/v3/session/${SESSION_ID}/decision/" \ -H "x-api-key: $DIDIT_API_KEY"The full schema is in the data models reference.
- Run the sandbox acceptance checklist. Test one scenario per outcome you plan to support, and inspect the evidence rather than only the status. Liveness runs as it does live, including the real capture, while the liveness result is simulated by the scenario or magic value. Use specimen documents and synthetic inputs, because the captured media is stored even in the sandbox. The scenario catalog is at
GET /v1/sandbox/scenarios/and the details are in sandbox testing.
| Scenario | Status to expect | Evidence to inspect | Does onboarding proceed |
|---|---|---|---|
| A catalog scenario configured for approval | Approved | Compare the returned session status and feature results with the selected scenario. | Yes |
| A catalog scenario configured to decline for an expired document | Declined | Check for DOCUMENT_EXPIRED in the returned document warnings. | No |
| A session your policy sends to a person | In Review | Confirm the session status is In Review. Inspect reviews for recorded activity and check assignee, waiting_since and sla_due_at when populated. | No, hold it until a reviewer decides |
| A feature your workflow does not run | Any status | The feature field is absent or null, never a placeholder pass | Only if your policy allows it |

If your capture already produced the images
Send the images server to server when your own capture screen already produced them. The call takes front_image and, for dual-sided documents, back_image, with files up to 5 MB and all four document corners visible. Do not add policy flags to a generic example: set a flag such as expiration_date_not_detected_action only when your workflow's policy calls for that action.
curl -X POST 'https://verification.didit.me/v3/id-verification/' \
-H 'x-api-key: YOUR_API_KEY' \
-F 'front_image=@./id_front.jpg' \
-F 'back_image=@./id_back.jpg' \
-F 'perform_document_liveness=true' \
-F 'vendor_data=user-123'
Expected output
The session call returns the three fields you act on. Values are shortened here.
{
"session_id": "UUID of the session",
"url": "hosted verification URL you redirect the person to",
"session_token": "token used when you mount the SDK"
}
The decision call returns the status and the evidence behind it, with one entry per check in each plural array.
{
"session_id": "UUID",
"session_kind": "user",
"status": "Approved",
"vendor_data": "user-42",
"decision_trace": {"status": "Approved", "decided_by": "automatic"}
}
decision_trace.warning_counts tells you how many warnings the automatic decision counted, so read it together with status_warnings. The document type is reported per entry in id_verifications[]. biometric_retention gives the jurisdictions and the date the live biometric data of the session is deleted. Each feature array is plural, and a feature field is absent or null when that feature did not run, so never read a missing array as a pass.

Inputs and outputs
| Field | Direction | Required | What it does |
|---|---|---|---|
workflow_id | Input | Yes | Stable workflow UUID from /v3/workflows/. Its type decides whether the session is KYC or KYB. |
vendor_data | Input | Recommended | Your identifier for the person. Binds the session to that person and drives duplicate detection. |
callback | Input | No | Where the hosted flow redirects at the end. Didit appends the session id and the status. |
expected_details | Input | No | Name, date of birth, nationality and document types you already hold. Mismatches surface as decision warnings. |
session_expiration_time | Input | No | Seconds the link stays valid, from 3600 to 2419200, overriding the workflow setting for this session only. |
session_id, url, session_token | Output | Yes | Identify the session, open the hosted flow, mount the SDK. |
status | Output | Yes | Approved, Declined, In Review, In Progress, Not Started, Expired, Abandoned, Kyc Expired, Resubmitted or Awaiting User. |
decision_trace | Output | Yes | How the status was reached, including decided_by and the warning counts. |
biometric_retention | Output | Yes | Jurisdictions and the date the live biometric data is deleted. |
Failure cases and how to recover
| Symptom | Cause | Recovery |
|---|---|---|
| 403 with "You do not have permission to perform this action." | No API key sent, or the key lacks the privilege | Send x-api-key, and grant read:sessions for decision reads |
| 401 | Key is wrong, revoked or expired | Issue a new key in the console |
| 400 on create | Invalid workflow_id | Persist workflow.id when the workflow is created |
| 400 on callback | If the application has allowed domains configured, an HTTP(S) callback must match an allowed origin by scheme, host and port | Add the origin to the allowed domains, or use a custom app URL scheme, which is accepted |
| 404 "Not found." | Session does not exist or belongs to another application | Check the key's application and the session id |
| Webhook never arrives | Handler answered 5xx or 404, or took longer than 5 seconds | Didit retries twice, about 1 and 4 minutes later, then drops. Resend from the destination's delivery log |
| Status In Review | The session requires review | Route it to a reviewer and withhold approval |
Declined with DOCUMENT_EXPIRED, DOCUMENT_LIVENESS_FAILED or COULD_NOT_RECOGNIZE_DOCUMENT | Terminal warning on the document check | Show the warning's long description and stop the flow |
In Review with DOCUMENT_LIVENESS_NOT_COMPUTED | The forgery check produced no usable score | Treat the document as unchecked and send it to manual review |
Paid steps and the review boundary
Sandbox work is free, so build there first. We bill these verification checks per completed result. Some no-match database lookups and retries are also billable. See the pricing documentation for those cases. The lines you will pay most often:
- Full ID check at $0.33: document verification $0.15, passive liveness $0.10, face match 1:1 $0.05 and device and IP analysis $0.03.
- Standalone ID verification API at $0.20 per call, a separate server-to-server line from the same step inside a workflow.
- AML screening at $0.20 per check, proof of address at $0.20 and age estimation at $0.10.
- Ongoing AML monitoring at $0.07 per person a year.
Define your review rules before launch. Send any potential AML match and any document or session result marked In Review to a named reviewer. For standalone ID Verification, read id_verification.status and the document warnings. For hosted sessions, read decision_trace.decided_by to see whether the decision was automatic, manual or investigator, and check status_override for a manual status change. Require human approval for cases your policy treats as high risk.
Worked cost example
The workflow in the walkthrough lists OCR, passive liveness, face match and AML, and it does not configure device and IP analysis as its own step. The example below assumes a different configuration: full ID checks priced at $0.33, which includes device and IP analysis, with AML screening run only on the sessions your policy selects, here 30% of them. You run 5,000 full ID checks in a month and 1,500 of those people also need AML screening.
- Full ID checks at list price: 5,000 x $0.33 = $1,650.00.
- AML screening on 1,500 people: 1,500 x $0.20 = $300.00.
- Total gross list-price usage: $1,650.00 + $300.00 = $1,950.00.
- Same document volume through the standalone ID Verification API at $0.20 per call: 5,000 x $0.20 = $1,000.00, plus AML screening on 1,500 people at 1,500 x $0.20 = $300.00, so $1,300.00 of gross list-price usage.
- On Growth, both checks take the 4% discount: 5,000 x $0.3168 = $1,584.00 and 1,500 x $0.192 = $288.00, so $1,872.00 of usage.
- The $99.00 Growth fee carries $115.00 of credit. $1,872.00 minus $115.00 = $1,757.00 paid from top-up, so the monthly cost is $99.00 + $1,757.00 = $1,856.00.
- On Scale, both checks take the 10% discount: 5,000 x $0.297 = $1,485.00 and 1,500 x $0.18 = $270.00, so $1,755.00 of usage. The $299.00 fee carries $350.00 of credit, so $1,405.00 comes from top-up and the monthly cost is $299.00 + $1,405.00 = $1,704.00.
These plan totals are monthly cost before applicable taxes, and they assume sufficient prepaid top-up balance to cover the usage above the plan credit. We charge $0.33 per completed full ID check at list price, and the discount applies to the AML line in the same way.
Where a hybrid flow fits
If your team has already built capture, keep it and call the standalone endpoint when the images arrive. For our hosted capture flow, create a session from a workflow. White label on your own domain is included as a Scale feature. Usage costs $0.09 per check on Scale, based on a $0.10 list price. Where a market has thin document coverage for you, non-document verification is an option in supported countries, and you should check the available methods by country before you select it (non-document verification).
We serve 4,000+ companies. Our ID Verification covers 14,000+ document types across 220+ countries. We have a SOC 2 Type 2 report and ISO/IEC 27001:2022 certification.
Person-level AML is AML screening at $0.20 per check. It is a separate check from the full ID check, so budget it as its own line and route every potential match to a reviewer.

Sources
- Didit pricing page, read November 26, 2026.
- Didit price list as JSON, read November 26, 2026.
- Didit pricing in the docs, read November 26, 2026.
- Didit quick start, read November 26, 2026.
- Create Session API, read November 26, 2026.
- Retrieve Session API, read November 26, 2026.
- ID Verification overview, read November 26, 2026.
- Non-document verification, read November 26, 2026.
- Sandbox testing, read November 26, 2026.
- Webhooks, read November 26, 2026.
- Data models reference, read November 26, 2026.
- Verification API OpenAPI contract, read November 26, 2026.
- Didit MCP server, read November 26, 2026.
- Didit AML Screening, read November 26, 2026.
- GDPR, Regulation (EU) 2016/679.
Next step: create a sandbox application at business.didit.me, run one KYC workflow end to end and read the decision before you commit to an architecture. Our sandbox is free on every plan and no sales call is needed to start.
Try it
Try this in the sandbox
Run the check this guide describes, free.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alberto Rosas
Co-founder and CEO

Questions
Frequently asked questions
Is there a real open source KYC stack I can run in production?
You can run each layer yourself: capture, text extraction, storage and review rules. Before you go live, verify document authenticity, presentation-attack detection and screening-data freshness as three separate workstreams, each with its own evidence. Our part of that work is a standalone document check at $0.20 per call, or a full ID check at $0.33 that adds passive liveness, 1:1 face match and device and IP analysis.
What is the difference between open source KYC and a hosted KYC API?
With open source KYC you run the code and carry the maintenance, the security testing and the compliance evidence. With a hosted API the provider runs the checks and returns a decision you store in your own application. The fair comparison is your engineering hours, your document coverage and your review time against the per-check price, not licence fee against API price.
Can I keep my own document capture and still use Didit?
Yes. Post front_image and, for dual-sided documents, back_image to POST https://verification.didit.me/v3/id-verification/ at $0.20 per call. The response carries a request_id and an id_verification object with status, extracted fields, MRZ data and warnings.
How much does a full ID check cost on Didit in 2026?
$0.33 per completed check at list price: document verification $0.15, passive liveness $0.10, face match 1:1 $0.05 and device and IP analysis $0.03. AML screening is separate at $0.20 per check. Growth discounts the full ID check and AML screening by 4%, and Scale discounts both by 10%.
Are there free alternatives to paid identity checks for a small team?
You can build with open source code at no licence cost, but hosting, engineering time and the data sources you cannot build yourself all cost money. Our Free plan includes $10 a month for the first eligible organization created in the console with a work email for its company domain. At $0.33 each, that covers about 30 completed full ID checks. Unused credit expires monthly and does not cover phone verification codes.
How do I handle expired IDs and missing expiry dates in Didit?
An expired document comes back as the DOCUMENT_EXPIRED warning on the document check. A document whose expiry date could not be read comes back as EXPIRATION_DATE_NOT_DETECTED. On the standalone call, expiration_date_not_detected_action=DECLINE makes a missing expiry date a decline, and you should set it only when your workflow's policy calls for that action.
What is the lowest-cost Didit route for document verification?
The ID document step inside a workflow is $0.15 at list price. The standalone ID verification API is $0.20 per call because it is its own server-to-server line in the price book. If you also need liveness and face match, compare the full check at $0.33 against the separate lines before you split the calls.
Do I get locked in if I build on Didit?
With our standalone API, you keep your capture screen, customer records and review rules. Switching providers means replacing the document-check call and updating its response parser. With our hosted route, plan to replace hosted capture, recreate workflow rules and update session creation and decision parsing. Our price list, OpenAPI contract and decision schema are public. Free includes one year of data retention and a 30-day audit log, and Scale includes up to 10 years of data retention and a three-year audit log with export.
Is an open API the same as open-source verification code?
No. An open API is a documented contract you call over HTTPS, and the checks run on our infrastructure. Open-source verification code is source you host and maintain yourself. With our API you keep your capture screen, your customer records and your review rules in your own application, and you call us for the checks you do not want to build.
How do I handle biometric consent and deletion with this setup?
Document your applicable lawful basis, any condition required for processing biometric data to uniquely identify a person, and your retention and deletion rules. Our decision response returns biometric_retention with the jurisdictions and the date the live biometric data of the session is deleted. In Auto consent mode, a session created with user_state set to Illinois, Texas or Colorado asks for explicit biometric consent before the first face capture.
How do I test all of this without spending money or using real personal data?
Use a sandbox application. Liveness runs as it does live, including the real capture, while the liveness result is simulated by the scenario or magic value. Use specimen documents and synthetic inputs, because the captured media is stored exactly as it is in a live session. Sessions are never billed and each sandbox application can create 500 sessions every 24 hours.
Compliance built in
Audited, certified and attested.
We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center
- Regulation encoded into your flows
Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.
- Ready for AMLR
Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.
- Tested in Spain's Treasury sandbox
Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.
- Audited, not self-declared
iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.
Your obligations · 3 regions
SOC 2 Type 2
ISO 27001
iBeta Level 1 and Level 2
EU regulator attestation
FSM youth protection
GDPR
EBA remote onboarding
MiCA compatible
FIDO Alliance member
- AMLREU AML Regulation ready
Integration · Didit MCP
Run Didit from your own AI agent
Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.
- Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
- Run investigationsAsk why a session was declined, review cases, search people and companies.
- Change rulesCreate payment rules, test them on past data and switch them on.
- Pull reportsAsk for numbers, exports or the audit log.
Didit Academy


