n8n
+ Pictify
Self-hosted workflow automation with full control and privacy.
About Integration
n8n is an open-source, self-hostable workflow automation tool. For teams that need to keep data on-premise or want maximum customization, n8n with Pictify provides powerful image generation while maintaining full control over your infrastructure.
Key Capabilities
Self-hosted option
Open source
Custom nodes support
Full data control
Common Use Cases
On-premise image generation
Custom workflow logic
Privacy-sensitive applications
Integration Guide
Prerequisites
- A Pictify account with an API key
- n8n installed (cloud or self-hosted)
- A template created in Pictify
Store Your API Key as a Credential
In n8n, go to Settings → Credentials → Add Credential. Create a "Header Auth" credential with your Pictify API key.
Name: Pictify API
Header Auth:
Name: Authorization
Value: Bearer YOUR_API_KEYUsing credentials keeps your API key secure and reusable across workflows.
Create a New Workflow
Click "New Workflow" in n8n. Add a trigger node—use Manual Trigger for testing or Webhook/Schedule for production.
Add an HTTP Request Node
Add an "HTTP Request" node and connect it to your trigger. This will call the Pictify API.
Configure the HTTP Request
Set up the node to POST to Pictify's render endpoint with your template configuration.
Method: POST
URL: https://api.pictify.io/v1/render
Authentication: Predefined Credential Type
Credential Type: Header Auth
Credential: Pictify API (created in step 1)
Send Headers: ON
Header Parameters:
Content-Type: application/json
Send Body: ON
Body Content Type: JSON
Specify Body: Using Fields Below
Body Parameters:
templateId: your-template-id
format: png
variables: {
"title": "{{ $json.title }}",
"subtitle": "{{ $json.subtitle }}"
}Use n8n expressions like {{ $json.fieldName }} to map data from previous nodes.
Test the Workflow
Click "Execute Workflow" to run a test. The HTTP node output will contain the generated image URL.
// Success output from HTTP node:
{
"success": true,
"imageUrl": "https://cdn.pictify.io/renders/abc123.png",
"renderTime": 1.5
}Process the Response
Add subsequent nodes to use the image URL. Common options: save to disk, upload to S3, update database, or send notification.
// Access the image URL in subsequent nodes:
{{ $json.imageUrl }}
// Example: Download the image with another HTTP node
Method: GET
URL: {{ $json.imageUrl }}
Response Format: FileBatch Processing with Loop
For generating multiple images, use the SplitInBatches node to process items one at a time and avoid rate limits.
// Workflow structure for batch:
Trigger → Get Data → SplitInBatches → HTTP Request (Pictify) → Merge → Save Results
// SplitInBatches settings:
Batch Size: 1
Options: Add pause between batches (1 second)The SplitInBatches node is essential for processing arrays without overwhelming the API.
Ready to build with n8n?
Get your API key in seconds and start generating images programmatically.