@imgly/plugin-ai-image-generation-web
Version:
AI image generation plugin for the CE.SDK editor
35 lines (34 loc) • 1.09 kB
TypeScript
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]
*
* Uses standard aspect ratios with icons available.
*/
export type Flux2FlexInput = {
prompt: string;
aspect_ratio?: '1:1' | '16:9' | '9:16' | '4:3' | '3:4';
};
/**
* FLUX.2 [flex] - Flexible model from Black Forest Labs
*
* AIR: bfl:6@1
*
* Features:
* - Text-to-image and reference-to-image support
* - 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 Flux2Flex(config: RunwareProviderConfiguration): (context: {
cesdk: CreativeEditorSDK;
}) => Promise<Provider<'image', Flux2FlexInput, ImageOutput>>;
export default Flux2Flex;