{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aiworkstation-cn/json-schema/aiworkstation-cn-aiimage-workbench-task-request-schema.json",
  "title": "AIImageWorkbenchTaskRequest",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aiworkstation-cn-openapi.json#/components/schemas/AIImageWorkbenchTaskRequest",
  "properties": {
    "client_id": {
      "type": "string",
      "title": "Client Id"
    },
    "thread_id": {
      "type": "string",
      "maxLength": 64,
      "minLength": 1,
      "title": "Thread Id"
    },
    "prompt": {
      "type": "string",
      "maxLength": 8000,
      "minLength": 1,
      "title": "Prompt"
    },
    "mode": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 32
        },
        {
          "type": "null"
        }
      ],
      "title": "Mode",
      "default": "auto"
    },
    "capability": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 32
        },
        {
          "type": "null"
        }
      ],
      "title": "Capability",
      "default": "default"
    },
    "ratio": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 16
        },
        {
          "type": "null"
        }
      ],
      "title": "Ratio",
      "default": "auto"
    },
    "quality": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 16
        },
        {
          "type": "null"
        }
      ],
      "title": "Quality",
      "default": "auto"
    },
    "input_file_ids": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Input File Ids"
    },
    "input_image_urls": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Input Image Urls"
    },
    "mask_file_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 120
        },
        {
          "type": "null"
        }
      ],
      "title": "Mask File Id"
    },
    "count": {
      "type": "integer",
      "minimum": 1.0,
      "title": "Count",
      "default": 1
    },
    "append_user_message": {
      "type": "boolean",
      "title": "Append User Message",
      "default": true
    },
    "wait_for_completion": {
      "type": "boolean",
      "title": "Wait For Completion",
      "default": false
    },
    "target_assistant_message_uid": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Target Assistant Message Uid"
    },
    "target_user_message_uid": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Target User Message Uid"
    },
    "task_ids": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Task Ids"
    },
    "skip_quota_internal": {
      "type": "boolean",
      "title": "Skip Quota Internal",
      "default": false
    },
    "member_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 120
        },
        {
          "type": "null"
        }
      ],
      "title": "Member Id"
    },
    "username": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 120
        },
        {
          "type": "null"
        }
      ],
      "title": "Username"
    },
    "invite_code": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Invite Code"
    },
    "memory_enabled": {
      "type": "boolean",
      "title": "Memory Enabled",
      "default": false
    },
    "terminal": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 32
        },
        {
          "type": "null"
        }
      ],
      "title": "Terminal"
    },
    "locale": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 16
        },
        {
          "type": "null"
        }
      ],
      "title": "Locale",
      "default": "en"
    }
  },
  "type": "object",
  "required": [
    "client_id",
    "thread_id",
    "prompt"
  ]
}