Class: RunApi::HappyHorse::Client
- Inherits:
-
Core::Client
- Object
- Core::Client
- RunApi::HappyHorse::Client
- Defined in:
- lib/runapi/happyhorse/client.rb
Overview
HappyHorse video generation and editing API client.
Instance Attribute Summary collapse
-
#edit_video ⇒ Resources::EditVideo
readonly
Video editing with text prompts and reference images.
-
#image_to_video ⇒ Resources::ImageToVideo
readonly
Image-to-video animation from a first-frame image.
-
#text_to_video ⇒ Resources::TextToVideo
readonly
Text-to-video generation with optional character consistency.
Instance Method Summary collapse
-
#initialize(api_key: nil, **options) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(api_key: nil, **options) ⇒ Client
Returns a new instance of Client.
20 21 22 23 24 25 |
# File 'lib/runapi/happyhorse/client.rb', line 20 def initialize(api_key: nil, **) super @text_to_video = Resources::TextToVideo.new(http) @image_to_video = Resources::ImageToVideo.new(http) @edit_video = Resources::EditVideo.new(http) end |
Instance Attribute Details
#edit_video ⇒ Resources::EditVideo (readonly)
Returns Video editing with text prompts and reference images.
18 19 20 |
# File 'lib/runapi/happyhorse/client.rb', line 18 def edit_video @edit_video end |
#image_to_video ⇒ Resources::ImageToVideo (readonly)
Returns Image-to-video animation from a first-frame image.
16 17 18 |
# File 'lib/runapi/happyhorse/client.rb', line 16 def image_to_video @image_to_video end |
#text_to_video ⇒ Resources::TextToVideo (readonly)
Returns Text-to-video generation with optional character consistency.
14 15 16 |
# File 'lib/runapi/happyhorse/client.rb', line 14 def text_to_video @text_to_video end |