Describes a single AI image generation model offered by a provider, including its name, owning provider and the image sizes it supports. Instances are returned by ImageGenerationManager.getAvailableModels() and ImageProvider.getGlobalModels() / getTenantModels(), and are selected when building ImageGenerationOptions.


Properties

PropertyReturnsDescription
nameStringThe name of this model, used to look it up via ImageGenerationManager.getModelByName() and referenced when building ImageGenerationOptions.
providerStringThe name of the provider that owns this model, matched against ImageProvider.getName() when routing a generation request.
sizesList<String>The image sizes this model supports, for example "1024x1024". Used to validate or populate the size on ImageGenerationOptions.

Methods

getName()

Returns: String

The name of this model, used to look it up via ImageGenerationManager.getModelByName() and referenced when building ImageGenerationOptions.

getProvider()

Returns: String

The name of the provider that owns this model, matched against ImageProvider.getName() when routing a generation request.

getSizes()

Returns: List<String>

The image sizes this model supports, for example "1024x1024". Used to validate or populate the size on ImageGenerationOptions.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.