Image generation

For image generation, webhook is sent for the following status changes: create,active, completed, failed

The webhook contains generic data and the Image generation object. The typeproperty depends on the status change :

{
   "id": string,
   "api_version": number,
   "created": number,
   "type": string,
   "data": { // Image Generation
      "id": "string",
      "name": "string",
      "prompt": "string",
      "status": 0,
      "params": [
        {
          "name": "sujetMode",
          "value": "string"
        }
      ],
      "images": [
        {
          "id": "string",
          "url": "string",
          "validate": true,
          "free": true,
          "titles": {}
        }
      ],
      "nbImages": 0,
      "tags": [
        "string"
      ],
      "metaData": {},
      "createdAt": "2023-10-30T14:10:34.002Z"
    }
}
New statusValue of "Type" property

create

print.created

active

print.active

when one image is generated

print.progress

failed

print.failed

completed

print.completed

Last updated