{"openapi":"3.2.0","info":{"title":"Image Similarity API","description":"The Image Similarity API compares two images and returns a similarity score.","version":"1.0.0"},"servers":[{"url":"https://image-similarity.jojapi.net"}],"security":[{"ApiKeyAuth":[]}],"x-agent-commerce":{"catalog_url":"https://image-similarity.jojapi.net/_jojapi/agent/plans","discovery_url":"https://image-similarity.jojapi.net/.well-known/x402","directory_url":"https://agents.jojapi.net/apis/image-similarity-v1","docs":"https://docs.jojapi.com/consumers/agents"},"paths":{"/image-similarity":{"post":{"operationId":"post_image_similarity","summary":"Image Similarity Score","description":"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.","responses":{"200":{"description":"Response 200","content":{"application/json":{"schema":{"type":"object","properties":{"score":{"type":"number"}}},"examples":{"Example":{"summary":"Example","value":{"score":0.72}}}}}},"402":{"description":"Payment required — pay per request with x402/mpp (offer in the PAYMENT-REQUIRED / WWW-Authenticate headers and the JSON body), or send a JoJ API key."}},"x-payment-info":{"protocols":["x402","mpp"],"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"intent":"charge"},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["image1","image2"],"properties":{"image1":{"type":"string","description":"Image URL or Base64-encoded file string.","example":"https://m.media-amazon.com/images/I/81T3fwduCOL.jpg"},"image2":{"type":"string","description":"Image URL or Base64-encoded file string.","example":"data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwY.........."},"trim_frames":{"type":"boolean","description":"If true, both images will have their one-color frames detected and removed.","default":false,"example":true}}},"example":{"image1":"https://m.media-amazon.com/images/I/81T3fwduCOL.jpg","image2":"https://m.media-amazon.com/images/I/81l+0ZKRriL.jpg"}}}}}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-JoJAPI-Key","description":"Your JoJ API key."}}}}