Member Junction
    Preparing search index...

    Class BaseDiffusionAbstract

    Use BaseImageGenerator instead. This class is kept for backward compatibility.

    Hierarchy (View Summary)

    Index

    Constructors

    Accessors

    Methods

    • The result for a request its CancellationToken ended, before or during the provider call. A caller cancellation is classified Cancelled, Fatal and never failed over; an abort caused by a timeout reads as a retriable network error.

      Parameters

      • signal: AbortSignal

        The request's cancellation signal, read for why it was aborted.

      • Optionalerror: unknown

        The error the abort raised, if any.

      Returns ImageGenerationResult

    • Helper method to convert image input (Buffer, base64, or URL) to the format required by the specific provider. Subclasses can override as needed.

      Parameters

      • input: string | Buffer<ArrayBufferLike>

        Image as Buffer, base64 string, or URL

      Returns Promise<{ base64: string; buffer: Buffer }>

      Normalized image data