Class: OpenAI::Models::ImagesResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::ImagesResponse
- Defined in:
- lib/openai/models/images_response.rb
Overview
Defined Under Namespace
Classes: Usage
Instance Attribute Summary collapse
-
#created ⇒ Integer
The Unix timestamp (in seconds) of when the image was created.
-
#data ⇒ Array<OpenAI::Models::Image>?
The list of generated images.
-
#usage ⇒ OpenAI::Models::ImagesResponse::Usage?
For ‘gpt-image-1` only, the token usage information for the image generation.
Instance Method Summary collapse
-
#initialize(created: , data: nil, usage: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see ImagesResponse for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(created: , data: nil, usage: nil) ⇒ Object
Some parameter documentations has been truncated, see OpenAI::Models::ImagesResponse for more details.
The response from the image generation endpoint.
|
# File 'lib/openai/models/images_response.rb', line 25
|
Instance Attribute Details
#created ⇒ Integer
The Unix timestamp (in seconds) of when the image was created.
11 |
# File 'lib/openai/models/images_response.rb', line 11 required :created, Integer |
#data ⇒ Array<OpenAI::Models::Image>?
The list of generated images.
17 |
# File 'lib/openai/models/images_response.rb', line 17 optional :data, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Image] } |
#usage ⇒ OpenAI::Models::ImagesResponse::Usage?
For ‘gpt-image-1` only, the token usage information for the image generation.
23 |
# File 'lib/openai/models/images_response.rb', line 23 optional :usage, -> { OpenAI::ImagesResponse::Usage } |