0.0.20 • Published 1 year ago

lsx-heu-sdk v0.0.20

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Heurist TypeScript API Library

NPM version

This library provides convenient access to the Heurist REST API from TypeScript or JavaScript.

The full API documentation can be found in docs.

Installation

pnpm add heurist

Usage

import Heurist from 'heurist'

const heurist = new Heurist({
  apiKey: process.env['HEURIST_API_KEY'], // This is the default and can be omitted
})

async function main() {
  const response = await heurist.images.generate({
    model: 'BrainDance',
  })

  // response
  // {
  //   url: 'https://heurist-images.s3.us-east-1.amazonaws.com/**********.png',
  //   model: 'BrainDance',
  //   prompt: 'xxxxxx',
  //   ...
  // }
}

main()

Requirements

TypeScript >= 4.5 is supported.

The following runtimes are supported:

  • Node.js 18 LTS or later (non-EOL) versions.
  • Vercel Edge Runtime.
0.0.20

1 year ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.13

1 year ago

0.0.14

1 year ago

0.0.3

1 year ago

0.0.15

1 year ago

0.0.9

1 year ago

0.0.16

1 year ago

0.0.8

1 year ago

0.0.18

1 year ago

0.0.19

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago