Endpoints
Ungrouped Endpoints 1
What is the Image Similarity API?
The Image Similarity API compares two images and returns a similarity score.
Image Similarity API is available on the JoJ API marketplace. Subscribe with a single JoJ API key, call it through one gateway, and pay from one wallet — no separate account or contract with the provider.
Image Similarity API endpoints
- POST
/image-similarity$0.01 / callImage Similarity Score
The Image Similarity API compares two images and returns a similarity score between 0 and 1, where higher values indicate greater visual similarity. A score of 1 means the images are identical. A score of 0.9 or higher means that the images are very similar.Images can be provided via URL or as Base64 encoded data. Formats: JPG, JPEG, PNG, WEBP.You can also use the trim_frames parameter to automatically remove the single-color frame from images before comparison.
Frequently asked questions about Image Similarity API
What does the Image Similarity API do?
The service compares two images and calculates their visual similarity score as a numeric value.
How do I interpret the similarity score?
The API returns a score ranging from 0 to 1: * 1.0 — The images are identical. * 0.9 or higher — The images are very similar. * Closer to 1 means higher visual similarity; closer to 0 indicates greater differences.
How can I provide the images?
You can submit images in two ways: * Via a public direct link (URL). * As a Base64-encoded string.
Which file formats are supported?
The API supports JPG, JPEG, PNG, and WEBP.
What is the trim_frames parameter used for?
The trim_frames parameter automatically removes single-color borders or frames around the edges of images before comparing them. This prevents background margins from skewing the final similarity score.