generate_video
Create a video generation task and return its task_id. mode defaults to image-to-video when image_urls are given, else video-to-video when video_urls are given, else text-to-video. Omitted duration, resolution and aspect_ratio use the mode's defaults from get_video_model and are billed at those values. Ultra ViewMax C1 generations cost 0 credits within the daily fair-use pool (also via REST API); otherwise this consumes credits from the authenticated ViewMax account. Call wait_for_task with the task_id until it finishes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| audio | No | ||
| model | Yes | ||
| prompt | Yes | ||
| duration | No | ||
| image_urls | No | ||
| resolution | No | ||
| video_urls | No | ||
| aspect_ratio | No | ||
| idempotency_key | No | Optional, 1-200 visible ASCII characters without spaces. Reuse the same key when retrying after a timeout; a repeated key returns the original task and is not charged again. | |
| source_video_duration_seconds | No |