I am trying to understand APIs in order to make a tool for generating AI images using replicate.com API.
I am able to GET a list of images that have been generated.
I am also able to POST using the info below.
This all works. And the generated image appears on replicate.
The only problem is that the list I GET does not update when a new image is generated. I believe the webook field below is supposed to contain a link on my site that will receive the updated data, but I dont know what to put there.
Any help would be appreciated.
return {
"version":
"aff48af9c68d162388d230a2ab003f68d2638d88307bdaf1c2f1ac95079c9613",
"input":
{
"image":"https://cdn.weweb.io/designs/d6d23d03-d243-4e93-a12d-0894127d67b1/sections/00036-4043749077.png?_wwcv=1686217442920",
"prompt": variables[/* prompt input - value */ '485d128e-e47f-413e-860f-d059c46e30a5-value'],
"num_samples":"1",
"image_resolution": "512",
"low_threshold": 100,
"high_threshold":200,
"ddim_steps":20,
"scale":9,
"seed":235232,
"eta":0,
"a_prompt":"longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
"n_prompt":"longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality"},
"webhook":
"",
"webhook_events_filter":
["completed"]
}