Skip to main content

Biometric Embedding Vectors: A 2026 Implementation Guide

A biometric embedding vector is the numeric face template a model produces. Didit matches two faces 1:1 for $0.05, searches 1:N for $0.05, and deletes the embedding with the session unless you opt in to retention.

Biometric Embedding Vectors: A 2026 Implementation Guide

Contents

In this guide

Jump to the part you need.

This guide is for product and engineering teams that want face embeddings inside a live verification flow: a 1:1 face match, a 1:N duplicate search and a selfie login. Didit prices each completed check. A full KYC check costs $0.33, a standalone face match $0.05, a face search $0.05. The caveat is legal, not technical: a retained biometric template is biometric data and you stay its controller.

Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.

Didit biometric calls and published unit prices, November 26, 2026
What you are buildingDidit routePrice (USD)
Full KYC check (ID document, passive liveness, face match, device and IP)One hosted session$0.33 per check
ID document verificationSession step$0.15 per check
Passive livenessSession step$0.10 per check
Face match 1:1POST /v3/face-match/$0.05 per check
Face search 1:NPOST /v3/face-search/$0.05 per search
Biometric authentication (selfie login)Authentication step$0.10 per auth
Biometric template retention and purge/v3/biometric-templates/No separate line in the live price feed
Workflow orchestrator, MCP server, SDKsIncludedFree

Start free in the sandbox at business.didit.me, no sales call. Developers who want an AI assistant to wire the calls can connect Didit through the Didit MCP server. The biometric workflow itself is documented on the Face Match page, and every unit price sits on the pricing page.

Face Match runs two ways, and the difference decides what you build. Inside a session it runs next to ID Verification and Liveness: the document portrait is the reference image, the liveness selfie is the live image, and the result arrives in face_matches[] on the decision, with guided retries. The standalone POST /v3/face-match/ route takes two images you already hold, one call, one score, and no retry budget. Face Search has a standalone API and can also run automatically during liveness checks when enabled; there is no separate Face Search workflow feature.

What an embedding vector is, and what it is not

An embedding vector is the fixed-length list of numbers a neural network returns when it looks at a face. Two images of the same person land close together in that numeric space. Two different people land far apart. That single property is what powers the three routes below.

The practical takeaway for engineering: a face template is a numeric projection, not compressed image data, and it is still biometric data under GDPR. Give it a purpose, a finite window and a deletion path. On Didit that means a face_retention_days value between 1 and 3650 when you retain, DELETE /v3/biometric-templates/{uuid}/ when you no longer need a template, and deletion_instruction: "privacy_erasure" on session deletion for an erasure request.

What you end up with

Biometric Authentication by Didit walkthrough video
Biometric Authentication, priced at $0.10 per authentication.
  • A 1:1 similarity score from 0 to 100 for every session that runs face match, inside face_matches[] on the decision.
  • A 1:N search that tells you whether the same face already verified under a different account, plus blocklist hits.
  • A selfie login for returning users, priced at $0.10 per authentication.
  • An optional image-free biometric template with a finite expiry, so duplicate detection keeps working after you delete a session.
  • A purge path through the Biometric Templates API and the audit trail that records every retain and purge attempt.

Prerequisites

  • A Didit account created with a work email. The Free plan adds $10 of credit every month, and sandbox testing is free and unlimited.
  • An application in the Business Console and an API key. Use API keys only: Console user tokens get a 403 on the templates API.
  • Images in JPEG, PNG, WebP or TIFF, max 5 MB each. Face Search does not accept PDFs.
  • A stable user identifier to send as vendor_data. Retention needs it: a session with no linked user cannot anchor a template.
  • A legal basis for biometric processing, and consent recorded where Illinois, Texas or Colorado rules apply.
  • A budget line, because every completed check is billed from prepaid credit.

