Class: RunApi::Imagen4::Client
- Inherits:
-
Core::Client
- Object
- Core::Client
- RunApi::Imagen4::Client
- Defined in:
- lib/runapi/imagen_4/client.rb
Overview
Imagen 4 text-to-image and remix API client.
Three text-to-image quality tiers (imagen-4, imagen-4-fast, imagen-4-ultra) and a dedicated remix model for guided image transformation.
Instance Attribute Summary collapse
-
#remix_image ⇒ Resources::RemixImage
readonly
Remix existing images with text-guided transformations.
-
#text_to_image ⇒ Resources::TextToImage
readonly
Text-to-image generation across quality tiers.
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.
21 22 23 24 25 |
# File 'lib/runapi/imagen_4/client.rb', line 21 def initialize(api_key: nil, **) super @text_to_image = Resources::TextToImage.new(http) @remix_image = Resources::RemixImage.new(http) end |
Instance Attribute Details
#remix_image ⇒ Resources::RemixImage (readonly)
Returns Remix existing images with text-guided transformations.
19 20 21 |
# File 'lib/runapi/imagen_4/client.rb', line 19 def remix_image @remix_image end |
#text_to_image ⇒ Resources::TextToImage (readonly)
Returns Text-to-image generation across quality tiers.
17 18 19 |
# File 'lib/runapi/imagen_4/client.rb', line 17 def text_to_image @text_to_image end |