Generate recipes with AI

2023 · AI Recipes · Personal

About

This was a weekend project to explore the capabilities of the OpenAI APIs. I built a simple application that would accept user inputs for recipe descriptors (e.g. spicy, salad, German) and recipe ingredients (e.g. chicken, cactus, peanuts). The app then uses those terms in a request first to the completion api, expecting a JSON response to provide a recipe title, ingredients, and cooking instructions. The app then uses the resulting recipe title and makes a second request to the image generation api to create an image for that recipe.