stability-ai
Version:
Node SDK for Stability AI REST API
31 lines (30 loc) • 1.07 kB
TypeScript
import { StabilityAIContentResponse, StabilityAIStatusResult } from '../../util';
import StabilityAI from '../..';
export type ImageToVideoRequest = [
image: string,
cfgScale?: number,
motionBucketId?: number,
options?: {
seed?: number;
}
];
export type ImageToVideoResponse = {
id: string;
};
/**
* Stability AI Stable Video Image to Video (v2beta)
*
* @param image - URL or filepath of the image to convert to video
* @param options - Image to Video Options
*/
export declare function imageToVideo(this: StabilityAI, image: string, cfgScale?: number, motionBucketId?: number, options?: {
seed?: number;
}): Promise<ImageToVideoResponse>;
export type ImageToVideoResultRequest = [id: string];
export type ImageToVideoResultResponse = StabilityAIContentResponse | StabilityAIStatusResult;
/**
* Stability AI Stable Video Image To Video Result (v2beta)
*
* @param id - ID of the upscale job
*/
export declare function imageToVideoResult(this: StabilityAI, ...args: ImageToVideoResultRequest): Promise<ImageToVideoResultResponse>;