Installation
npm install --save @types/deepai
Summary
This package contains type definitions for deepai (https://deepai.org/).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/deepai.
index.d.ts
export as namespace deepai;
export type Models =
| "colorizer"
| "text2img"
| "text-generator"
| "torch-srgan"
| "waifu2x"
| "nsfw-detector"
| "toonify"
| "image-similarity"
| "deepdream"
| "summarization"
| "sentiment-analysis"
| "text-tagging";
export interface ModelInputs {
"colorizer": { image: string };
"text2img": { text: string };
"text-generator": { text: string };
"torch-srgan": { image: string };
"waifu2x": { image: string };
"nsfw-detector": { image: string };
"toonify": { image: string };
"image-similarity": { image1: string; image2: string };
"deepdream": { image: string };
"summarization": { text: string };
"sentiment-analysis": { text: string };
"text-tagging": { text: string };
}
export interface ModelOutputs {
"torch-srgan": { id: string; output_url: string };
[key: string]: any;
}
export function setApiKey(apiKey: string): void;
/** @async */
export function callStandardApi<T extends Models>(
modelName: T,
inputs_object: ModelInputs[T],
): Promise<ModelOutputs[T]>;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: none
Credits
These definitions were written by Nicolas Newman.