UNPKG

@favdevs/payload-ai

Version:

<p align="center"> <img alt="Payload AI Plugin" src="assets/payload-ai-intro.gif" width="100%" /> </p>

10 lines (9 loc) 379 B
import type { GenerateImageParams } from '../../../types.js'; export declare const generateImage: (prompt: string, { aspectRatio, model, outputMimeType, }?: GenerateImageParams & { aspectRatio?: "1:1" | "3:4" | "4:3" | "9:16" | "16:9"; model?: string; outputMimeType?: "image/jpeg" | "image/png"; }) => Promise<{ alt: string; buffer: Buffer<ArrayBuffer>; }>;