{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/photoaistudio-com/json-schema/photoaistudio-com-prediction-list-schema.json",
  "title": "PredictionList",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/photoaistudio-com-openapi.yml#/components/schemas/PredictionList",
  "type": "object",
  "properties": {
    "predictions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Prediction"
      }
    }
  },
  "$defs": {
    "Prediction": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "state": {
          "type": "string",
          "enum": [
            "starting",
            "processing",
            "succeeded",
            "failed"
          ]
        },
        "result_url": {
          "type": "string",
          "format": "uri"
        },
        "credits_spent": {
          "type": "integer"
        }
      }
    }
  }
}