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. The source video counts toward the five-video limit, so at most four additional video references are allowed.

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 an uploaded file, input and requested output must not exceed 30 seconds in total. With an input video from an external HTTPS URL, output is limited to 15 seconds. Invalid duration fails before funds are reserved.