ImageModel

interface ImageModel(source)

Since

0.3.0-beta01

Inheritors

Properties

Link copied to clipboard

How many images this model produces per call, if limited. generateImage splits a request for more than this into ceil(n / limit) concurrent calls (was: passing n straight through, so a model capped at 1 returned 1 of n). Null = no limit.

Link copied to clipboard
abstract val modelId: String
Link copied to clipboard
open val provider: String

Functions

Link copied to clipboard
abstract suspend fun generate(params: ImageGenerationParams): ImageModelResult