@imgly/plugin-ai-image-generation-web
Version:
AI image generation plugin for the CE.SDK editor
23 lines (22 loc) • 905 B
TypeScript
import { CommonProviderConfiguration, type Provider } from '@imgly/plugin-ai-generation-web';
import CreativeEditorSDK from '@cesdk/cesdk-js';
type IdeogramV3Input = {
prompt: string;
style?: 'AUTO' | 'GENERAL' | 'REALISTIC' | 'DESIGN';
image_size?: string | {
width: number;
height: number;
};
rendering_speed?: 'TURBO' | 'BALANCED' | 'QUALITY';
};
type IdeogramV3Output = {
kind: 'image';
url: string;
};
interface ProviderConfiguration extends CommonProviderConfiguration<IdeogramV3Input, IdeogramV3Output> {
}
export declare function IdeogramV3(config: ProviderConfiguration): (context: {
cesdk: CreativeEditorSDK;
}) => Promise<Provider<'image', IdeogramV3Input, IdeogramV3Output>>;
declare function getProvider(cesdk: CreativeEditorSDK, config: ProviderConfiguration): Provider<'image', IdeogramV3Input, IdeogramV3Output>;
export default getProvider;