{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/idphoto-ai/json-schema/idphoto-ai-aiedit-in-schema.json",
  "title": "AIEditIn",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/idphoto-ai-openapi.json#/components/schemas/AIEditIn",
  "properties": {
    "apiKey": {
      "type": "string",
      "title": "Apikey"
    },
    "apiSecret": {
      "type": "string",
      "title": "Apisecret"
    },
    "imageBase64": {
      "type": "string",
      "title": "Imagebase64"
    },
    "outputFormat": {
      "anyOf": [
        {
          "$ref": "#/$defs/ImageFormat"
        },
        {
          "type": "null"
        }
      ]
    },
    "outputType": {
      "anyOf": [
        {
          "$ref": "#/$defs/ImageType"
        },
        {
          "type": "null"
        }
      ],
      "description": "IMAGE_BASE64 (default) returns the edited image as Base64 in `output`. URL uploads the edited image and returns a presigned URL in `output`, valid for 2 days, together with `photoUuid`.",
      "default": "IMAGE_BASE64"
    }
  },
  "type": "object",
  "required": [
    "apiKey",
    "apiSecret",
    "imageBase64"
  ],
  "$defs": {
    "ImageFormat": {
      "type": "string",
      "enum": [
        "JPEG",
        "PNG"
      ],
      "title": "ImageFormat"
    },
    "ImageType": {
      "type": "string",
      "enum": [
        "URL",
        "IMAGE_BASE64"
      ],
      "title": "ImageType"
    }
  }
}