Class: RunApi::PixVerse::Client
- Inherits:
-
Core::Client
- Object
- Core::Client
- RunApi::PixVerse::Client
- Defined in:
- lib/runapi/pixverse/client.rb
Overview
PixVerse V6 video generation, editing, transition, and extension API client.
Instance Attribute Summary collapse
-
#edit_video ⇒ Resources::EditVideo
readonly
Video editing with text prompts and reference images.
-
#extend_video ⇒ Object
readonly
Returns the value of attribute extend_video.
-
#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.
-
#transition_video ⇒ Object
readonly
Returns the value of attribute transition_video.
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.
23 24 25 26 27 28 29 30 |
# File 'lib/runapi/pixverse/client.rb', line 23 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) @transition_video = Resources::TransitionVideo.new(http) @extend_video = Resources::ExtendVideo.new(http) end |
Instance Attribute Details
#edit_video ⇒ Resources::EditVideo (readonly)
Returns Video editing with text prompts and reference images.
19 20 21 |
# File 'lib/runapi/pixverse/client.rb', line 19 def edit_video @edit_video end |
#extend_video ⇒ Object (readonly)
Returns the value of attribute extend_video.
21 22 23 |
# File 'lib/runapi/pixverse/client.rb', line 21 def extend_video @extend_video end |
#image_to_video ⇒ Resources::ImageToVideo (readonly)
Returns Image-to-video animation from a first-frame image.
17 18 19 |
# File 'lib/runapi/pixverse/client.rb', line 17 def image_to_video @image_to_video end |
#text_to_video ⇒ Resources::TextToVideo (readonly)
Returns Text-to-video generation.
15 16 17 |
# File 'lib/runapi/pixverse/client.rb', line 15 def text_to_video @text_to_video end |
#transition_video ⇒ Object (readonly)
Returns the value of attribute transition_video.
20 21 22 |
# File 'lib/runapi/pixverse/client.rb', line 20 def transition_video @transition_video end |