Class: RunApi::Gpt4oImage::Client
- Inherits:
-
Core::Client
- Object
- Core::Client
- RunApi::Gpt4oImage::Client
- Defined in:
- lib/runapi/gpt_4o_image/client.rb
Overview
GPT-4o Image generation and editing API client.
Supports pure text-to-image generation, image editing with source images, and inpainting with an optional mask.
Instance Attribute Summary collapse
-
#text_to_image ⇒ Resources::TextToImage
readonly
Image generation and editing operations.
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.
29 30 31 32 |
# File 'lib/runapi/gpt_4o_image/client.rb', line 29 def initialize(api_key: nil, **) super @text_to_image = Resources::TextToImage.new(http) end |
Instance Attribute Details
#text_to_image ⇒ Resources::TextToImage (readonly)
Returns Image generation and editing operations.
27 28 29 |
# File 'lib/runapi/gpt_4o_image/client.rb', line 27 def text_to_image @text_to_image end |