@imgly/plugin-ai-video-generation-web
Version:
AI video generation plugin for the CE.SDK editor
33 lines (32 loc) • 1.02 kB
TypeScript
import { type Provider, type VideoOutput } from '@imgly/plugin-ai-generation-web';
import type CreativeEditorSDK from '@cesdk/cesdk-js';
import { RunwareProviderConfiguration } from './types';
/**
* Input interface for Sora 2 Image-to-Video
*/
export type Sora2Image2VideoInput = {
image_url: string;
prompt?: string;
format?: '1280x720' | '720x1280';
duration?: '4' | '8' | '12';
};
/**
* Sora 2 Image-to-Video - OpenAI's video generation from images
*
* AIR: openai:3@1
*
* Features:
* - First frame image input
* - Accurate physics simulation
* - Synchronized dialogue and high-fidelity visuals
*
* Specifications:
* - Prompt: 1-4,000 characters
* - Input image: 300-2048 pixels, 20MB max
* - Resolutions: 1280x720, 720x1280
* - Duration: 4, 8, or 12 seconds
*/
export declare function Sora2Image2Video(config: RunwareProviderConfiguration): (context: {
cesdk: CreativeEditorSDK;
}) => Promise<Provider<'video', Sora2Image2VideoInput, VideoOutput>>;
export default Sora2Image2Video;