## Onesytex API Client
This is a Node.js client library for interacting with the Onesytex API. It provides methods to access various API endpoints.
## Installation
Install the package using npm:
```bash
npm install @onepunya/onesytex_api
Here's an example of how to use the client:
const ApiClient = require('@onepunya/onesytex_api');
// Initialize client with base URL
const apiClient = new ApiClient('[invalid URL removed]');
// Example usage of various methods
apiClient.getGeminiMessage('Hai')
.then(data => {
console.log('Gemini Message:', data);
})
.catch(error => {
console.error('Error:', error);
});
// Add more examples...
The client provides methods for various Onesytex API functionalities:
-
getGeminiMessage(text)
: Get a message from Gemini. -
getGeminiVisionMessage(text, url)
: Get a visual message from Gemini. -
postGptConversation(conversation)
: Post a conversation to GPT-2. -
getGpt3_5Turbo(text)
: Get a response from GPT-3.5 Turbo. -
postBingAiChat(messages)
: Post chat messages to Bing AI. -
postImageToAnime(initUrl)
: Post an image URL to generate an anime image. -
postRemoveBackgroundV2(imageUrl)
: Post an image URL to remove its background. -
getVitsInference(text, modelId)
: Get VITS inference. -
getVitsModel()
: Get VITS model information. -
getPixiv(query)
: Search Pixiv for images. -
getNekopoiSearch(query)
: Search Nekopoi for content. -
getNekopoiLatest()
: Get latest updates from Nekopoi. -
postNekopoiGet(url)
: Get data from a Nekopoi URL.
For more details about the Onesytex API and its features, refer to the Onesytex website (https://onesytex.my.id).