Loading...

Search by picture

You hand the search an image instead of words. Search Stack embeds it the same way it embedded the library, then returns the records whose pictures are closest, each with a similarity score.

Query with an image

Click the classic roadster and the other cars in the library rank straight to the top, each stamped with how similar it is.

The photo search demo after clicking a photo of a classic car: the most visually similar photos come back first, cars at the top, each with a similarity percentage

The query image doesn't have to be in the library — the “drop an image here” box takes a visitor's own picture just as well.

The call your page makes

POST https://api.searchstack.dev/search-result/Demo/photos/1/by-image
X-API-Key: {your key}
Content-Type: application/json

{ "image": "https://.../harbour-dawn.jpg", "size": 8 }
{
  "results": [
    { "name": "Harbour at dusk",  "@image_score": 0.94 },
    { "name": "Fishing boats",    "@image_score": 0.89 }
  ]
}

Go deeper: Image search — querying by picture in the reference.

Top