Steps: from a selfie to a searchable template

  1. Create the application and copy an API key. Every call goes to https://verification.didit.me with the header x-api-key. The key carries the privilege, for example delete:sessions for session deletion.
  2. Build a workflow that captures a face. Add ID_VERIFICATION, LIVENESS and FACE_MATCH in the Business Console, or create the workflow with POST /v3/workflows/. The live selfie comes from liveness, the reference portrait from the document.
  3. Create a session. POST /v3/session/ with workflow_id, vendor_data and callback. If you verify people in Illinois, Texas or Colorado, send user_state as an ISO 3166-2 code such as US-IL, so the consent step is asked.
  4. Send the user to the session. Open session.url or mount the Web or Mobile SDK. Capture quality decides match quality, so let the flow coach the user instead of building your own camera step.
  5. Read the decision. Call GET /v3/session/{sessionId}/decision/ or subscribe to session.status.updated. The face results arrive in face_matches[], with statuses such as Approved, In Review or Declined.
  6. Run a one-shot 1:1 comparison when you already hold both images. This is the server-to-server route, documented on the Face Match page:
    curl -X POST 'https://verification.didit.me/v3/face-match/' \
    -H 'x-api-key: YOUR_API_KEY' \
    -F 'user_image=@./selfie.jpg' \
    -F 'ref_image=@./id_portrait.jpg' \
    -F 'save_api_request=true' \
    -F 'vendor_data=user-123'
    The returned status is Approved when the score is above face_match_score_decline_threshold, which defaults to 30. The standalone endpoint is stateless and single-shot, so there is no retry budget: you decide whether to ask for a new capture.
  7. Search 1:N for duplicates and blocklist hits. Face Search is a standalone API against the index your application enrolled through earlier verifications, the faces you uploaded to User profiles, your face lists and any retained templates. The documented call:
    curl -X POST 'https://verification.didit.me/v3/face-search/' \
    -H 'x-api-key: YOUR_API_KEY' \
    -F 'user_image=@./selfie.jpg' \
    -F 'search_type=most_similar' \
    -F 'save_api_request=true' \
    -F 'vendor_data=user-123'
    Use search_type=blocklisted_or_approved for blocklist screening. Status is Declined only when a blocklist match is found. Pure duplicate matches come back Approved and informational, so your application applies the merge or block policy. The search accepts an image with at least one detectable face, max 5 MB; when multiple faces are present, Didit uses the largest bounding box.
  8. Decide what survives deletion. By default, deleting a verification session deletes the face embedding with it, so the person can verify again without being flagged as a duplicate. Retention is opt-in and finite: nothing is kept unless your application policy or the deletion call asks for it, and no template is created without a day count between 1 and 3650. Opt in with face_retention_policy: retain_until_user_deleted plus face_retention_days, then send the deletion. The documented example:
    curl -X DELETE https://verification.didit.me/v3/session/<SESSION_ID>/delete/ \
    -H "x-api-key: <API_KEY>" \
    -H "Content-Type: application/json" \
    -d '{"retain_face_embeddings": true, "face_retention_days": 365}'
    For an erasure request, send {"deletion_instruction": "privacy_erasure"} instead. That purges every retained template for the person and never retains a new one. Combining it with retain_face_embeddings: true is rejected with a 400.
  9. Inspect and purge templates. List them with GET /v3/biometric-templates/, count them with GET /v3/biometric-templates/count/, purge one with DELETE /v3/biometric-templates/{uuid}/, or purge in bulk with POST /v3/biometric-templates/delete/ using template_uuids or delete_all: true. The same templates are visible in the Business Console under Lists, Biometric templates, and on the owning User profile.
A face being scanned during a Didit capture step
The liveness capture is where the live selfie comes from.

Expected output

A face match call returns a request id and one face_match object. The documented shape, with placeholder values:

{
  "request_id": "<uuid>",
  "face_match": {
    "status": "Approved",
    "score": "<0-100>",
    "user_image": { "entities": {} },
    "ref_image": { "entities": {} },
    "warnings": []
  }
}

A face search call returns a singular face_search object, not an array: total_matches, a matches list, and the entities found on user_image. Each match carries similarity_percentage, vendor_data, is_blocklisted, and a source of session, imported, list_entry or retained_template. A retained_template hit has no session id and identifies the person through vendor_data, vendor_user_id and biometric_template_id.

A deletion with retention returns what happened to the biometric data:

{
  "session_id": "<uuid>",
  "session_number": "<number>",
  "face_retention_outcome": "retained_with_user",
  "biometric_template_uuid": "<uuid>",
  "biometric_template_expires_at": "<ISO 8601 datetime>",
  "deleted_child_verifications": 0
}

