{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vee3-io/json-schema/vee3-io-image-generation-result-schema.json",
  "title": "ImageGenerationResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vee3-io-image-generation-api-openapi.yml#/components/schemas/ImageGenerationResult",
  "properties": {
    "generation_id": {
      "type": "string",
      "title": "Generation Id"
    },
    "status": {
      "type": "string",
      "title": "Status",
      "default": "completed"
    },
    "prompt": {
      "type": "string",
      "title": "Prompt"
    },
    "image_count": {
      "type": "integer",
      "title": "Image Count"
    },
    "token_cost": {
      "type": "integer",
      "title": "Token Cost"
    },
    "output_format": {
      "type": "string",
      "title": "Output Format"
    },
    "size": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Size"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "images": {
      "items": {
        "$ref": "#/$defs/StoredGeneratedImage"
      },
      "type": "array",
      "title": "Images"
    },
    "install_command": {
      "type": "string",
      "title": "Install Command"
    },
    "troubleshooting": {
      "type": "string",
      "title": "Troubleshooting"
    }
  },
  "type": "object",
  "required": [
    "generation_id",
    "prompt",
    "image_count",
    "token_cost",
    "output_format",
    "created_at",
    "images",
    "install_command",
    "troubleshooting"
  ],
  "$defs": {
    "StoredGeneratedImage": {
      "properties": {
        "image_url": {
          "type": "string",
          "title": "Image Url"
        },
        "file_name": {
          "type": "string",
          "title": "File Name"
        },
        "file_size_bytes": {
          "type": "integer",
          "title": "File Size Bytes"
        },
        "retained_until": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Retained Until"
        },
        "download_code": {
          "type": "string",
          "title": "Download Code"
        },
        "download_id": {
          "type": "string",
          "title": "Download Id"
        },
        "expires_at": {
          "type": "string",
          "format": "date-time",
          "title": "Expires At"
        },
        "command": {
          "type": "string",
          "title": "Command"
        }
      },
      "type": "object",
      "required": [
        "image_url",
        "file_name",
        "file_size_bytes",
        "download_code",
        "download_id",
        "expires_at",
        "command"
      ],
      "title": "StoredGeneratedImage"
    }
  }
}