{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trendswap-app/json-schema/trendswap-app-create-job-request-schema.json",
  "title": "CreateJobRequest",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trendswap-app-openapi.json#/components/schemas/CreateJobRequest",
  "type": "object",
  "required": [
    "template",
    "portrait_id",
    "idempotency_key"
  ],
  "properties": {
    "template": {
      "type": "string",
      "description": "Template ID (e.g. burning-bridges, bulin-47, topo-gigio, flying-tesla-roadster-ai, bby-wow-guy-ai)"
    },
    "portrait_id": {
      "type": "string",
      "description": "ID of an uploaded portrait photo obtained from POST /api/portraits"
    },
    "secondary_portrait_id": {
      "type": "string",
      "description": "Optional second portrait ID for duo / couple templates"
    },
    "resolution": {
      "type": "string",
      "enum": [
        "480p",
        "720p",
        "1080p"
      ],
      "default": "480p",
      "description": "Output video resolution (480p is fast & recommended for Zapier automations)"
    },
    "format": {
      "type": "string",
      "enum": [
        "vertical",
        "horizontal"
      ],
      "default": "vertical",
      "description": "Video aspect orientation (vertical 9:16 or horizontal 16:9)"
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 128,
      "description": "Unique client-generated idempotency key to prevent duplicate charges"
    }
  }
}