Class: RunApi::Veo31::Client
- Inherits:
-
Object
- Object
- RunApi::Veo31::Client
- Defined in:
- lib/runapi/veo_3_1/client.rb
Overview
Veo 3.1 video API client.
Instance Attribute Summary collapse
- #extend_video ⇒ Resources::TextToVideo, ... readonly
- #text_to_video ⇒ Resources::TextToVideo, ... readonly
- #upscale_video ⇒ Resources::TextToVideo, ... readonly
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.
18 19 20 21 22 23 24 25 26 |
# File 'lib/runapi/veo_3_1/client.rb', line 18 def initialize(api_key: nil, **) @api_key = Core::Auth.resolve_api_key(api_key) = Core::ClientOptions.new(api_key: @api_key, **) http = .http_client || Core::HttpClient.new() @text_to_video = Resources::TextToVideo.new(http) @extend_video = Resources::ExtendVideo.new(http) @upscale_video = Resources::UpscaleVideo.new(http) end |
Instance Attribute Details
#extend_video ⇒ Resources::TextToVideo, ... (readonly)
16 17 18 |
# File 'lib/runapi/veo_3_1/client.rb', line 16 def extend_video @extend_video end |
#text_to_video ⇒ Resources::TextToVideo, ... (readonly)
16 17 18 |
# File 'lib/runapi/veo_3_1/client.rb', line 16 def text_to_video @text_to_video end |
#upscale_video ⇒ Resources::TextToVideo, ... (readonly)
16 17 18 |
# File 'lib/runapi/veo_3_1/client.rb', line 16 def upscale_video @upscale_video end |