available as a query image by issuing the following call:
Upload an Image for Search
Request Parameters:
file: Query image filebounding_box(optional): X, Y, Width, Height
Visual Layer API - Dataset Exploration
After uploading the image you can call exploration endpoint with anchor media id:GET /api/v1/explore/{dataset-id}
Query Parameters
entity_typeIMAGES or OBJECTSanchor_typeMEDIA or UPLOAD for when you uploaded the image using the upload endpointanchor_media_idid of the image you want to use as anchor, returned from the upload for search endpointthresholdsimilarity threshold(0-4) the search results are clustered according to this valuePAGE_NUMBER: Which page of results to view (e.g., 0 for start)
relevance_score
Each result item includes arelevance_score, which measures similarity to the anchor image.
- Scale:
0= Most similar
2= Least similar - This score is based on cosine distance and is available per media item in the response.
Sample Response
Example:
Notes:
- Results are paginated with a fixed page size of 100 clusters per page
- Higher threshold values (0-4 depending on the dataset granularity options) create more granular clusters with stricter similarity requirements
- When using anchor-based similarity search, results are ordered by similarity to the anchor
- The entity_type parameter controls whether to return image clusters, object clusters, or both
- For similarity search with an uploaded image, first use the /search-image-similarity endpoint