UNPKG

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

Version:

AI image generation plugin for the CE.SDK editor

18 lines (17 loc) 865 B
import type CreativeEditorSDK from '@cesdk/cesdk-js'; import { type Provider, type ImageOutput, type GatewayProviderConfiguration, type GatewayInput } from '@imgly/plugin-ai-generation-web'; /** * Creates an image generation provider that talks to the IMG.LY gateway. * Supports both text2image and image2image — the provider auto-selects * the appropriate defaults based on `schema.capability` once the model * schema resolves. * * Customers can disable or override individual quick actions via * `config.supportedQuickActions`. * * @param modelId - The model identifier (e.g., 'fal-ai/flux/dev') * @param config - Gateway connection configuration */ export declare function GatewayProvider(modelId: string, config: GatewayProviderConfiguration): (context: { cesdk: CreativeEditorSDK; }) => Promise<Provider<'image', GatewayInput, ImageOutput>>;