{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vapagent-com/json-schema/vapagent-com-create-operation-request-schema.json",
  "title": "CreateOperationRequest",
  "description": "Request to create a new operation.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vapagent-com-openapi.json#/components/schemas/CreateOperationRequest",
  "properties": {
    "operation": {
      "type": "string",
      "title": "Operation",
      "description": "Operation type: inpaint, upscale, background_remove, ai_edit, video_trim, video_merge"
    },
    "media_url": {
      "type": "string",
      "title": "Media Url",
      "description": "URL of the input media file"
    },
    "prompt": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Prompt",
      "description": "Text prompt for operations that need it (e.g., inpaint)"
    },
    "mask_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Mask Url",
      "description": "Mask URL for inpaint operations"
    },
    "options": {
      "additionalProperties": true,
      "type": "object",
      "title": "Options",
      "description": "Operation-specific options"
    },
    "idempotency_key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Idempotency Key",
      "description": "Client-provided key for duplicate prevention"
    },
    "callback_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Callback Url",
      "description": "Webhook URL for completion notification"
    }
  },
  "type": "object",
  "required": [
    "operation",
    "media_url"
  ]
}