@imgly/plugin-ai-image-generation-web
Version:
AI image generation plugin for the CE.SDK editor
23 lines (22 loc) • 869 B
TypeScript
import { type Provider, type ImageOutput } from '@imgly/plugin-ai-generation-web';
import type CreativeEditorSDK from '@cesdk/cesdk-js';
import { EachLabsProviderConfiguration } from './types';
/**
* Input interface for Flux 2 Flex text-to-image
*/
export type Flux2FlexInput = {
prompt: string;
image_size?: 'square_hd' | 'square' | 'portrait_4_3' | 'portrait_16_9' | 'landscape_4_3' | 'landscape_16_9';
};
/**
* Flux 2 Flex - Text-to-image generation via EachLabs with prompt expansion
*
* Features:
* - 6 image size options
* - Automatic prompt expansion using the model's knowledge
* - High-quality Flux 2 generation from Black Forest Labs
*/
export declare function Flux2Flex(config: EachLabsProviderConfiguration): (context: {
cesdk: CreativeEditorSDK;
}) => Promise<Provider<'image', Flux2FlexInput, ImageOutput>>;
export default Flux2Flex;