class
AI::OpenAI::OpenAIImageModel
- AI::OpenAI::OpenAIImageModel
- Reference
- Object
Overview
OpenAI Image Model.
Implements the ImageModelV3 interface for generating and editing images using OpenAI's DALL-E and GPT-Image APIs.
Included Modules
Defined in:
ai/openai/image/openai_image_model.crConstructors
Instance Method Summary
-
#do_generate(options : Provider::ImageModel::CallOptions) : Provider::ImageModel::Result
Generates images from a text prompt.
-
#max_images_per_call : Int32 | Nil
Returns the maximum images per call for this model.
-
#model_id : OpenAIImageModelId
The model ID.
-
#provider : String
Returns the provider name.
-
#specification_version : String
Returns the specification version.
Instance methods inherited from module AI::Provider::ImageModel::V3
do_generate(options : CallOptions) : Result
do_generate,
max_images_per_call : Int32 | Nil
max_images_per_call,
model_id : String
model_id,
provider : String
provider,
specification_version : String
specification_version
Constructor Detail
def self.new(model_id : OpenAIImageModelId, config : OpenAIConfig, current_date_proc : Proc(Time) | Nil = nil)
#
Instance Method Detail
Generates images from a text prompt.