Skip to main content

Overview

Image search lets users find products by uploading a photo. Refine analyzes the image’s visual features and returns products that look similar. Perfect for “shop the look” experiences, visual discovery, and reverse image search.

Basic Usage

Image Input Formats

The SDK accepts three image formats:

Parameters

File | Blob | string
required
The image to search with. Accepts File objects, Blobs, or base64-encoded strings.
number
required
Number of results to return. Recommended: 8-24 for image search.
Filter[]
Array of filters to apply. See Filters.

With Filters

Combine visual search with filters to narrow results:

Response

The response structure is identical to text search:
Track image search results the same way as text search:

Complete Implementation

Here’s a full drag-and-drop image search component:

Image Requirements

For best results:
Large images are resized server-side. For faster uploads, resize images to ~800px on the longest edge before sending.

Use Cases

Let users upload photos of outfits they like and find similar items in your catalog.
Add a camera icon to your search bar for users who prefer visual browsing.
Users can screenshot products from social media and find them in your store.
Find similar products to items users found elsewhere (use responsibly).

Error Handling

Next Steps

Text Search

Search with text queries

Filters

Filter operators reference