I am developing an AI assistant app called Clyborg. Previously, I had an issue with dictionary parsing for text responses, and thanks to this community, I solved it (here is the link to my previous post
Now, I am trying to take the next step: Image Generation.
My app uses the Gemini API to send a prompt. I want the AI to return an image of "Clyborg" (my character) based on the user's input. Since Gemini returns a JSON response, I am trying to extract the Base64 string and convert it into a file using the KIO4_Base64 extension to display it in an Image component.
The problem: Currently, nothing is happening. The image doesn't load, or the file is not being created correctly. I suspect it could be the way I'm asking Gemini for the Base64 (the prompt) or how I am handling the file path within the extension