UNPKG

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

Version:

AI image generation plugin for the CE.SDK editor

35 lines (34 loc) 1.14 kB
import { type Provider, type ImageOutput } from '@imgly/plugin-ai-generation-web'; import type CreativeEditorSDK from '@cesdk/cesdk-js'; import { RunwareProviderConfiguration } from './types'; /** * Input interface for FLUX.2 [flex] image-to-image */ export type Flux2FlexImage2ImageInput = { prompt: string; image_url?: string; image_urls?: string[]; }; /** * FLUX.2 [flex] Image-to-Image - Transform images using FLUX.2 [flex] * * AIR: bfl:6@1 * * Features: * - Flexible model from Black Forest Labs * - Image transformation with text prompts * - Up to 10 reference images * - Strongest text rendering accuracy in the FLUX family * - Excellent typography and branded design support * * Specifications: * - Resolution: 256-1920 pixels (multiples of 16) * - Max output: 4 megapixels * - Prompt: 1-3,000 characters * - CFG Scale: 1-20 (default: 2.5) * - Steps: 1-50 */ export declare function Flux2FlexImage2Image(config: RunwareProviderConfiguration): (context: { cesdk: CreativeEditorSDK; }) => Promise<Provider<'image', Flux2FlexImage2ImageInput, ImageOutput>>; export default Flux2FlexImage2Image;