class AI::Google::GoogleGenerativeAIImageModel

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.cr

Constant Summary

DEFAULT_MAX_IMAGES_PER_CALL = 4

Default max images per call.

Constructors

Instance Method Summary

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 : String, settings : ImageSettings, config : ImageConfig) #

[View source]

Instance Method Detail

Generates images from a text prompt.


[View source]
def max_images_per_call : Int32 | Nil #

Returns the maximum images per call.


[View source]
def model_id : String #

The model ID.


[View source]
def provider : String #

Returns the provider name.


[View source]
def specification_version : String #

Returns the specification version.


[View source]