class
AI::Google::GoogleGenerativeAIImageModel
- AI::Google::GoogleGenerativeAIImageModel
- Reference
- Object
Overview
Google Generative AI image model.
Implements the ImageModelV3 interface for generating images using Google's Imagen API.
Included Modules
Defined in:
ai/google/google_generative_ai_image_model.crConstant Summary
-
DEFAULT_MAX_IMAGES_PER_CALL =
4 -
Default max images per call.
Constructors
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.
-
#model_id : String
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
Instance Method Detail
Generates images from a text prompt.