@imgly/plugin-ai-image-generation-web
Version:
AI image generation plugin for the CE.SDK editor
24 lines (23 loc) • 880 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 Nano Banana Pro text-to-image
*/
export type NanoBananaProInput = {
prompt: string;
aspect_ratio?: '1:1' | '16:9' | '9:16' | '4:3' | '3:4' | '3:2' | '2:3' | '21:9' | '5:4' | '4:5';
resolution?: '1K' | '2K' | '4K';
};
/**
* Nano Banana Pro - Multi-style AI image generation model via EachLabs
*
* Features:
* - 10 aspect ratio options
* - Multiple resolution options (1K, 2K, 4K)
* - High-quality multi-style generation
*/
export declare function NanoBananaPro(config: EachLabsProviderConfiguration): (context: {
cesdk: CreativeEditorSDK;
}) => Promise<Provider<'image', NanoBananaProInput, ImageOutput>>;
export default NanoBananaPro;