Description
By using the Search Route, you can utilize Bria's generative search capabilities, which don't require labels or keywords. The user can send any text query and receive relevant images that match the query.
The Search Route returns the images, sorted by the match score, from highest match to lowest match. The images are returned in batches, and you can specify how many images to receive in one batch, and which batch to receive in each call.
Search will only work on images that have been onboarded using the register endpoint.
Note: To use this endpoint, please Contact Us.
URL of an image, for which you would like to find similar images. When you want to search based on modified images, or images that have not been uploaded or registered to Bria, you can use this parameter. When this parameter is provided, the visual_id parameter can be None. The supported file types are jpg, jpeg and png, up to 12 mb.
curl -i -X GET \
'https://engine.prod.bria-api.com/v1/search_similar_images?vhash=e01592ef1188df76&num_results_per_page=1&page=1&gallery_id=425&url=If%20you%20are%20using%20the%20vhash%20paramater%2C%20there%20is%20no%20need%20to%20use%20this%20parameter' \
-H 'api_token: string'Successful operation.
there are multiple objects in this array (based on the amount specified in num_results_per_page) and each object represents a single image. The images in the array are sorted by the similarity score, from the highest to the lowest. If the specified batch (=page) is empty, the results array will be empty.
{ "results": [ { … } ] }