All-Images.ai
My Account
  • Welcome
  • All-Images.ai API
    • Overview
    • Authentication
    • Errors
    • Pagination
    • API Reference
      • Images
      • Images generation
      • API Keys
      • API Keys Webhook
    • API Explorer
  • Integration guide
    • Image generation
      • Create Image generation
      • Lifecycle of Image generation
    • Webhooks
      • Image generation
  • Changelog
    • API
Powered by GitBook
On this page

Was this helpful?

  1. Integration guide
  2. Webhooks

Image generation

PreviousWebhooksNextAPI

Last updated 1 year ago

Was this helpful?

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

The webhook contains and the. 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 status
Value of "Type" property

create

print.created

active

print.active

when one image is generated

print.progress

failed

print.failed

completed

print.completed

Image generation object
generic data