Skip to main content

Generate AI images with APImage and upload to Google Drive

Workflow preview

Workflow preview
100%
Generate AI images with APImage and upload to Google Drive preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 w...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.httprequest, n8n-nodes-base.stickynote, n8n-nodes-base.formtrigger, n8n-nodes-base.googledrive

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Gegenfeld.

Original n8n.io source

1.1 Workflow description

Title
Generate AI images with APImage and upload to Google Drive
Workflow name
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

1. 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.


2. 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 πŸ‘₯


3. 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


4. 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

  1. Double-click the APImage API node.
  2. Replace YOUR_API_KEY with your actual key (keep Bearer prefix).
  3. 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


πŸ–‡οΈ 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

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Download Image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 2 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - APImage API

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 6 - Generate Image

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.2

Block 7 - Upload file

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 8 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Generate AI images with APImage and upload to Google Drive
Complexity intermediate
Nodes 8
Categories Content Creation, Multimodal AI
Author Gegenfeld
Published 24 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6398/6398.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate AI images with APImage and upload to Google Drive do?

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 w...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.