Member Junction
    Preparing search index...

    Represents a single generated image from an image generation request. Supports multiple formats for maximum flexibility with different providers.

    Index

    Constructors

    Properties

    base64?: string

    Base64-encoded image data. Convenience representation of the data field. If data is populated, base64 will also be populated with the encoded value.

    contentFilterResults?: ContentFilterResult

    Optional content filter results from the provider

    data?: Buffer

    Raw binary image data. Either data or url will be populated, not both.

    format: "png" | "jpg" | "jpeg" | "webp" | "gif" = 'png'

    The image format/encoding

    height?: number

    Height of the generated image in pixels

    index?: number

    Provider-specific index when multiple images are generated

    url?: string

    URL to the generated image. Some providers return URLs instead of direct data. Either url or data will be populated, not both. URLs may be temporary and expire after a period of time.

    width?: number

    Width of the generated image in pixels