Creating a native plugin that generates images
To learn about the power of chaining functions, we are going to create functions that perform very different actions. We will start by creating functions that generate images and putting them in a plugin. Then, we’re going to learn how to incorporate these functions into a more complex chain.
In some applications, you may want to generate an image with AI. For example, social media posts with images tend to get more engagement, but creating images without AI or finding images can be time-consuming and expensive.
Compared to market prices of non-AI images, generating images with AI is very cheap. On the other hand, generating images is still one of the most compute-intensive activities that can be done with AI. Recent research from Hugging Face [1] has shown that generating an image is 2,000 times more expensive in terms of carbon emissions than generating a text answer. These costs will be passed down to you.
Costs of OpenAI...