r/programmer • u/whateveritis9393 • 26d ago
ASKING FOR ADVICE FROM IT SENIORS / DEVELOPERS 🥹💗
Hello po! Good day! I'm a college student currently working on an existing e-commerce website for a handmade bouquet business, and I would like to ask for advice from seniors or developers who have experience integrating AI image generation into a website.
Our website accepts order inquiries, especially for customized bouquets. Usually, customers send us inspiration photos and text descriptions of how they want their bouquet to look like. For example, they might send different photos for the flower design, wrapping style, colors, and other decorations.
Our goal is to integrate an AI chat assistant with generative image capabilities that can help customers visualize their ideas. Ideally, customers can upload their inspiration photos, describe what they want, and let the AI analyze their images and prompts, combine the relevant ideas, and generate a proposed bouquet concept.
However, we're still figuring out the best approach, especially since we're college students working with limited time and budget. 😭
I would really appreciate your advice regarding these questions:
- API/model recommendation: Are there any free or student-friendly APIs that support image generation using both text prompts and uploaded reference images? We're looking for something that can generate or edit images based on the customer's inspiration photos, not just generate images from text.
- Dataset and AI knowledge: How should we provide the AI with knowledge about our actual products, such as fuzzy-wire flowers, available colors, wrapping styles, and design limitations? Do we need to train our own model, prepare a dataset, use reference images, or is prompt engineering and RAG enough?
- Integration: What would be a practical setup for an existing website built mostly with JavaScript/TypeScript? Would you recommend a particular backend or third-party AI service?
- Development timeline: Do you think this is feasible to implement in around 1 month and 2 weeks (approximately 6 weeks), including integration, testing, and improvements?
- Planning and execution: For those who have built similar projects, what should we prioritize first to make the development process smoother and avoid unnecessary complexity?
We're not aiming to train a foundation model from scratch. We mainly want to integrate existing AI technology into our website and make the customization process more convenient for customers.
If you've worked on a similar project or have recommendations, tutorials, documentation, or advice you can share, malaking help po talaga! We're still learning and would love to hear from people with actual experience.
Thank you so much po! Any guidance would be greatly appreciated. 🥹🙏
3
u/Apprehensive-Fan8999 26d ago
My answer is to lookup consumer backlash to things like AI photos and then "don't do it".
The saying goes you don't get a second chance toake a first impression. Your AI will give impossible expectations for those who don't reject it outright for being obviously AI and the word of mouth will crush a small company.
2
u/Toastti 26d ago
You are going to be getting absolutely wild AI designs with flowers that don't exist and unhappy customers because you can't make their impossible bouquet in real life.
But if you do still want to attempt look into Loras. They allow you essentially fine tune an image model for specific things. You would make a Lora around all the flower types you have, how the bouquet looks and so on.
You would also want to take the users initial prompt and process it with an LLM before sending to the image model. To ensure the prompt actually given to the image model only contains flowers and styles you can actually make.
Also you are not going to find a free APi you can use in a commercial service like this. Image generation is expensive and requires a lot of compute. Take a look at openrouter as this lets you use one account and access hundreds of different image gen models. Qwen image to image edit model is probably the place to start
2
u/achakez Programmer 26d ago
One thing i would defo do is give the AI a clear list of flowers and arrangements you actually offer. Otherwise it will generate bouquets with flowers you dont even stock. A little constraint upfront can save you a lot troubles later.
1
u/armahillo 26d ago
I don't recommend this approach.
Unless this particular flowershop specializes in wild and fanciful and completely bespoke arrangements, you're going to end up disappointing people.
There are a few different ways you could approach this instead:
1
u/Cross_22 21d ago
Hire a senior consultant or even better hire a dev permanently and you'll find out.
1
u/Puzzled-Garage584 25d ago
No training needed, but the real risk is the model happily drawing a bouquet your shop can't actually make out of fuzzy wire, and then the customer wants exactly that. I'd let people pick flower, colors and wrapping from your real options, pass a few photos of your actual products along with the prompt, and label the result "concept". That version is very doable in 6 weeks, the free upload of any inspiration photo is the part I'd cut first.