Skip to content
OSINTtools.io

Lenso.ai API

AI reverse image search with separate modes for places, faces, duplicates, related and similar images.

Base URL
https://api.lenso.ai
Sign-in
Bearer token
Pricing
Subscription
Format
REST
Endpoints
1

Compiled by OSINTtools.io editors from github.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

The Lenso.ai API runs reverse image search and, in supported regions, face search. It returns pages of matching images with the source page, a title, a confidence score and an indexing date. An investigator uses it to find where else a picture appears.

Requests are JSON POSTs with the image as a base64 string in the image field (no multipart upload). The token from the Lenso.ai website goes in Authorization: Bearer <token>. Face search is a separate host (api.eyematch.ai) and requires living in a region where the feature is offered and signing a facial search agreement. API access needs the Developer subscription, which the site describes as up to 5000 API calls per month.

Each returned page counts as one request, with up to 20 results per page. domainsToInclude and domainsToExclude take up to 100 entries each. A GET /usage call for remaining quota also exists; its response is not described in the docs and is not listed here.

Quick start

  1. Get a key

    Create an account with Lenso.ai and copy your bearer token. Where to get it

  2. Make your first request

    Category search: find duplicates, landmarks, similar or related images.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl -X POST 'https://api.lenso.ai/search' \
      -H 'Authorization: Bearer YOUR_API_KEY' \
      -H 'Content-Type: application/json' \
      -d '{"image":"BASE64_ENCODED_IMAGE","category":"duplicates","sortType":"QUALITY_DESCENDING","page":1}'
  3. Read the response

    A 200 response looks like this.

    {
      "results": [
        {
          "urlList": [
            {
              "imageUrl": "https://example.com/images/photo.jpg",
              "sourceUrl": "https://example.com/gallery",
              "title": "Example gallery"
            }
          ],
          "base64Image": "BASE64_RESULT_IMAGE",
          "confidenceScore": 92.5,
          "date": "2025-01-01"
        }
      ],
      "availablePages": 3
    }

Authentication

Send your token in the Authorization header as Bearer YOUR_TOKEN.

Token obtained from the Lenso.ai website.

Get a key from Lenso.ai

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Not stated in the docs; the Developer subscription is described as up to 5000 API calls per month.

Pricing: subscription.

Errors

StatusMeaning
400Invalid request: for example a missing or non-Base64 image, invalid sort type, category, page or date, more than 100 domains, or the access request limit reached
401Invalid access token or API access expired
404Resource not found
429Request quota exceeded
500Internal server error

Searches the index for the submitted image within one category. Send either page or multiPage. Results are sorted by quality or date.

Request body (JSON) · 10Show

imagestringalways present

Base64-encoded image to search for

categorystringalways present

duplicates, landmarks, similar or related

sortTypestringalways present

QUALITY_DESCENDING, QUALITY_ASCENDING, DATE_DESCENDING or DATE_ASCENDING

pageinteger

Page number, from 1; give page or multiPage

multiPagearray

List of page numbers, from 1; give page or multiPage

domainstring

Search domain filter

domainsToIncludearray

Domains to include, up to 100

domainsToExcludearray

Domains to exclude, up to 100

fromDatestring

yyyy-MM-dd

toDatestring

yyyy-MM-dd

Response fields · 8Show

imageUrlstring

URL of the matching image

sourceUrlstring

Page the image appears on

titlestring

Title of the source page

base64Imagestring

The result image, Base64-encoded

confidenceScorenumber

Match confidence, 0 to 100

datestring

Indexing date

availablePagesinteger

Number of pages available

multiPage[]integer

Pages the results were merged from

curl -X POST 'https://api.lenso.ai/search' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"image":"BASE64_ENCODED_IMAGE","category":"duplicates","sortType":"QUALITY_DESCENDING","page":1}'
Replace YOUR_API_KEY with your key
Response
{
  "results": [
    {
      "urlList": [
        {
          "imageUrl": "https://example.com/images/photo.jpg",
          "sourceUrl": "https://example.com/gallery",
          "title": "Example gallery"
        }
      ],
      "base64Image": "BASE64_RESULT_IMAGE",
      "confidenceScore": 92.5,
      "date": "2025-01-01"
    }
  ],
  "availablePages": 3
}