{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pixnovia-com/json-schema/pixnovia-com-video-generate-request-schema.json",
  "title": "VideoGenerateRequest",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pixnovia-com-openapi.json#/components/schemas/VideoGenerateRequest",
  "type": "object",
  "required": [
    "prompt",
    "resolution",
    "aspect_ratio",
    "duration"
  ],
  "properties": {
    "prompt": {
      "type": "string",
      "description": "Text description of the video to generate."
    },
    "resolution": {
      "type": "string",
      "enum": [
        "480p",
        "768p",
        "1080p",
        "1440p"
      ],
      "description": "Video resolution (480p=$0.04/sec, 768p=$0.06/sec, 1080p=$0.08/sec, 1440p=$0.10/sec)"
    },
    "aspect_ratio": {
      "type": "string",
      "enum": [
        "landscape",
        "portrait"
      ],
      "description": "Video aspect ratio"
    },
    "duration": {
      "type": "integer",
      "minimum": 3,
      "maximum": 15,
      "description": "Duration in seconds"
    },
    "ref_files": {
      "type": "object",
      "description": "Optional reference files as base64 data URLs. Keys: ref_image_0 to ref_image_5 (JPEG/PNG/WebP, max 10MB each) and ref_audio_0 to ref_audio_2 (WAV only, max 10MB each)",
      "properties": {
        "ref_image_0": {
          "type": "string",
          "format": "byte",
          "description": "Reference image 0 as base64 data URL"
        },
        "ref_audio_0": {
          "type": "string",
          "format": "byte",
          "description": "Reference audio 0 as base64 data URL"
        }
      }
    }
  }
}