@imgly/plugin-ai-image-generation-web
Version:
AI image generation plugin for the CE.SDK editor
24 lines (23 loc) • 1.05 kB
TypeScript
import { type Provider, type CommonProviderConfiguration } from '@imgly/plugin-ai-generation-web';
import CreativeEditorSDK from '@cesdk/cesdk-js';
export interface SeedreamV4TextToImageInput {
prompt: string;
image_size?: 'square_hd' | 'square' | 'portrait_4_3' | 'portrait_16_9' | 'landscape_4_3' | 'landscape_16_9' | {
width: number;
height: number;
};
num_images?: number;
max_images?: number;
seed?: number;
sync_mode?: boolean;
enable_safety_checker?: boolean;
}
type SeedreamV4Output = {
kind: 'image';
url: string;
};
export declare function SeedreamV4(config: CommonProviderConfiguration<SeedreamV4TextToImageInput, SeedreamV4Output>): (context: {
cesdk: CreativeEditorSDK;
}) => Promise<Provider<'image', SeedreamV4TextToImageInput, SeedreamV4Output>>;
declare function getProvider(cesdk: CreativeEditorSDK, config: CommonProviderConfiguration<SeedreamV4TextToImageInput, SeedreamV4Output>): Provider<'image', SeedreamV4TextToImageInput, SeedreamV4Output>;
export default getProvider;