Module: RunApi::Hailuo
- Defined in:
- lib/runapi/hailuo.rb,
lib/runapi/hailuo/types.rb,
lib/runapi/hailuo/client.rb,
lib/runapi/hailuo/contract_gen.rb,
lib/runapi/hailuo/resources/text_to_video.rb,
lib/runapi/hailuo/resources/image_to_video.rb
Defined Under Namespace
Modules: Resources, Types Classes: Client
Constant Summary collapse
- AuthenticationError =
RunApi::Core::AuthenticationError
- RateLimitError =
RunApi::Core::RateLimitError
- InsufficientCreditsError =
RunApi::Core::InsufficientCreditsError
- NotFoundError =
RunApi::Core::NotFoundError
- ValidationError =
RunApi::Core::ValidationError
- TaskFailedError =
RunApi::Core::TaskFailedError
- TaskTimeoutError =
RunApi::Core::TaskTimeoutError
- CONTRACT =
{ "image-to-video" => { "models" => ["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"], "fields_by_model" => { "hailuo-02-image-to-video-pro" => { "duration_seconds" => { "type" => "integer" }, "first_frame_image_url" => { "required" => true } }, "hailuo-02-image-to-video-standard" => { "duration_seconds" => { "enum" => [6, 10], "type" => "integer" }, "first_frame_image_url" => { "required" => true }, "output_resolution" => { "enum" => ["512p", "768p"] } }, "hailuo-2.3-image-to-video-pro" => { "duration_seconds" => { "enum" => [6, 10], "type" => "integer" }, "first_frame_image_url" => { "required" => true }, "output_resolution" => { "enum" => ["768p", "1080p"] } }, "hailuo-2.3-image-to-video-standard" => { "duration_seconds" => { "enum" => [6, 10], "type" => "integer" }, "first_frame_image_url" => { "required" => true }, "output_resolution" => { "enum" => ["768p", "1080p"] } } } }, "text-to-video" => { "models" => ["hailuo-02-text-to-video-pro", "hailuo-02-text-to-video-standard"], "fields_by_model" => { "hailuo-02-text-to-video-pro" => { "duration_seconds" => { "type" => "integer" } }, "hailuo-02-text-to-video-standard" => { "duration_seconds" => { "enum" => [6, 10], "type" => "integer" } } } } }.freeze