Skip to content

Latest commit

 

History

History
62 lines (51 loc) · 1.65 KB

README.md

File metadata and controls

62 lines (51 loc) · 1.65 KB

UNIVERSE API

Full API Implementation inside NodeJS Module

Installation

npm:

$ npm install @mgalacyber/universeapi

yarn:

$ yarn add @mgalacyber/universeapi

pnpm:

$ pnpm add @mgalacyber/universeapi

Simple to Use

CommonJS (CJS) syntax

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));

ECMAScript Modules (ESM) syntax

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));

Bugs, Glitches and Issues

If you encounter any problems feel free to open an issue in our