UNPKG

stability-ai

Version:
60 lines (59 loc) 1.69 kB
import { OutputFormat, StabilityAIContentResponse } from '../../util'; import StabilityAI from '../..'; export type AspectRatio = '16:9' | '1:1' | '21:9' | '2:3' | '3:2' | '4:5' | '5:4' | '9:16' | '9:21'; export type UltraRequest = [ prompt: string, options?: { aspectRatio?: AspectRatio; negativePrompt?: string; seed?: number; outputFormat?: OutputFormat; } ]; /** * Stability AI Stable Image Generation Ultra (v2beta) * * @param options - Ultra Options */ export declare function ultra(this: StabilityAI, ...args: UltraRequest): Promise<StabilityAIContentResponse>; export type CoreRequest = [ prompt: string, options?: { aspectRatio?: AspectRatio; negativePrompt?: string; seed?: number; outputFormat?: OutputFormat; } ]; /** * Stability AI Stable Image Generation Core (v2beta) * * @param options - Core Options */ export declare function core(this: StabilityAI, ...args: CoreRequest): Promise<StabilityAIContentResponse>; export type SD3Request = [ prompt: string, options?: { model?: 'sd3' | 'sd3-turbo'; seed?: number; outputFormat?: 'jpeg' | 'png'; } & ({ mode: 'text-to-image'; aspectRatio?: AspectRatio; } | { mode: 'image-to-image'; image: string; strength: number; }) & ({ model: 'sd3-turbo'; } | { model?: 'sd3'; negativePrompt?: string; }) ]; /** * Stability AI Stable Image Generation SD3 (v2beta) * * @param options - SD3 (StableDiffusion 3) Options */ export declare function sd3(this: StabilityAI, ...args: SD3Request): Promise<StabilityAIContentResponse>;