{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/createprints-ai/json-schema/createprints-ai-create-artwork-json-schema.json",
  "title": "CreateArtworkJson",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/createprints-ai-openapi.yml#/components/schemas/CreateArtworkJson",
  "type": "object",
  "required": [
    "prompt",
    "size"
  ],
  "properties": {
    "inputType": {
      "type": "string",
      "enum": [
        "describe",
        "printPhoto",
        "interiorPhoto"
      ],
      "default": "describe"
    },
    "prompt": {
      "type": "string",
      "minLength": 1,
      "description": "Artwork description; required for JSON."
    },
    "size": {
      "type": "string",
      "pattern": "^[0-9]+x[0-9]+$",
      "description": "Width and height must be multiples of 16; longest side ≤3840 px; aspect ≤3:1; 655,360–8,294,400 total pixels. Prefer the selected variant's `generation.imageModelSize`."
    },
    "keywords": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "colors": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "styleId": {
      "type": [
        "string",
        "integer",
        "null"
      ]
    },
    "seedId": {
      "type": [
        "string",
        "null"
      ]
    },
    "forceOriginalPrompt": {
      "type": "boolean",
      "default": false
    },
    "referenceImageUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "revision": {
      "type": "boolean",
      "default": false
    }
  },
  "additionalProperties": true
}