Documentation

Documentation

  • Conversation
  • Reader
  • Speech
  • Console
  • AI Agents
  • Languages iconEnglish
    • Tiếng Việt
    • Janpanese

›Tutorials

Overview

  • Driving License Recognition
  • ID Recognition
  • Passport Recognition
  • Facematch
  • Face Search
  • Reader
  • SDK eKYC
  • Liveness Detection

API

  • Driving Licence Recognition
  • ID Recognition
  • Passport Recognition
  • Face Search
  • Facematch
  • Liveness Detection

Tutorials

  • Driving License Recognition
  • ID Recognition
  • Passport Recognition
  • Face Search
  • Facematch
  • SDK eKYC
  • Liveness Detection

Tutorials

FPT.AI Reader - Face Search

This Facesearch system is connected to FPT Gateways. Therefore, to use this API (default usage level for a new API key is only 1000 requests), developers must have an account on Console.

The API key must be placed at all request headers as follows:

api_key: generated_API_key

Create user on the system (to add index images)

Using Python

import requests

url = "https://api.fpt.ai/dmp/facesearch/v2/create"

payload = {

'collection': 'test2',

'id': '1234',

'name': 'Nam'

}

headers = {

'api_key': 'xxxxxxxxxx'

}

response = requests.request("POST", url, headers=headers, data = payload)

Using Shell

curl --location --request POST 'https://api.fpt.ai/dmp/facesearch/v2/create' \\

\--header 'api_key: xxxxxxxxxx' \\

\--form 'collection=test2' \\

\--form 'id=1234' \\

\--form 'name=Nam'

Using Postman

Headers

2

Body

3

Index user images

Using Python

import requests

url = "https://api.fpt.ai/dmp/facesearch/v2/add"

payload = {

'collection': 'test2',

'id': '1234'

}

files = [

('file', open('/path/to/photo.jpg', 'rb'))

]

headers = {

'api_key': 'xxxxxxxxxx'

}

response = requests.request("POST", url, headers=headers, data = payload, files
= files)

Using Shell

curl --location --request POST 'https://api.fpt.ai/dmp/facesearch/v2/add' \\

\--header 'api_key: xxxxxxxxxx' \\

\--form 'file=\@/path/to/photo.jpg' \\

\--form 'collection=test2' \\

\--form 'id=1234'

Using Postman

Headers

4

Body

5

Facesearch

Using Python

import requests

url = "https://api.fpt.ai/dmp/facesearch/v2/search"

payload = {

'collection': 'test2',

'threshold': '0.9'

}

files = [

('file', open('/path/to/photo.jpg','rb'))

]

headers = {

'api_key': 'xxxxxxxxxx'

}

response = requests.request("POST", url, headers=headers, data = payload, files
= files)

Using Shell

curl --location --request POST 'https://api.fpt.ai/dmp/facesearch/v2/search' \\

\--header 'api_key: xxxxxxxxxx' \\

\--form 'file=\@/path/to/photo.jpg' \\

\--form 'collection=test2' \\

\--form 'threshold=0.9'

Using Postman

Headers

6

Body

7

← Passport RecognitionFacematch →
  • Create user on the system (to add index images)
    • Using Python
    • Using Shell
    • Using Postman
  • Index user images
    • Using Python
    • Using Shell
    • Using Postman
  • Facesearch
    • Using Python
    • Using Shell
    • Using Postman
Conversation
DocumentationAPI ReferenceTutorials (Video)
Reader
DocumentationAPI ReferenceTutorials
Speech
DocumentationAPI ReferenceTutorials
Copyright © 2025 FPT Corporation