UNPKG

@imgly/plugin-ai-image-generation-web

Version:

AI image generation plugin for the CE.SDK editor

16 lines (15 loc) 858 B
import { ImageOutput, CommonProviderConfiguration, type Provider } from '@imgly/plugin-ai-generation-web'; import CreativeEditorSDK from '@cesdk/cesdk-js'; type NanoBananaProInput = { prompt: string; aspect_ratio?: '1:1' | '3:2' | '2:3' | '4:3' | '3:4' | '16:9' | '9:16' | '21:9' | '9:21' | '2.4:1'; resolution?: '1K' | '2K' | '4K'; num_images?: number; sync_mode?: boolean; output_format?: 'jpeg' | 'png'; }; export declare function NanoBananaPro(config: CommonProviderConfiguration<NanoBananaProInput, ImageOutput>): (context: { cesdk: CreativeEditorSDK; }) => Promise<Provider<'image', NanoBananaProInput, ImageOutput>>; declare function getProvider(cesdk: CreativeEditorSDK, config: CommonProviderConfiguration<NanoBananaProInput, ImageOutput>): Provider<'image', NanoBananaProInput, ImageOutput>; export default getProvider;