post
https://multimodal.search.rezolve.com/v1/product/multisearch
Multimodal Search API: given an input text and/or input image finds all the products matching the inputs.
The request must be made with Content-Type: multipart/form-data if the query is provided via image parameter.
- For optimal results, we recommend images around 1024x1024 pixels. Low resolution images may result in unsatisfying search results.
- If the image is larger, we recommended to resize the image to 1024x1024 pixels before sending to API. Large images may result in server upload timeout and slow latency.
- The maximum file size of an image is 10MB.
Response Properties
| Name | Description |
|---|---|
| reqid | Query ID. |
| status | The request status, either “OK" or "fail”. |
| method | The API method, "product/multisearch". |
| im_id | For each uploaded image, Product Search service will return an unique im_id which can be used to do further search without downloading the image again. |
| page | The result page number. |
| limit | The number of results per page. |
| total | Total number of search results. |
| error | Error message and code if the request was not successful i.e. when status is “fail”. |
| product_types | Detected product types and their bounding box in (x1,y1,x2,y2) format. |
| result | The list of products retrieved. If attrs_to_get is specified, we are displaying the customer's catalog values in the “data” field. |
| catalog_fields_mapping | Return catalog’s fields mapping. |
| facets | List of facet fields value and response for filtering. |
| q | Autocomplete suggestion or spelling correction for the text query q. Returned if sayt=true or spell_correction=true and there is a suggestion/correction for the text query q. |
Response size can be compressed to save bandwidth by setting Accept-Encodingheader to gzip.