Skip to main content

Interface: OpenAIImageGenerationSettings

Hierarchy

Properties

api

Optional api: ApiConfiguration

Defined in

packages/modelfusion/src/model-provider/openai/OpenAIImageGenerationModel.ts:31


isUserIdForwardingEnabled

Optional isUserIdForwardingEnabled: boolean

Defined in

packages/modelfusion/src/model-provider/openai/OpenAIImageGenerationModel.ts:32


model

model: "dall-e-2" | "dall-e-3"

Inherited from

OpenAIImageGenerationCallSettings.model

Defined in

packages/modelfusion/src/model-provider/openai/OpenAIImageGenerationModel.ts:22


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


quality

Optional quality: "standard" | "hd"

Inherited from

OpenAIImageGenerationCallSettings.quality

Defined in

packages/modelfusion/src/model-provider/openai/OpenAIImageGenerationModel.ts:24


size

Optional size: "256x256" | "512x512" | "1024x1024" | "1792x1024" | "1024x1792"

Inherited from

OpenAIImageGenerationCallSettings.size

Defined in

packages/modelfusion/src/model-provider/openai/OpenAIImageGenerationModel.ts:23


style

Optional style: "vivid" | "natural"

Inherited from

OpenAIImageGenerationCallSettings.style

Defined in

packages/modelfusion/src/model-provider/openai/OpenAIImageGenerationModel.ts:25