stability-ai
Version:
Node SDK for Stability AI REST API
49 lines (48 loc) • 1.69 kB
TypeScript
import { OutputFormat, StabilityAIContentResponse } from '../../util';
import StabilityAI from '../..';
import { AspectRatio } from './generate';
export type ControlRequest = [
image: string,
prompt: string,
options?: {
controlStrength?: number;
negativePrompt?: string;
seed?: number;
outputFormat?: OutputFormat;
}
];
/**
* Stability AI Stable Image Control Sketch (v2beta)
*
* @param image - Local filepath or public URL of the image to control sketch
* @param prompt - Prompt to use for control sketch
* @param options - Control sketch Options
*/
export declare function sketch(this: StabilityAI, ...args: ControlRequest): Promise<StabilityAIContentResponse>;
/**
* Stability AI Stable Image Control Structure (v2beta)
*
* @param image - Local filepath or public URL of the image to control structure
* @param prompt - Prompt to use for control structure
* @param options - Control structure Options
*/
export declare function structure(this: StabilityAI, ...args: ControlRequest): Promise<StabilityAIContentResponse>;
export type ControlStyleRequest = [
image: string,
prompt: string,
options?: {
negativePrompt?: string;
aspectRatio?: AspectRatio;
fidelity?: number;
seed?: number;
outputFormat?: OutputFormat;
}
];
/**
* Stability AI Stable Image Control Style (v2beta)
*
* @param image - Local filepath or public URL of the image to control style
* @param prompt - Prompt to use for control style
* @param options - Control style Options
*/
export declare function style(this: StabilityAI, ...args: ControlStyleRequest): Promise<StabilityAIContentResponse>;