{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gen-pro/json-schema/gen-pro-generation-schema.json",
  "title": "Generation",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gen-pro-generations-api-openapi.yml#/components/schemas/Generation",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "processing",
        "completed",
        "failed",
        "stopped"
      ]
    },
    "user_job_type": {
      "type": "string"
    },
    "result": {
      "type": [
        "object",
        "null"
      ]
    },
    "failed_reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "output_resources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "thumbnail_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "object_type": {
            "type": "string",
            "description": "\"Video\", \"Image\", etc."
          },
          "type": {
            "type": "string"
          }
        }
      }
    },
    "execution_cost": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}