id + url 与 threshold,服务端并行下载后比对,同步返回结果。score >= threshold 的匹配对use_embedding(默认 true){
"origin": [
{
"id": "o1",
"url": "https://cdn.example.com/origin/a.png"
}
],
"target": [
{
"id": "t1",
"url": "https://cdn.example.com/target/b.png"
},
{
"id": "t2",
"url": "https://cdn.example.com/target/c.png"
}
],
"threshold": 0.9,
"use_embedding": true
}curl --location 'https://app-test.fagougou.com/openapi/plagiarism/image-similarity-urls' \
--header 'Content-Type: application/json' \
--data '{
"origin": [
{
"id": "o1",
"url": "https://cdn.example.com/origin/a.png"
}
],
"target": [
{
"id": "t1",
"url": "https://cdn.example.com/target/b.png"
},
{
"id": "t2",
"url": "https://cdn.example.com/target/c.png"
}
],
"threshold": 0.9,
"use_embedding": true
}'{
"code": 0,
"msg": "success",
"data": {
"result": [
{
"origin": "o1",
"target": "t1",
"score": 0.95
}
],
"use_embedding": true,
"embedding_used": false
}
}