The outcome is deleted when the embedding went with the session, retained_with_user when a template stayed anchored to the User, none when the session had no face embedding, and ineligible_no_vendor_user when you asked for retention on a session with no linked User.

Liveness results on a session in the Didit Business Console
The console shows the liveness step and its warnings on the session itself.

Failure cases and recovery

What can go wrong on the biometric calls and what to do next
SymptomMeaningRecovery
HTTP 403Out of credits, or the key is not allowed to perform the actionTop up, or use an API key instead of a Console user token
HTTP 400Missing user_image or ref_image, file over 5 MB, or an unsupported extensionFix the upload; PDFs are not accepted by Face Search
HTTP 400 with no face detectedThe image had no detectable faceAsk the user to retake the selfie
LOW_FACE_MATCH_SIMILARITYThe two faces do not matchDo not approve. In the session flow the user gets guided retries, up to face_match_max_attempts (default 3)
NO_REFERENCE_IMAGE, NO_FACE_DETECTED, MULTIPLE_FACES_DETECTEDCapture problemRetry the capture step; these are fixable by the user
FACE_IN_BLOCKLISTDefinitive blocklist hitReject
POSSIBLE_FACE_IN_BLOCKLISTBorderline match below the hard thresholdRoute to manual review
DUPLICATED_FACEThe person already verified under a different vendor_dataMerge or block according to your policy
Templates: 400, 403, 404, 503Bulk purge with no selector, permission denied, unknown or purged template, external store unavailableThe 503 case moves the template to purge_failed, already excluded from matching, and the purge is retryable

In a session, a face match that fails for a fixable capture reason does not immediately decline. The user stays on the step and receives feedback_codes, which the Web and Mobile SDKs surface as coaching messages. Once the attempt budget is exhausted, the computed status is applied, Approved, In Review or Declined.

Inputs and outputs

What you send and what each Didit biometric call returns
Input or settingWhere you send itWhat it controlsOutput you read
user_imagePOST /v3/face-match/, POST /v3/face-search/An image with at least one detectable face, max 5 MB. When multiple faces are detected, Didit uses the largest bounding box.face_match.score, face_search.matches[]
ref_imagePOST /v3/face-match/The reference portrait, usually cropped from the ID documentface_match.status
search_typePOST /v3/face-search/most_similar for dedupe, blocklisted_or_approved for screeningtotal_matches, warnings[]
vendor_dataSessions and standalone callsYour user id, ties results together across callsvendor_data and vendor_user_id on each match
save_api_requestStandalone callsEnrolls the request in the face indexHits on later searches
workflow_idPOST /v3/session/Which features run in the sessionface_matches[] on the decision
user_state, biometric_consentPOST /v3/session/Declares a covered state, or records consent you already collectedbiometric_consent.status and biometric_consent.trigger
retain_face_embeddings, face_retention_daysDELETE /v3/session/{sessionId}/delete/Keeps one image-free template, 1 to 3650 daysface_retention_outcome, biometric_template_uuid
deletion_instructionDELETE /v3/session/{sessionId}/delete/privacy_erasure purges every template for the personOutcome purged on the template

Billing happens per completed check, from prepaid credit. Face match is $0.05, a face search is $0.05, passive liveness is $0.10, a biometric authentication is $0.10 and an ID document check is $0.15, which is why the four-part KYC check lands at $0.33. Sandbox testing is free and unlimited, workflow orchestration, the MCP server and the SDKs carry no price, and unused monthly plan credit does not roll over. Some no-match database lookups and retries are billable, and the pricing page in the docs lists which.

The review boundary is the line between what Didit computes and what you decide. Didit returns scores, statuses, warnings and a consent record. Your thresholds, your dedupe policy and your manual review queue decide the outcome, and In Review statuses exist so a human can decide. On biometric consent, Didit shows the step and records the answer, including on native SDK 4.10.0 and later, but it does not decide whether your journey meets Illinois BIPA, Texas CUBI or Colorado law. That is your counsel's call, and the consent page says so explicitly. Didit acts as a data processor: you remain the controller for retention, notice and erasure, and a retained template needs a controller instruction and a privacy notice that cover it.

Worked cost example

