{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/topxea-com/json-schema/topxea-com-video-request-schema.json",
  "title": "VideoRequest",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ai.topxea.com-openapi.json#/components/schemas/VideoRequest",
  "type": "object",
  "required": [
    "model",
    "prompt"
  ],
  "properties": {
    "model": {
      "type": "string",
      "const": "grok-imagine-video-1.5"
    },
    "prompt": {
      "type": "string"
    },
    "duration": {
      "type": "integer",
      "minimum": 1,
      "maximum": 15,
      "default": 8,
      "description": "Seconds of video; the fee is duration times the per-second price."
    },
    "resolution": {
      "type": "string",
      "enum": [
        "480p",
        "720p",
        "1080p"
      ],
      "default": "480p"
    },
    "image": {
      "description": "Image-to-video input, as xAI defines it."
    },
    "reference_images": {
      "type": "array",
      "items": {}
    },
    "aspect_ratio": {
      "type": "string"
    },
    "generate_audio": {
      "type": "boolean"
    }
  },
  "additionalProperties": true
}