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
| Property | Returns | Description |
|---|---|---|
| name | String | The name of this model, used to look it up via ImageGenerationManager.getModelByName() and referenced when building ImageGenerationOptions. |
| provider | String | The name of the provider that owns this model, matched against ImageProvider.getName() when routing a generation request. |
| sizes | List<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.