Block 1 - Upload image2
- Type / Role
- n8n-nodes-base.httpRequest - httpRequest
- Config choices
- Version 4.2
This workflow is provided as-is. Please review and test before using in production.
Prompt to Image Generator & WordPress Uploader (n8n Workflow) This workflow generates high quality AI images from text prompts using Leonardo AI , then automatically uploads the result to your Word...
n8n-nodes-base.httprequest, n8n-nodes-base.wait, n8n-nodes-base.stickynote, n8n-nodes-base.manualtrigger, n8n-nodes-base.code, n8n-nodes-base.executeworkflowtrigger, n8n-nodes-base.merge, n8n-nodes-base.aggregate
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Jay Emp0.
Original n8n.io sourceThis workflow generates high-quality AI images from text prompts using Leonardo AI, then automatically uploads the result to your WordPress media library and returns the final image URL.
It functions as a Modular Content Production (MCP) tool - ideal for AI agents or workflows that need to dynamically generate and store visual assets on-demand.
🧠 AI-Powered Generation
Uses Leonardo AI to create 1472x832px images from any text prompt, with enhanced contrast and style UUID preset.
☁️ WordPress Media Upload
Uploads the image as an attachment to your connected WordPress site via REST API.
☁️ Twitter Media Upload
Uploads the image to twitter so that you can post the image later on to X.com using the media_id
🔗 Returns Final URL
Outputs the publicly accessible image URL for immediate use in websites, blogs, or social media posts.
🔁 Workflow-Callable (MCP Compatible)
Can be executed standalone or triggered by another workflow. Acts as an image-generation microservice for larger automation pipelines.
image_url for content embedding or post-publishing| Field | Type | Description |
|---|---|---|
| prompt | string | Text prompt for image generation |
| slug | string | Filename identifier (e.g. hero-image) |
Example:
{
"prompt": "A futuristic city skyline at night",
"slug": "futuristic-city"
}
{
"public_image_url" : "https://your.wordpress.com/img-id",
"wordpress":{...obj},
"twitter":{...obj}
}
httpHeaderAuth for Leonardo headershttpBearerAuth for Leonardo bearer tokenwordpressApi for uploadExecute Workflow Trigger / Manual TriggerCode (Input Parser)HTTP Request → Leonardo image generationWait → 1 min delayHTTP Request → Poll generation resultHTTP Request → Download imageHTTP Request → Upload to WordPressCode → Return final image URL{
"prompt": "Batman typing on a laptop",
"slug": "batman-typing-on-a-laptop"
}
Will return:
{
"public_image_url": "https://articles.emp0.com/wp-content/uploads/2025/07/img-batman-typing-on-a-laptop.jpg"
}
This workflow is MCP-compliant—plug it into:
Trigger it from any parent AI agent that needs to generate an image based on a given idea, post, or instruction.
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.
| Workflow | Generate & upload images with Leonardo AI, WordPress and Twitter |
|---|---|
| Complexity | advanced |
| Nodes | 16 |
| Categories | Content Creation, Multimodal AI |
| Author | Jay Emp0 |
| Published | 24 Jul 2025 |
Use the JSON export at /data/workflows/6363/6363.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
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.
Prompt to Image Generator & WordPress Uploader (n8n Workflow) This workflow generates high quality AI images from text prompts using Leonardo AI , then automatically uploads the result to your Word...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
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.