Full API Implementation inside NodeJS Module
npm:
$ npm install @mgalacyber/universeapi
yarn:
$ yarn add @mgalacyber/universeapi
pnpm:
$ pnpm add @mgalacyber/universeapi
const { UniverseClient } = require("@mgalacyber/universeapi");
const uAPI = new UniverseClient("API-TOKEN");
// Example of an API call
uAPI.V1.AI.OpenAI.GPT.Text({
model: "gpt4", // Type of model used
version: 1, // Model version of rest api
prompt: "What is Galaxy Universe?" // Enter Your prompt here
}).then((result) => console.log(result));
import { UniverseClient } from "@mgalacyber/universeapi";
const uAPI = new UniverseClient("API-TOKEN");
// Example of an API call
uAPI.V1.AI.OpenAI.GPT.Text({
model: "gpt4", // Type of model used
version: 1, // Model version of rest api
prompt: "What is Galaxy Universe?" // Enter Your prompt here
}).then((result) => console.log(result));
If you encounter any problems feel free to open an issue in our