βοΈstableDiffusionGenerateImage
Last updated
npm install @nest25/ai-core-sdk
OR
yarn add @nest25/ai-core-sdk// import the ai-core-sdk
import {AIServices} from '@nest25/ai-core-sdk';
// create a new instance of the sdk
const aiServices = new AIServices();
async function main() {
// get the result of the test
const result = await aiServices.stableDiffusionGenerateImage('this is a prompt.');
console.log(result);
}
main();{
"image": BASE64 OF THE IMAGE,
"message": "Request successful",
"status": 1
}