Skip to main content

Interface: ImageGenerationModelSettings

Hierarchy

Properties

numberOfGenerations

Optional numberOfGenerations: number

Number of images to generate.

Specifies the number of images the model should generate for a given prompt.

Does nothing if the model does not support this setting.

Example: numberOfGenerations: 2 // The model will produce 2 images

Defined in

packages/modelfusion/src/model-function/generate-image/ImageGenerationModel.ts:15


observers

Optional observers: FunctionObserver[]

Observers that are called when the model is used in run functions.

Inherited from

ModelSettings.observers

Defined in

packages/modelfusion/src/model-function/Model.ts:8