brokeapi
v1.0.3
Published
A simple and lightweight Node.js client for interacting with the **BrokeAPI** chat API.
Readme
BrokeAPI
A simple and lightweight Node.js client for interacting with the BrokeAPI chat API.
This module lets you easily send prompts and receive AI-generated replies using async/await.
Installation
Install the package from npm:
npm install brokeapiUsage
const BrokeAPI = require('brokeapi');
(async () => {
// Initialize the API client with your API key
const api = new BrokeAPI('YOUR_KEY_HERE');
try {
// Send a prompt to the BrokeAPI chat endpoint
const response = await api.sendPrompt('Hello from Node.js!');
// Print the reply text from the API
console.log('BrokeAPI reply:\n', response.reply);
} catch (err) {
console.error('Error:', err.message);
}
})();How to get key?
To get key join our official discord server
