AI Search
The AI Search API provides semantic search capabilities — search by text description or find visually similar images.
Endpoints Overview
GET
/api/v2/aiSearch/isInstalled
Check if AI Search is installed
GET
/api/v2/aiSearch/isReady
Check if AI Search is ready
GET
/api/v2/aiSearch/isStarting
Check if AI Search is starting up
GET
/api/v2/aiSearch/isSyncing
Check if AI Search is syncing data
GET
/api/v2/aiSearch/getSyncStatus
Get detailed sync status
GET
/api/v2/aiSearch/checkServiceHealth
Check service health
POST
/api/v2/aiSearch/searchByText
Search by text description
POST
/api/v2/aiSearch/searchByBase64
Search by image (Base64)
POST
/api/v2/aiSearch/searchByItemId
Find similar items by item ID
Status Endpoints
GET /api/v2/aiSearch/isInstalled
Check whether the AI Search plugin is installed.
await fetch("http://localhost:41595/api/v2/aiSearch/isInstalled").then(r => r.json());Response:
GET /api/v2/aiSearch/isReady
Check whether AI Search is fully initialized and ready to accept search queries.
Response:
GET /api/v2/aiSearch/isStarting
Check whether the AI Search service is currently starting up.
Response:
GET /api/v2/aiSearch/isSyncing
Check whether AI Search is currently syncing (indexing) library data.
Response:
GET /api/v2/aiSearch/getSyncStatus
Get detailed synchronization status, including progress information.
Response:
GET /api/v2/aiSearch/checkServiceHealth
Perform a health check on the AI Search service.
Response:
Search Endpoints
POST /api/v2/aiSearch/searchByText
Search for items using a natural language text description. The AI model finds visually or semantically matching items.
Request Body
querystring (required) — Text description to search foroptionsObject (optional)limitinteger — Maximum number of results (default varies by AI Search config)
Response
Examples
POST /api/v2/aiSearch/searchByBase64
Find visually similar items by providing a Base64-encoded image.
Request Body
base64string (required) — Base64-encoded image dataoptionsObject (optional)limitinteger — Maximum number of results
Response
Same format as searchByText — returns an array of { item, score } results sorted by similarity.
Example
POST /api/v2/aiSearch/searchByItemId
Find items visually similar to an existing item in the library.
Request Body
itemIdstring (required) — The item ID to find similar items foroptionsObject (optional)limitinteger — Maximum number of results
Response
Same format as searchByText — returns an array of { item, score } results sorted by similarity.
Example
Recommended Workflow
Check availability — Call
isInstalledandisReadybefore searchingWait if starting — If
isStartingreturnstrue, poll untilisReadybecomestrueCheck sync status — Use
getSyncStatusto verify the index is up to dateSearch — Use
searchByTextfor description-based search,searchByBase64for reverse image search, orsearchByItemIdto find similar items
Last updated