n8n Integration
Automate your visual workflows using the n8n open source HTTP Request node.
1
Add an HTTP Request Node
In your n8n workflow canvas, click the + button and search for HTTP Request. Add the node to your workflow.
2
Configure Node Parameters
Set the parameters inside the node settings:
Method
POST
URL
https://pixgenx.com/api/v1/generate
Authentication
None (We will pass it in headers)
3
Add Headers & Body
Toggle the Send Headers and Send Body options to ON.
Headers Settings:
Name: Authorization → Value: Bearer YOUR_API_KEY
Name: Content-Type → Value: application/json
For the Body Parameters, use the JSON format and paste the following, mapping your previous nodes for dynamic prompts:
{
"prompt": "={{ $json.body.conceptText }}",
"ratio": "16:9"
}Test the node
Click Execute Node. n8n will make the request to PixGenX. Once it finishes, the imageUrl property will be available in the output JSON for the rest of your automation.