{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/wowreveal-com/json-schema/wowreveal-com-generation-schema.json",
  "title": "Generation",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wowreveal-com-openapi.json#/components/schemas/Generation",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "kind": {
      "enum": [
        "image",
        "video",
        "audio"
      ]
    },
    "modelKey": {
      "type": "string"
    },
    "status": {
      "enum": [
        "queued",
        "running",
        "complete",
        "failed"
      ]
    },
    "outputs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Signed link, valid 24 hours."
          },
          "downloadUrl": {
            "type": "string"
          },
          "mimeType": {
            "type": "string"
          },
          "width": {
            "type": "integer"
          },
          "height": {
            "type": "integer"
          },
          "durationSec": {
            "type": "number"
          }
        },
        "additionalProperties": true
      }
    },
    "creditsCharged": {
      "type": "integer"
    },
    "creditsRefunded": {
      "type": "integer"
    },
    "errorCode": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "errorMessage": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "status"
  ],
  "additionalProperties": true
}