@types/deepai
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/deepai

Weekly Downloads

118

Version

1.0.3

License

MIT

Unpacked Size

4.73 kB

Total Files

5

Last publish

Collaborators

  • types