Vinted Image Search Assistant
import logging
import os
import requests
from gunicorn.app.base import BaseApplication
from app_init import create_initialized_flask_app
from abilities import upload_file_to_storage, url_for_uploaded_file, llm
from flask import render_template, request, redirect, url_for, flash, jsonify
from werkzeug.utils import secure_filename
# Flask app creation should be done by create_initialized_flask_app to avoid circular dependency problems.
app = create_initialized_flask_app()
# Setup logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg', 'gif'}
def allowed_file(filename):
return '.' in filename and filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS
@app.route("/")
def home():
return render_template("home.html")
Created: | Last Updated:
How to Use the Vinted Image Search Assistant Template
This template creates a web application that allows users to upload images, analyze them with AI, and find similar items on Vinted. The app requires a RapidAPI subscription to access the Vinted API.
Getting Started
- Click "Start with this Template" to begin using this template in the Lazy Builder
Initial Setup
You'll need to set up a RapidAPI key to use this template:
- Visit the Vinted API on RapidAPI
- Sign up for a free RapidAPI account if you don't have one
- Subscribe to the Vinted API (free tier available)
- Go to the API Playground
- Copy your X-RapidAPI-Key
- In the Lazy Builder, go to the Environment Secrets tab
- Add a new secret with the key
RAPIDAPI_API_KEY
and paste your RapidAPI key as the value
Test the Application
- Click the "Test" button in the Lazy Builder
- Wait for deployment to complete
- Lazy will provide you with a URL to access your web application
Using the Application
Once deployed, you can use the application through its web interface:
- Upload an image by clicking "Choose File" or "Take Photo"
- The app will display a preview of your selected image
- Click "Find Similar Items" to analyze the image
- The app will display:
- Analysis of the image (colors, category, keywords)
- Similar items found on Vinted with prices and links
- Click "Search Again" to analyze another image
The application provides a responsive interface that works on both desktop and mobile devices, allowing you to either upload images from your device or take photos directly through your device's camera.
Template Benefits
- Enhanced Product Discovery
- Enables users to find similar products on Vinted by simply uploading a photo
- Reduces search time and improves customer experience through visual search capabilities
-
Perfect for fashion retailers and consumers looking to find specific styles or items
-
AI-Powered Analysis
- Automatically analyzes uploaded images for colors, categories, and key features
- Provides intelligent keyword generation for more accurate search results
-
Eliminates manual tagging and categorization effort
-
Mobile-First Design
- Responsive interface works seamlessly across all devices
- Includes camera integration for instant photo capture
-
Provides an optimal user experience for on-the-go shopping
-
E-commerce Integration
- Direct integration with Vinted's marketplace through RapidAPI
- Enables immediate price comparison and purchase options
-
Facilitates quick access to similar items at various price points
-
Scalable Architecture
- Built with modern web technologies (Flask, SQLAlchemy, Gunicorn)
- Includes database migration system for easy updates
- Supports high concurrent users with multiple workers configuration
Technologies




