Module: RunApi::HappyHorse::Types

Defined in:
lib/runapi/happyhorse/types.rb

Overview

Type definitions and constants for HappyHorse video generation and editing.

Defined Under Namespace

Classes: CompletedTextToVideoResponse, MediaUrl, TextToVideoResponse

Constant Summary collapse

TEXT_TO_VIDEO_MODEL =

Standard text-to-video model.

"happyhorse-text-to-video"
CHARACTER_MODEL =

Character-consistent model; requires 1-9 reference_image_urls.

"happyhorse-character"
TEXT_TO_VIDEO_MODELS =

All text-to-video model variants.

[TEXT_TO_VIDEO_MODEL, CHARACTER_MODEL].freeze
IMAGE_TO_VIDEO_MODEL =
"happyhorse-image-to-video"
EDIT_VIDEO_MODEL =
"happyhorse-edit-video"
OUTPUT_RESOLUTIONS =

Output resolution options. Defaults to 1080p.

%w[720p 1080p].freeze
ASPECT_RATIOS =

Aspect ratio options. Defaults to 16:9.

%w[16:9 9:16 1:1 4:3 3:4].freeze
AUDIO_SETTINGS =

Audio handling for video editing: “auto” lets the model decide, “original” preserves source audio.

%w[auto original].freeze
DURATION_RANGE =

Duration range in seconds (3-15). Defaults to 5.

(3..15)
SEED_RANGE =

Reproducibility seed range.

(0..2_147_483_647)
ImageToVideoResponse =
TextToVideoResponse
CompletedImageToVideoResponse =
CompletedTextToVideoResponse
EditVideoResponse =
TextToVideoResponse
CompletedEditVideoResponse =
CompletedTextToVideoResponse