class

AI::Google::GoogleGenerativeAIImageModel

Inherits AI::Provider::ImageModel::V3 < Reference < Object

Google Generative AI image model.

Implements the ImageModelV3 interface for generating images using Google's Imagen API.

Constants

DEFAULT_MAX_IMAGES_PER_CALL = 4

Default max images per call.

Constructors

new(model_id : String, settings : ImageSettings, config : ImageConfig)
Source

Instance methods

do_generate(options : Provider::ImageModel::CallOptions) : Provider::ImageModel::Result

Generates images from a text prompt.

Source
max_images_per_call

Returns the maximum images per call.

Source
model_id

The model ID.

Source
provider

Returns the provider name.

Source
specification_version

Returns the specification version.

Source