Welcome to the DecoLens SDK!
DecoLens is a SaaS platform dedicated to making art more accessible and enjoyable. We empower online art galleries to seamlessly integrate AI-driven art discovery flows into their websites, transforming the way customers find and connect with art, boosting user confidence and ultimately conversion rates.
Experience the future of art discovery! See the DecoLens SDK in action at our live demo: demo.decolens.com
Sign Up for DecoLens: Go to decolens.com to sign up for a free account and create a new client API key.
Installation:
npm install @decolens/decolens-sdk
Start Building!:
import { DecoLensClient, AnalysisResponse, Preferences, Style } from '@decolens/decolens-sdk';
const decolens = new DecoLensClient({
apiKey: 'YOUR_API_KEY', // Replace with your actual API key
});
const abortController = await decolens.analyzeRoom(
'http://example.com/artworks/1234/image.jpg',
{
styles: [ Style.Minimalistic, Style.Abstract ],
priceRange: [100, 1000],
tags: ["us", "uk"]
},
{
onPartial: (response) => {
// Display partial result
setAnalysisResponse(response);
},
onComplete: async (response) => {
// Display the complete result
setAnalysisResponse(response);
},
onError: (error) => {
console.error('Analysis error:', error);
// Handle error
}
}
);
...
const { artworkIds } =
await decolens.search("a beautiful sunset over the mountains" /* natural language query */, 10, ["us", "abstract"]);
...
const { artworkIds } =
await decolens.similarArtworks("123-456-789-abc" /* artworkId */, 5);
Apache 2.0
We're excited to help you transform your online art gallery with the power of AI!