← All N8N workflows
Automation & utilitiesCodeHTTP RequestIfManual TriggerEdit Fields

Generate Graphic Wallpaper with Midjourney, GPT-4o-mini and Canvas APIs

Configured with HTTP Request, Switch, Wait. Review the connections and setup before adapting this template.

Workflow preview
Web / APIMidjourney GeneratorHTTP RequestTriggerWhen clicking TestworkflowManual TriggerCodeGet PromptCodeWeb / APIGet Midjourney TaskHTTP RequestWaitWait for MidjourneyGenerationWaitRoutingDetermine Whether theImage URL was FetchedIfRoutingCheck Image GenerationStatusSwitchWeb / APIDesign in CanvasHTTP RequestTransformGet Image UrlEdit FieldsWeb / APIGpt-4o-mini APIHTTP RequestTransformBasic ParamsEdit Fields

Node categories in this workflow

  • Web / API
  • Trigger
  • Code
  • Wait
  • Routing
  • Transform

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
Midjourney GeneratorWeb / APIHTTP RequestPOST
When clicking Test workflowTriggerManual TriggerSee node parameters
Get PromptCodeCodeSee node parameters
Get Midjourney TaskWeb / APIHTTP RequestSee node parameters
Wait for Midjourney GenerationWaitWaitSee node parameters
Determine Whether the Image URL was FetchedRoutingIfSee node parameters
Check Image Generation StatusRoutingSwitchSee node parameters
Design in CanvasWeb / APIHTTP RequestPOST
Get Image UrlTransformEdit FieldsSee node parameters
Gpt-4o-mini APIWeb / APIHTTP RequestPOST
Basic ParamsTransformEdit FieldsSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

None declared. HTTP requests and Code nodes may still need configuration.

Workflow notes

Generate Graphic Wallpaper with Midjourney, GPT-4o-mini and Canvas APIs

Generate Graphic Wallpaper with Midjourney, GPT-4o-mini and Canvas APIs

We design this workflow with PiAPI APIs and Canvas API with the purpose to produce a visually compelling image with resonant copy to spark emotional connection. 🙌 Wish you make a fantastic generation with our workflow!

Basic Params

Basic Params

In Basic Params node, you need to fill in your PiAPI key which you could check in My Account on PiAPI. Other information you need to provide is listed as follow📝:

  1. Theme. The theme refers to the topic that you want to talk about when you start your generation.
  2. Scenario. The scenario text usually describe your status about your feeling.
  3. Style. The style of the image.
  4. Example. The text example shown to LLM to describe a style t you want to generate.
  5. Image prompt. Image prompt is usually about the context of the image that you want to generate.
Design in Canvas API Node

Design in Canvas API Node

We make a final design with Canvas API. You could check the node code to make a template design more efficiently in Canvas. Also you could make various artworks with template library in Canvas. You could modify node parameters to or add more nodes to make more artworks in one role.

Generate Graphic Wallpaper with Midjourney, GPT-4o-mini and Canvas APIs

Generate Graphic Wallpaper with Midjourney, GPT-4o-mini and Canvas APIs

Purpose and structure

This folder contains the Generate Graphic Wallpaper with Midjourney, GPT-4o-mini and Canvas APIs workflow. Its executable nodes use code, httpRequest, if, manualTrigger, set, switch, wait. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

When clicking Test workflow

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Wait/1917_Wait_Code_Create_Webhook.json MIT; preserve source notices.

More in Automation & utilities