UNPKG

node-dall-ai-2

Version:

A type safe library for interacting with OpenAI's Dall-E 2 AI.

27 lines (26 loc) 648 B
interface DalleOptions { apiKey?: string; } interface generation { image_path: string; } interface generationType { id: string; object: string; created: number; generation_type: string; generation: generation[]; task_id: string; prompt_id: string; is_public: boolean; } export declare class Dalle { private apiKey; private url; constructor({ apiKey }: DalleOptions); generate(query: string, amount?: number): Promise<generationType[]>; getTask(taskId: string): Promise<any>; getList(limit: number): Promise<any>; getCredits(): Promise<any>; } export {};