Skip to main content

Interface: StabilityImageGenerationSettings

Hierarchy

Properties

api

Optional api: ApiConfiguration

Defined in

packages/modelfusion/src/model-provider/stability/StabilityImageGenerationModel.ts:78


cfgScale

Optional cfgScale: number

How strictly the diffusion process adheres to the prompt text (higher values keep your image closer to your prompt)

Defined in

packages/modelfusion/src/model-provider/stability/StabilityImageGenerationModel.ts:88


clipGuidancePreset

Optional clipGuidancePreset: "NONE" | "FAST_BLUE" | "FAST_GREEN" | "SIMPLE" | "SLOW" | "SLOWER" | "SLOWEST"

Defined in

packages/modelfusion/src/model-provider/stability/StabilityImageGenerationModel.ts:90


height

Optional height: number

Defined in

packages/modelfusion/src/model-provider/stability/StabilityImageGenerationModel.ts:82


model

model: StabilityImageGenerationModelType

Defined in

packages/modelfusion/src/model-provider/stability/StabilityImageGenerationModel.ts:80


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

Inherited from

ImageGenerationModelSettings.numberOfGenerations

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

ImageGenerationModelSettings.observers

Defined in

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


sampler

Optional sampler: "DDIM" | "DDPM" | "K_DPMPP_2M" | "K_DPMPP_2S_ANCESTRAL" | "K_DPM_2" | "K_DPM_2_ANCESTRAL" | "K_EULER" | "K_EULER_ANCESTRAL" | "K_HEUN" | "K_LMS"

Which sampler to use for the diffusion process. If this value is omitted we'll automatically select an appropriate sampler for you.

Defined in

packages/modelfusion/src/model-provider/stability/StabilityImageGenerationModel.ts:96


seed

Optional seed: number

Random noise seed (omit this option or use 0 for a random seed).

Defined in

packages/modelfusion/src/model-provider/stability/StabilityImageGenerationModel.ts:101


steps

Optional steps: number

Number of diffusion steps to run.

Defined in

packages/modelfusion/src/model-provider/stability/StabilityImageGenerationModel.ts:106


stylePreset

Optional stylePreset: "3d-model" | "analog-film" | "anime" | "cinematic" | "comic-book" | "digital-art" | "enhance" | "fantasy-art" | "isometric" | "line-art" | "low-poly" | "modeling-compound" | "neon-punk" | "origami" | "photographic" | "pixel-art" | "tile-texture"

Pass in a style preset to guide the image model towards a particular style.

Defined in

packages/modelfusion/src/model-provider/stability/StabilityImageGenerationModel.ts:111


width

Optional width: number

Defined in

packages/modelfusion/src/model-provider/stability/StabilityImageGenerationModel.ts:83