Member Junction
    Preparing search index...

    OpenAI GPT-4o Image implementation of the BaseImageGenerator class. Supports gpt-image-1.5 (December 2025) for native multimodal image generation.

    This replaces the older DALL-E models with OpenAI's GPT-4o native image generation capabilities, which produce higher quality results through the ChatGPT API.

    Hierarchy (View Summary)

    Index

    Constructors

    Accessors

    • get apiKey(): string

      Only sub-classes can access the API key

      Returns string

    Methods

    • 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

        Image as Buffer, base64 string, or URL

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

      Normalized image data