{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/imagenai/json-schema/imagenai-editing-project-client-request-schema.json",
  "title": "EditingProjectClientRequest",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/imagenai-openapi.yml#/components/schemas/EditingProjectClientRequest",
  "properties": {
    "profile_key": {
      "type": "integer",
      "title": "Profile Key"
    },
    "crop": {
      "type": "boolean",
      "title": "Crop",
      "default": false
    },
    "portrait_crop": {
      "type": "boolean",
      "title": "Portrait Crop",
      "default": false
    },
    "headshot_crop": {
      "type": "boolean",
      "title": "Headshot Crop",
      "default": false
    },
    "crop_aspect_ratio": {
      "anyOf": [
        {
          "$ref": "#/$defs/CropAspectRatio"
        },
        {
          "type": "null"
        }
      ],
      "description": "Aspect ratio for crop. If 'crop' is set to True and 'crop_aspect_ratio' is not provided, the default aspect ratio will be '2x3'. If 'portrait_crop' is set to True and 'crop_aspect_ratio' is not provided, the default aspect ratio will be '4x5'."
    },
    "hdr_merge": {
      "type": "boolean",
      "title": "Hdr Merge",
      "default": false
    },
    "straighten": {
      "type": "boolean",
      "title": "Straighten",
      "default": false
    },
    "subject_mask": {
      "type": "boolean",
      "title": "Subject Mask",
      "default": false
    },
    "photography_type": {
      "allOf": [
        {
          "$ref": "#/$defs/PhotographyType"
        }
      ],
      "default": "NO_TYPE"
    },
    "callback_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Callback Url"
    },
    "smooth_skin": {
      "type": "boolean",
      "title": "Smooth Skin",
      "default": false
    },
    "perspective_correction": {
      "type": "boolean",
      "title": "Perspective Correction",
      "default": false
    },
    "window_pull": {
      "type": "boolean",
      "title": "Window Pull",
      "default": false
    },
    "sky_replacement": {
      "type": "boolean",
      "title": "Sky Replacement",
      "default": false
    },
    "sky_replacement_template_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sky Replacement Template Id"
    },
    "hdr_output_compression": {
      "anyOf": [
        {
          "$ref": "#/$defs/DNGCompression"
        },
        {
          "type": "null"
        }
      ],
      "default": "LOSSY"
    },
    "post_editing_tools": {
      "anyOf": [
        {
          "$ref": "#/$defs/PostEditingToolsConfig"
        },
        {
          "type": "null"
        }
      ],
      "description": "Configure post-editing AI tools (background replacement, denoise) to run automatically after editing completes."
    }
  },
  "type": "object",
  "required": [
    "profile_key"
  ],
  "$defs": {
    "BackgroundReplacementToolConfig": {
      "properties": {
        "enabled": {
          "type": "boolean",
          "title": "Enabled"
        }
      },
      "type": "object",
      "required": [
        "enabled"
      ],
      "title": "BackgroundReplacementToolConfig"
    },
    "CropAspectRatio": {
      "type": "string",
      "enum": [
        "2X3",
        "4X5",
        "5X7"
      ],
      "title": "CropAspectRatio"
    },
    "DNGCompression": {
      "type": "string",
      "enum": [
        "LOSSY",
        "LOSSLESS"
      ],
      "title": "DNGCompression"
    },
    "DenoiseManualSettings": {
      "properties": {
        "strength": {
          "$ref": "#/$defs/DenoiseStrength"
        },
        "min_iso_level": {
          "$ref": "#/$defs/DenoiseMinIsoLevel"
        }
      },
      "type": "object",
      "required": [
        "strength",
        "min_iso_level"
      ],
      "title": "DenoiseManualSettings"
    },
    "DenoiseMinIsoLevel": {
      "type": "string",
      "enum": [
        "ALL",
        "3200",
        "4000",
        "5000",
        "6400",
        "8000",
        "10000",
        "12800"
      ],
      "title": "DenoiseMinIsoLevel"
    },
    "DenoiseMode": {
      "type": "string",
      "enum": [
        "AUTO",
        "MANUAL"
      ],
      "title": "DenoiseMode"
    },
    "DenoiseSettings": {
      "properties": {
        "mode": {
          "allOf": [
            {
              "$ref": "#/$defs/DenoiseMode"
            }
          ],
          "default": "AUTO"
        },
        "manual_settings": {
          "anyOf": [
            {
              "$ref": "#/$defs/DenoiseManualSettings"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object",
      "title": "DenoiseSettings"
    },
    "DenoiseStrength": {
      "type": "string",
      "enum": [
        "LEVEL_0",
        "LEVEL_1",
        "LEVEL_2",
        "LEVEL_3"
      ],
      "title": "DenoiseStrength"
    },
    "DenoiseToolConfig": {
      "properties": {
        "enabled": {
          "type": "boolean",
          "title": "Enabled"
        },
        "settings": {
          "anyOf": [
            {
              "$ref": "#/$defs/DenoiseSettings"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object",
      "required": [
        "enabled"
      ],
      "title": "DenoiseToolConfig"
    },
    "PhotographyType": {
      "type": "string",
      "enum": [
        "NO_TYPE",
        "OTHER",
        "PORTRAITS",
        "WEDDING",
        "REAL_ESTATE",
        "LANDSCAPE_NATURE",
        "EVENTS",
        "FAMILY_NEWBORN",
        "BOUDOIR",
        "SPORTS",
        "SCHOOL"
      ],
      "title": "PhotographyType"
    },
    "PostEditingToolsConfig": {
      "properties": {
        "denoise": {
          "anyOf": [
            {
              "$ref": "#/$defs/DenoiseToolConfig"
            },
            {
              "type": "null"
            }
          ]
        },
        "background_replacement": {
          "anyOf": [
            {
              "$ref": "#/$defs/BackgroundReplacementToolConfig"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object",
      "title": "PostEditingToolsConfig"
    }
  }
}