output
    Preparing search index...

    Function generateImage

    • Use an image model to generate images from a prompt filename or object.

      The prompt supplies model, instructions, n, size, aspectRatio, seed, maxImagesPerCall, and providerOptions. Pass either a prompt filename with optional promptDir / variables, or a loaded or custom Prompt object. Other call arguments are images, mask, and abortSignal.

      Parameters

      Returns Promise<GenerateImageResult>

      AI SDK image response with result aliasing the first image.