gensta DOCS
api-platform.gensta.ai/v1 Developer portal

Edit video

json
{
  "model": "wan-3.0",
  "mode": "video_edit",
  "variant": "prime",
  "parameters": {
    "resolution": "720p",
    "duration_seconds": 5,
    "ratio": "adaptive"
  },
  "input": {
    "prompt": "Change the weather from rain to warm sunlight",
    "video": {
      "locator": {
        "type": "https_url",
        "url": "https://cdn.example.com/input.mp4"
      }
    }
  }
}

video_edit can also include up to 19 typed references under input.references, subject to the per-kind limits.

Extend video

json
{
  "model": "wan-3.0",
  "mode": "video_extend",
  "variant": "standard",
  "parameters": {
    "resolution": "720p",
    "duration_seconds": 5,
    "ratio": "adaptive"
  },
  "input": {
    "prompt": "Continue the camera movement into the open valley",
    "direction": "forward",
    "video": {
      "locator": {
        "type": "media_asset",
        "media_asset_id": "7c74c900-8b68-4b0f-a337-32ed3a9a2020"
      }
    }
  }
}

direction is required and accepts forward or backward.

Duration rules

Both modes require parameters.ratio: adaptive. For a ready media asset, verified input plus requested output must not exceed 30 seconds. For a caller-hosted HTTPS video, Gensta reserves the 15-second maximum and therefore limits requested output to 15 seconds; Alibaba reports authoritative usage after success. Invalid duration fails before a wallet hold.