UNPKG

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

Version:

AI image generation plugin for the CE.SDK editor

32 lines (31 loc) 1.09 kB
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 GPT Image 1 image-to-image */ export type GptImage1Image2ImageInput = { prompt: string; image_url?: string; image_urls?: string[]; format?: '1024x1024' | '1536x1024' | '1024x1536'; }; /** * GPT Image 1 Image-to-Image - Transform images using OpenAI's GPT Image 1 * * AIR: openai:1@1 * * Features: * - High-fidelity image editing with GPT-4o architecture * - Instruction-based image transformation * - Superior text rendering and prompt following * - Up to 16 reference images supported * * Specifications: * - Prompt: up to 32,000 characters * - Output dimensions: 1024×1024, 1536×1024, 1024×1536 */ export declare function GptImage1Image2Image(config: RunwareProviderConfiguration): (context: { cesdk: CreativeEditorSDK; }) => Promise<Provider<'image', GptImage1Image2ImageInput, ImageOutput>>; export default GptImage1Image2Image;