Skip to main content

I’m working on a Zapier workflow where I use the ‘Code by Zapier’ Python step to generate images using Stability AI’s API. My objective is to take the binary output (the generated image) from the API and convert it into a file link or file object that can be used in subsequent steps of the Zap (e.g., uploading to Google Drive, posting to social media, etc.).

Is there a way to return a file object from the code step that Zapier can understand and process? 

Here is the Stability AI documentation for reference: https://platform.stability.ai/docs/api-reference#tag/Generate/paths/~1v2beta~1stable-image~1generate~1core/post 

Be the first to reply!

Reply