UNPKG

stability-ai

Version:
13 lines (12 loc) 674 B
import { StabilityAIContentResponse, StabilityAIStatusResult } from '../../util'; import StabilityAI from '../..'; export type FetchAsyncGenerationResultRequest = [id: string]; export type FetchAsyncGenerationResultResponse = StabilityAIContentResponse | StabilityAIStatusResult; /** * Fetch the result of an async generation by ID * Results are stored for 24 hours after generation * * @param id - The ID of the generation to fetch (64 characters) * @returns A promise resolving to the generation result */ export declare function fetchAsyncGenerationResult(this: StabilityAI, ...args: FetchAsyncGenerationResultRequest): Promise<FetchAsyncGenerationResultResponse>;