lsx-heu-sdk
v0.0.20
Published
The official TypeScript library for the Heurist AI API
Downloads
34
Readme
Heurist TypeScript API Library
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.