Creates a new DecoLensClient instance.
Your DecoLens API key. Make sure this is the "client" API key generated via the admin console.
Optional. The base URL of the DecoLens API endpoint, if you need to override the default.
Analyzes an image of a room/space to determine its purpose and aesthetics, and provide artwork recommendations.
The URL or data URI of the image to analyze.
User preferences for the analysis. Optional.
Callback functions to handle partial, complete, and error events.
An AbortController that can be used to cancel the analysis.
Searches for artworks based on a natural language query. Query must be at least 3 characters.
The search query.
The maximum number of results to return (default: 5).
Array of tags to filter by. Artworks will be returned if they match ANY of the tags specified. Optional.
A Promise that resolves to an array of artwork IDs.
Finds artworks similar to a given artwork.
The ID of the artwork to find similar artworks for.
The maximum number of results to return (default: 5).
Array of tags to filter by. Artworks will be returned if they match ANY of the tags specified. Optional.
A Promise that resolves to an array of artwork IDs.
The main client for interacting with the DecoLens API.