Skip to main content
Question

Converting Binary Image Output from Stability AI API to Usable File Link in Zapier

  • November 25, 2024
  • 0 replies
  • 18 views

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 

Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.