@mgalacyber/universeapi
TypeScript icon, indicating that this package has built-in type declarations

3.4.8 • Public • Published

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

Package Sidebar

Install

npm i @mgalacyber/universeapi

Weekly Downloads

30

Version

3.4.8

License

Apache-2.0

Unpacked Size

90.4 kB

Total Files

93

Last publish

Collaborators

  • mgalacyber