Module: RunApi::Hailuo::Types
- Defined in:
- lib/runapi/hailuo/types.rb
Overview
Type definitions and constants for Hailuo video generation.
Defined Under Namespace
Classes: CompletedVideoTaskResponse, MediaUrl, VideoTaskResponse
Constant Summary collapse
- TEXT_TO_VIDEO_MODELS =
Text-to-video model variants. Pro produces higher-fidelity output; Standard is faster with slightly lower quality. Prompts limited to 1500 characters.
%w[hailuo-02-text-to-video-pro hailuo-02-text-to-video-standard].freeze
- IMAGE_TO_VIDEO_MODELS =
Image-to-video model variants spanning two generations. 02 models: last-frame image, prompt optimizer, 512p/768p, 1500-char prompts. 2.3 models: 768p/1080p output, 5000-char prompts, no last-frame or prompt optimizer.
%w[ hailuo-02-image-to-video-pro hailuo-02-image-to-video-standard hailuo-2.3-image-to-video-pro hailuo-2.3-image-to-video-standard ].freeze
- DURATIONS =
Video duration options in seconds.
[6, 10].freeze
- IMAGE_02_RESOLUTIONS =
Output resolutions for 02 generation image-to-video models.
%w[512p 768p].freeze
- IMAGE_23_RESOLUTIONS =
Output resolutions for 2.3 generation image-to-video models. 1080p is not available with 10-second duration.
%w[768p 1080p].freeze