UNPKG

@imgly/plugin-ai-image-generation-web

Version:

AI image generation plugin for the CE.SDK editor

32 lines (31 loc) 956 B
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 [pro] * * Uses standard aspect ratios with icons available. */ export type Flux2ProInput = { prompt: string; aspect_ratio?: '1:1' | '16:9' | '9:16' | '4:3' | '3:4'; }; /** * FLUX.2 [pro] - Professional model from Black Forest Labs * * AIR: bfl:5@1 * * Features: * - Text-to-image and reference-to-image support * - Up to 9 reference images * - Prompt upsampling support * * Specifications: * - Resolution: 256-1920 pixels (multiples of 16) * - Max output: 4 megapixels * - Prompt: 1-3,000 characters */ export declare function Flux2Pro(config: RunwareProviderConfiguration): (context: { cesdk: CreativeEditorSDK; }) => Promise<Provider<'image', Flux2ProInput, ImageOutput>>; export default Flux2Pro;