Class: OpenAI::Models::ImageCreateVariationParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::ImageCreateVariationParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/openai/models/image_create_variation_params.rb
Overview
Defined Under Namespace
Modules: Model, ResponseFormat, Size
Instance Attribute Summary collapse
-
#image ⇒ Pathname, ...
The image to use as the basis for the variation(s).
-
#model ⇒ String, ...
The model to use for image generation.
-
#n ⇒ Integer?
The number of images to generate.
-
#response_format ⇒ Symbol, ...
The format in which the generated images are returned.
-
#size ⇒ Symbol, ...
The size of the generated images.
-
#user ⇒ String?
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.
Attributes included from Internal::Type::RequestParameters
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(image: , model: nil, n: nil, response_format: nil, size: nil, user: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see ImageCreateVariationParams for more details.
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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(image: , model: nil, n: nil, response_format: nil, size: nil, user: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see OpenAI::Models::ImageCreateVariationParams for more details.
|
# File 'lib/openai/models/image_create_variation_params.rb', line 53
|
Instance Attribute Details
#image ⇒ Pathname, ...
The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.
15 |
# File 'lib/openai/models/image_create_variation_params.rb', line 15 required :image, OpenAI::Internal::Type::FileInput |
#model ⇒ String, ...
The model to use for image generation. Only ‘dall-e-2` is supported at this time.
22 |
# File 'lib/openai/models/image_create_variation_params.rb', line 22 optional :model, union: -> { OpenAI::ImageCreateVariationParams::Model }, nil?: true |
#n ⇒ Integer?
The number of images to generate. Must be between 1 and 10.
28 |
# File 'lib/openai/models/image_create_variation_params.rb', line 28 optional :n, Integer, nil?: true |
#response_format ⇒ Symbol, ...
The format in which the generated images are returned. Must be one of ‘url` or `b64_json`. URLs are only valid for 60 minutes after the image has been generated.
36 |
# File 'lib/openai/models/image_create_variation_params.rb', line 36 optional :response_format, enum: -> { OpenAI::ImageCreateVariationParams::ResponseFormat }, nil?: true |
#size ⇒ Symbol, ...
The size of the generated images. Must be one of ‘256x256`, `512x512`, or `1024x1024`.
43 |
# File 'lib/openai/models/image_create_variation_params.rb', line 43 optional :size, enum: -> { OpenAI::ImageCreateVariationParams::Size }, nil?: true |
#user ⇒ String?
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](platform.openai.com/docs/guides/safety-best-practices#end-user-ids).
51 |
# File 'lib/openai/models/image_create_variation_params.rb', line 51 optional :user, String |
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/openai/models/image_create_variation_params.rb', line 94
|
.variants ⇒ Array(String, Symbol, OpenAI::Models::ImageModel)
|
# File 'lib/openai/models/image_create_variation_params.rb', line 81
|