βοΈgenerateCaptionAndTagsFromImage
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.generateCaptionAndTagsFromImage('https://ik.imagekit.io/BIOSPHERE/1678716455079_PTj9bkO9d.jpeg');
console.log(result);
}
main();{
"caption": "generated caption",
"message": "Success",
"status": 1,
"tags": ["generated tags"]
}