Generate AI Images with APImage and Upload to Google Drive
AI Image Generator Workflow
This workflow lets you automatically generate AI images with the APImage API š”„, download the generated image, and upload it to any serivce you want (e.g., Google Drive, Notion, Social Media, etc.).
š§© Nodes Overview
- Generate Image (Trigger) This node contains the following fields: Image Prompt*: (text input) Dimensions*: Square, Landscape, Portrait AI Model**: Basic, Premium
This acts as the entry point to your workflow.
It collects input and sends it to the APImage API node.
Note: You can swap this node with any other node that lets you define the parameters shown above._**
- APImage API (HTTP Request) This node sends a POST request to:
https://apimage.org/api/ai-image-generate
The request body is dynamically filled with values from the first node:
{ "prompt": "{{ $json['Describe the image you want'] }}", "dimensions": "{{ $json['Dimensions'] }}", "model": "{{ $json['AI Model'] }}" }
ā Make sure to set your API Key in the Authorization header like this: Bearer YOUR_API_KEY
š You can find your API Key in your APImage Dashboard š”„
- Download Image (HTTP Request)
Once the image is generated, this node downloads the image file using the URL returned by the API:
{{ $json.images[0] }}
The image is stored in the output field: generated_image
- Upload to Google Drive
This node takes the image from the generated_image field and uploads it to your connected Google Drive.
š You can configure a different target folder or replace this node with:
Dropbox WordPress Notion Shopify Any other destination
Make sure to pass the correct filename and file field, as defined in the "Download Image" node.
Set up Google Drive credentials š”„
⨠How To Get Started
Double-click the APImage API node. Replace YOUR_API_KEY with your actual key (keep Bearer prefix). Open the Generate Image node and test the form.
š Open the Dashboard š”„
š§ How to Customize
Replace the Form Trigger with another node if you're collecting data elsewhere (e.g., via Airtable, Notion, Webhook, Database, etc.) Modify the Upload node if you'd like to send the image to other tools like Slack, Notion, Email, or an S3 bucket.
š API Docs & Resources
APImage API Docs 𔄠n8n Documentation š”„
šļø Node Connections
Generate Image ā APImage API ā Download Image ā Upload to Google Drive
ā This template is ideal for:
Content creators automating media generation SaaS integrations for AI tools Text-to-image pipelines
Related Templates
USDT And TRC20 Wallet Tracker API Workflow for n8n
Overview This n8n workflow is specifically designed to monitor USDT TRC20 transactions within a specified wallet. It u...
Automate Daily Keyword Research with Google Sheets, Suggest API & Custom Search
Who's it for This workflow is perfect for SEO specialists, marketers, bloggers, and content creators who want to automa...
Bulk Automated Google Drive Files Sharing and Direct Download Link Generation
This N8N workflow automates the process of sharing files from Google Drive. It includes OAuth2 authentication, batch pro...
š Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments