Multiple Image Generation, and Upload to Google Drive

Creates images for every item in of an array of prompts using OpenAI's gpt 4.0 model, then uploads the imags to Google Drive so that they have a permanent home (If you leave the images at the original urls created by OpenAI the links break after 10 mins or so). This workflow becomes really useful when you are programmatically creating the array of image prompts from another data source, and then using the images programmatically too.
Import Workflow

-------------------------------------------------------------------------------- subject: cranq.ai flow export version: 1.0 title: Encode URL for 'Import CRANQ' ------------------------------------ BEGIN ------------------------------------- eyJmbG93Ijp7ImlkIjoiaWQtMDAwMDAwIiwidGl0bGUiOiJFbmNvZGUgVVJMIGZvciAnSW1wb3J0IENS QU5RJyIsImRlc2NyaXB0aW9uIjoiRW5jb2RlIGFuZCBjcmVhdGUgYSB1cmwiLCJjcmVhdGVkQXQiOjE3 MDE5NDY5NjM1NDQsInVwZGF0ZWRBdCI6MTcwNzA2NDg3ODAzNywiYWNjZXNzZWRBdCI6MTcwNzA2NDg3 ODAzN30sImdyb3VwcyI6W10sInN0ZXBzIjpbeyJpZCI6ImlkLTU2YzZhOCIsInRpdGxlIjoiRW5jb2Rl IHRoZSBwcm92aWRlZCBVUkwiLCJkZXNjcmlwdGlvbiI6IkNoYW5nZSB0aGUgbGFzdCBjaGFyYWN0ZXIg b2YgdGhlIHByb3ZpZGVkIHVybCBmcm9tIDAgdG8gMSwgdGhlbiBlbmNvZGUgaXQuIiwiZmxvd0lkIjoi aWQtMDAwMDAwIiwiaW5kZXgiOjEsImlucHV0cyI6eyJpZC0xYWZkOGYiOnsiaWQiOiJpZC0xYWZkOGYi LCJuYW1lIjoidXJsIiwiZGVzY3JpcHRpb24iOiJUaGUgdXJsIHRvIGJlIGVuY29kZWQiLCJ0eXBlIjoi c3RyaW5nIiwic291cmNlIjp7InR5cGUiOiJ2YWx1ZSJ9LCJpc0JvdW5kVG9Db2RlIjp0cnVlfX0sIm91 dHB1dHMiOnsiaWQtNThkMmNjIjp7ImlkIjoiaWQtNThkMmNjIiwibmFtZSI6ImVuY29kZWRVcmwiLCJk ZXNjcmlwdG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In19XSwicGFyYW1ldGVycyI6W119 ------------------------------------- END --------------------------------------

Inputs
  1. Array of prompts
  2. Google Drive folder Id
AI Description
Required connections
Connected
Connected
Connected
Connected
Connected
Connected
Connected
Connected
Connected
Connected