Templates / Generate AI images with APImage and upload to Google Drive

Generate AI images with APImage and upload to Google Drive

Ready for 3.0

by Gegenfeld βœ“ Β· 1,287 views Β· created 2025-07-24 Β· Content Creation, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

Nodes used (3)

Google Drive

What it does

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.). !AI Image Generate APImage.jpg(fileId:1860) 🧩 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: json { "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 YOURAPIKEY πŸ” 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: js {{ $json.images0 }} The image is stored in the output field: generatedimage --- 4. Upload to Google Drive This node takes the image from the generatedimage 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 YOURAPIKEY 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 APImage API Docs πŸ‘₯ n8n Documentation πŸ‘₯ --- πŸ–‡οΈ Node Connections text 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

View the original on n8n.io β†’ Check your own copy

Get the weekly β€œwhat broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.