How to Generate AI Images with "Make a Request" in Make.com and Upload to Airtable?

What are you trying to achieve?

Hi,
I want to create a workflow in Make.com where I:

Use the Make a Request module to trigger the generation of AI images (e.g., through an API like Stable Diffusion or other AI tools).
Take the generated image data and upload it directly to Airtable as a file attachment (not just a URL).
I’d like to know:

How to set up the Make a Request module to interact with the AI image generation API.
How to handle the image data (e.g., base64 or a URL response) and prepare it for uploading to Airtable.
Any tips for simplifying this process since I’m a beginner with Make.com and APIs.
Thanks in advance for your guidance!

Steps taken so far

Steps Taken So Far:

Researching the API:

Found the API documentation for the AI image generation tool (e.g., Stable Diffusion or a similar service).
Checked the requirements for making requests, such as authentication (API keys) and the input parameters (e.g., prompt, image size).
Setting Up Make.com:

Added the Make a Request module in a scenario.
Configured the API call with the required URL, headers (for API key), and body parameters to send a request for image generation.
Testing the API Request:

Ran the scenario to ensure the API generates an image successfully.
Checked the response format (e.g., image URL, base64, or direct file).
Preparing for Airtable Integration:

Created a table in Airtable with an Attachment field to store the image.
Tested Airtable’s API to confirm the correct format for uploading an attachment.
Mapping Data in Make.com:

Attempted to map the image data (URL or file) from the API response to the Airtable module in Make.com.
Experimented with different methods for file handling (e.g., downloading the file if needed).
Challenges encountered so far:

Converting the image response into a format Airtable accepts.
Ensuring the workflow runs seamlessly without manual intervention.
Any advice on overcoming these issues would be greatly appreciated! :blush: