I have to automate a process of generating a refined image through OpenAI’s edits endpoint (gpt-image-1 model) by passing an image and a prompt (how to refine the image). I am using hulkform to upload images and prompt. But I am encountering issues when I am trying to pass the input to openai through webhook -post step.
The error states that edits endpoint expects multipart/form data but zapier has only form, xml, json and raw as its payload type .
Is there any way to implement this use case ?
Page 1 / 1
Hi
Welcome to the Community.
Automating image refinement using OpenAI's edits endpoint in Zapier can be challenging due to the lack of native support for multipart/form-data in Webhooks by Zapier. To work around this, you can use a "Code by Zapier" step to write custom Python or JavaScript that correctly formats and sends the request. Alternatively, you can use an external service like Make or a serverless function as an intermediary. Exploring third-party tools or contacting Zapier Support may also help resolve the issue.
Feel free to ask for further assistance if you have any questions or issues.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.