@imgly/plugin-ai-image-generation-web
Version:
AI image generation plugin for the CE.SDK editor
34 lines (33 loc) • 1.06 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 [dev]
*
* Uses standard aspect ratios with icons available.
*/
export type Flux2DevInput = {
prompt: string;
aspect_ratio?: '1:1' | '16:9' | '9:16' | '4:3' | '3:4';
};
/**
* FLUX.2 [dev] - Open weights release from Black Forest Labs
*
* AIR: runware:400@1
*
* Features:
* - Full architectural control for developers
* - Flexible sampling behavior and guidance strategies
* - Text-to-image and reference-to-image support
* - Up to 4 reference images
*
* Specifications:
* - Resolution: 512-2048 pixels (multiples of 16)
* - CFG Scale: 1-20 (default: 4)
* - Steps: 1-50
* - Prompt: 1-10,000 characters
*/
export declare function Flux2Dev(config: RunwareProviderConfiguration): (context: {
cesdk: CreativeEditorSDK;
}) => Promise<Provider<'image', Flux2DevInput, ImageOutput>>;
export default Flux2Dev;