Member Junction
    Preparing search index...

    Class ImageGenerationParams

    Parameters for text-to-image generation

    Index

    Constructors

    Properties

    aspectRatio?: string

    Aspect ratio as an alternative to explicit size. Format: "width:height" e.g., "16:9", "1:1", "9:16"

    model?: string

    Model name/ID to use for generation

    n?: number = 1

    Number of images to generate. Default is 1. Some providers have limits on the maximum number.

    negativePrompt?: string

    Negative prompt - things to avoid in the generated image. Not all providers support this.

    outputFormat?: ImageResponseFormat = 'b64_json'

    How the generated image should be returned

    prompt: string

    Text prompt describing the image to generate. Required.

    providerOptions?: Record<string, unknown>

    Provider-specific additional parameters

    quality?: ImageQuality = 'standard'

    Quality level for the generated image

    seed?: number

    Optional seed for reproducible generation. Not all providers support seeding.

    size?: string = '1024x1024'

    Size of the generated image(s)

    style?: string

    Style preset for the generated image

    user?: string

    User identifier for tracking/abuse prevention