Safebooru is a tag-based image archive maintained by anime enthusiasts. It allows users to post images and add tags, annotations, translations and comments. It's derived from Danbooru, and differs from it in that it disallows explicit content.
image | caption-ja |
---|---|
58bf5f8b-5d8d-4eb9-b66f-e795f5fc30c1.jpg | 漫画の原稿 |
2db6a32f-c5b0-4ba0-b970-0e4c687286f8.jpg | アニメキャラクターのイラスト |
4c3664ee-0ffa-4ec1-9a86-d4f723e74992.jpg | アニメキャラクターのイラスト |
1673b94c-a4be-49c3-baad-1d3bae1d7a99.jpg | アニメキャラクターのイラスト |
# Search
curl -X POST "https://search.dria.co/hnsw/search" \
-H "x-api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"rerank": true, "top_n": 10, "contract_id": "lpDRMdpuvjusxjHb2iY3vVY7nyPNwdCYAw34Lq5JVFQ", "query": "What is alexanDRIA library?"}'
# Query
curl -X POST "https://search.dria.co/hnsw/query" \
-H "x-api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"vector": [0.123, 0.5236], "top_n": 10, "contract_id": "lpDRMdpuvjusxjHb2iY3vVY7nyPNwdCYAw34Lq5JVFQ", "level": 2}'