logo
Menu
AI-Powered Recipe Generator

AI-Powered Recipe Generator

In this article, we describe how we've built the Delicious Food Recipe Generator, and talk about the benefits and alternative implementation.

Published Mar 6, 2024
Last Modified Mar 8, 2024

Introduction

Imagine this: you're fridge-foraging for dinner inspiration, and...nada. Sound familiar? Well, get ready to ditch the takeout menus! At Credera, we recently joined the PartyRock Generative AI Hackathon by AWS, and guess what we built? An AI recipe generator that uses artificial intelligence to whip up delicious food ideas in seconds!
The app takes ingredients and dietary requirements from the user as inputs. The Claude LLM then generates a compelling recipe based on those inputs. Once we get an output from the LLM another widget visualizes the dish using the Stable Difussion XL model preset to a Photographic style. The last feature allows the user to ask questions about the dish via a chatbot interface. The result is an easy-to-use interface that helps us get creative meal ideas!
Application screenshot
You can view a demo of the tool here or try it here.

Community Impact:

AI recipe generators can spice up your cooking experience in a few delicious ways:
  • Fight Food Waste: Ever buy an ingredient and have it languish in the fridge? AI can recommend recipes based on what you already have, saving money and reducing waste.
  • Flavorful Exploration: Feeling stuck in a rut? AI can suggest recipes that combine new ingredients or cuisines, helping you discover exciting flavour profiles.
  • Dietary Delights: Do you have allergies or follow a specific diet? AI can generate recipes that fit your needs, whether it's vegan, gluten-free, or something else entirely.
  • Mealtime Matchmaker: Running short on time or ideas for dinner? AI can create personalized recipe recommendations based on your preferences and what's in season.
  • Kitchen Creativity: AI isn't here to replace chefs, but to inspire them! For home cooks and professionals alike, AI can spark new recipe ideas and help develop unique flavour combinations.

Alternative Development Scenario with Amazon Bedrock:

PartyRock makes it incredibly easy to build proof-of-concept Gen AI solutions with no code. If we were to build this Amazon Bedrock we'd most likely use the following solutions:
  • Amazon Bedrock: Claude and Stable Difussion Foundation models.
  • AWS Inferentia: Cost efficient model inference.
  • AWS Lambda: Compute service needed for things like making calls to the models etc.
  • Amazon CodeWhisperer: Generating the code for the user interface of the web app.
  • Elastic Beanstalk: Used for deploying the web app with AWS.
  • AWS IAM: Used to make sure that we principle of least privilege when it comes to IAM permissions in various resources involved.
  • AWS Lex: Allow the user to interact with the app using voice.

Conclusion

Out Delicious Food Recipe Generator is just a glimpse into the exciting possibilities of AI in the culinary world. As generative AI continues to evolve, we can expect even more sophisticated recipe creation, personalized meal planning, and perhaps even AI-powered sous chefs assisting us in the kitchen. Whether you're a seasoned home cook or a complete beginner, AI has the potential to revolutionize the way we approach food, opening doors to delicious discoveries and reducing mealtime stress. So next time you find yourself staring into an empty fridge, remember – a world of culinary creativity might just be an AI recipe away!
 

1 Comment