module
AI::Provider::ImageModel::V3
Overview
Image Model V3 interface.
Implement this module to create an image generation model provider.
Direct including types
Defined in:
ai/provider/image_model/image_model.crInstance Method Summary
-
#do_generate(options : CallOptions) : Result
Generates an array of images.
-
#max_images_per_call : Int32 | Nil
Limit of how many images can be generated in a single API call.
-
#model_id : String
Provider-specific model ID for logging purposes.
-
#provider : String
Name of the provider for logging purposes.
-
#specification_version : String
Returns the specification version.
Instance Method Detail
Generates an array of images.
abstract
def max_images_per_call : Int32 | Nil
#
Limit of how many images can be generated in a single API call. Return nil for models that do not have a limit.