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 Mini image-to-image */ export type GptImage1MiniImage2ImageInput = { prompt: string; image_url?: string; image_urls?: string[]; format?: '1024x1024' | '1536x1024' | '1024x1536'; }; /** * GPT Image 1 Mini Image-to-Image - Transform images using OpenAI's GPT Image 1 Mini * * AIR: openai:1@2 * * Features: * - ~80% cost savings compared to GPT Image 1 * - Fast generation times * - Instruction-based image transformation * - Up to 16 reference images supported * * Specifications: * - Prompt: up to 32,000 characters * - Output dimensions: 1024×1024, 1536×1024, 1024×1536 */ export declare function GptImage1MiniImage2Image(config: RunwareProviderConfiguration): (context: { cesdk: CreativeEditorSDK; }) => Promise<Provider<'image', GptImage1MiniImage2ImageInput, ImageOutput>>; export default GptImage1MiniImage2Image;