{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amnt-io/json-schema/amnt-io-svg-response-schema.json",
  "title": "SvgResponse",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amnt-io-openapi.json#/components/schemas/SvgResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "svg": {
      "type": "string"
    },
    "url": {
      "type": [
        "string",
        "null"
      ]
    },
    "files": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "width": {
      "type": "integer"
    },
    "height": {
      "type": "integer"
    },
    "paths": {
      "type": "integer"
    },
    "colors": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "bytes": {
      "type": "integer"
    },
    "layers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "paths": {
            "type": "integer"
          },
          "colors": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    "score": {
      "type": [
        "object",
        "null"
      ],
      "description": "Quality score; null when there is nothing to compare against.",
      "properties": {
        "fidelity": {
          "type": "number"
        },
        "edge": {
          "type": "number"
        },
        "holes": {
          "type": "number"
        },
        "spill": {
          "type": "number"
        },
        "aspectOk": {
          "type": "boolean"
        }
      }
    },
    "model": {
      "type": "string",
      "description": "The AMNT SVG model asked for."
    },
    "ran": {
      "type": "string",
      "description": "The tier that made it (Auto picks one)."
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "price_usd": {
      "type": "number"
    },
    "balance_usd": {
      "type": "number"
    },
    "ms": {
      "type": "integer"
    }
  }
}