safi
v1.1.2
Published
Safi is a Versatile and Superfast AI platform. This package is for consuming chat, transcription, and translation APIs of Safi.
Downloads
12
Readme
The API is easy to use:
const { chat, transcribe, translate } = require('safi');
const apiKey = 'apikey';
// Example usage of chat API chat('Hello, Safi!', apiKey) .then(response => { console.log('Chat response:', response); }) .catch(error => { console.error('Error:', error); });
// Example usage of transcription API transcribe('https://safi.insolify.com/audio.mp3', apiKey) .then(response => { console.log('Transcription:', response); }) .catch(error => { console.error('Error:', error); });
// Example usage of translation API translate('How far bro!', 'pidgin', apiKey) .then(response => { console.log('Translation:', response); }) .catch(error => { console.error('Error:', error); });