Take a consumer app with 2,000 new users and 6,000 returning logins in one month. Each new user runs a full KYC check and a duplicate search. Each returning login is a biometric authentication.

  • KYC: 2,000 x $0.33 = $660.00
  • Face search 1:N: 2,000 x $0.05 = $100.00
  • Biometric authentication: 6,000 x $0.10 = $600.00
  • Total at list price: $660.00 + $100.00 + $600.00 = $1,360.00
  • Same month on Scale, with 10% off every Didit price: $1,360.00 x 0.10 = $136.00 off, so $1,224.00

Plan fees sit on top and are not included here. The Scale plan is $299 a month and adds $350 of credit a month, so in this example the credit covers part of the usage and the remainder is drawn from top-ups.

Sources

Next step: open the sandbox at business.didit.me, create an application, and run one face match and one face search on test images before you touch production. No sales call, and the $10 monthly credit on the Free plan covers the first test runs.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Frequently asked questions

What is a biometric embedding vector?

A biometric embedding vector is a fixed-length list of numbers that a neural network produces from a face image, where images of the same person end up numerically close and images of different people end up far apart. Didit uses face templates for 1:1 Face Match, 1:N Face Search and Biometric Authentication. Where an application opts in to retention, the retained template holds the numeric face template and retention metadata only, never the face image or the liveness video.

Can a face be rebuilt from a stored embedding?

A face template is a numeric projection, not image data, and it is still biometric data under GDPR. Treat it that way: a retained Didit template keeps only the numeric template and retention metadata, carries a finite expires_at, and you can purge it at any time with DELETE /v3/biometric-templates/{uuid}/.

How does Didit face match 1:1 work and what score passes?

Didit compares a live selfie with a reference portrait, usually the photo on the ID document, and returns a similarity score from 0 to 100. The standalone POST /v3/face-match/ call returns Approved when the score is above face_match_score_decline_threshold, which defaults to 30. Inside a session, your workflow thresholds decide whether a borderline result goes to In Review.

How does Didit face search 1:N detect duplicate accounts?

Didit searches the submitted selfie against the face index your application has enrolled through earlier verifications, faces you uploaded to User profiles, your face lists and any retained templates. Each hit returns a similarity_percentage and the vendor_data of the account it belongs to. A duplicate match comes back Approved and informational, so your application applies the merge or block rule.

Does Didit keep face embeddings after a verification is deleted?

By default, no: deleting a session deletes the session data and the face embedding with it, which means the person can verify again without a duplicate flag. Applications can opt in to biometric template retention, where the session is deleted and one image-free template stays anchored to the User until its expiry, User deletion, privacy erasure or an explicit purge. A retained template is biometric data and is not deleted with the session.

How much does a face search cost on Didit?

A standalone Face Search 1:N call is $0.05 per search on the public price book, read from the live price feed on November 26, 2026, even though some older Didit documentation still describes Face Search as free. Face Match 1:1 is also $0.05, passive liveness is $0.10 and biometric authentication is $0.10. Growth takes 4% off every Didit price and Scale takes 10% off.

What should my app do when a face match fails or is borderline?

Do not approve a Declined result with LOW_FACE_MATCH_SIMILARITY. In a session flow, fixable capture problems keep the user on the step with feedback_codes and up to face_match_max_attempts submissions, default 3. The standalone endpoint is single-shot, so your application decides whether to ask for a new capture, route to manual review or decline.

Do I need biometric consent before the selfie in Illinois, Texas or Colorado?

Those three states require a notice and an explicit release before face geometry is collected, from a selfie or from the photo on an ID. Didit can show a consent step before the first face capture and keeps the answer on the session as evidence. The step needs a browser, a WebView or native SDK 4.10.0 or later, and you still decide whether your journey meets the law.

Can face embeddings replace passwords for login?

Yes. Biometric Authentication is a priced Didit module at $0.10 per authentication, and the first 50,000 active users each month are free. Keep a fallback path, because a failed capture should never lock a legitimate user out.

Which certifications cover the Didit biometric pipeline?

Didit holds SOC 2 Type 2 and ISO/IEC 27001:2022 certification (certificate ES144068), runs iBeta Level 1 PAD testing on liveness, and is designed for GDPR. Inference runs at a sub-2-second p99 across 220+ countries and 14,000+ document types, with 4,000+ companies using the platform. The SOC 2 Type 2 report is shared under NDA.

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.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • 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.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • 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.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.