Zapier

Zapier Integration

Use the Webhooks by Zapier module to bring serverless image generation to thousands of apps.

1

Add Webhooks by Zapier

In your Zap editor, add a new Action step. Search for Webhooks by Zapier. For the Event, select Custom Request.

2

Setup the Custom Request Action

Fill out the Action fields as follows:

Method
POST
URL
https://pixgenx.com/api/v1/generate
Data Pass-Through?
False
3

Add Data Payload

In the Data field, paste the raw JSON payload. You can click to mix in dynamic fields from previous Trigger steps! Note: do not add any extra quotes around Zapier pills.

{
  "prompt": "your dynamic prompt from trigger mapping",
  "ratio": "16:9"
}
4

Add Authentication Headers

Scroll down to the Headers section and add two crucial parameters exactly like this:

Header Name
Header Value
Authorization
Bearer YOUR_API_KEY
Content-Type
application/json

Test Step

Click Test in Zapier. Zapier will dispatch the request to PixGenX. The final imageUrl result will be returned to Zapier, which you can use in following Email/Social/Drive actions!