Class: RunApi::IdeogramV3::Client
- Inherits:
-
Object
- Object
- RunApi::IdeogramV3::Client
- Defined in:
- lib/runapi/ideogram_v3/client.rb
Overview
Ideogram V3 image generation API client.
Instance Attribute Summary collapse
- #edit_image ⇒ Resources::TextToImage, ... readonly
- #remix_image ⇒ Resources::TextToImage, ... readonly
- #text_to_image ⇒ Resources::TextToImage, ... 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.
19 20 21 22 23 24 25 26 27 |
# File 'lib/runapi/ideogram_v3/client.rb', line 19 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_image = Resources::TextToImage.new(http) @edit_image = Resources::EditImage.new(http) @remix_image = Resources::RemixImage.new(http) end |
Instance Attribute Details
#edit_image ⇒ Resources::TextToImage, ... (readonly)
17 18 19 |
# File 'lib/runapi/ideogram_v3/client.rb', line 17 def edit_image @edit_image end |
#remix_image ⇒ Resources::TextToImage, ... (readonly)
17 18 19 |
# File 'lib/runapi/ideogram_v3/client.rb', line 17 def remix_image @remix_image end |
#text_to_image ⇒ Resources::TextToImage, ... (readonly)
17 18 19 |
# File 'lib/runapi/ideogram_v3/client.rb', line 17 def text_to_image @text_to_image end |