stability-ai-unofficial-api
To install dependencies:
npm install stability-ai-unofficial-api
To run:
import { imageGenerator } from 'stability-ai-unofficial-api';
const response = await imageGenerator.genImage('< prompt >');
console.log(response);