{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nicevois-com/json-schema/nicevois-com-create-training-job-schema.json",
  "title": "CreateTrainingJob",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nicevois-com-openapi.json#/components/schemas/CreateTrainingJob",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "fileName",
    "contentType",
    "sizeBytes",
    "durationSeconds",
    "epochs",
    "modelName",
    "submissionId"
  ],
  "properties": {
    "fileName": {
      "type": "string",
      "maxLength": 255,
      "description": "Original WAV, MP3, FLAC, M4A, or OGG filename."
    },
    "contentType": {
      "type": "string",
      "maxLength": 120
    },
    "sizeBytes": {
      "type": "integer",
      "minimum": 1
    },
    "durationSeconds": {
      "type": "number",
      "exclusiveMinimum": 0
    },
    "epochs": {
      "type": "integer",
      "description": "Use the current limits returned by getTrainingRequirements."
    },
    "modelName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80
    },
    "submissionId": {
      "type": "string",
      "minLength": 8,
      "maxLength": 80,
      "description": "A client-generated idempotency identifier."
    },
    "acceptsStandingAgreement": {
      "const": true,
      "description": "Set only after the user explicitly accepts the linked standing voice-training agreement. Omit when the current agreement is already recorded for the account."
    },
    "trainingEngine": {
      "type": "string",
      "enum": [
        "rvc",
        "nicevois"
      ],
      "default": "rvc",
      "description": "rvc: Standard RVC (.pth, .index, ZIP). nicevois: NiceVois Training, Seed-VC with a finishing pass (complete ZIP)."
    }
  }
}