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

3.1.0 • Public • Published

UNIVERSE API

Full API Implementation inside NodeJS Module

  • More info at Website
  • Documentation Website
  • Get API TOKEN here Register
    • Free trial premium for 3 days for new user.
  • And you can upgrade your api token to premium, you can see more details at UPGRADE

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

Feedback

If you have any feedback, please reach out to us at support@universebot.space

Package Sidebar

Install

npm i @mgalacyber/universeapi

Weekly Downloads

3

Version

3.1.0

License

Apache-2.0

Unpacked Size

81.5 kB

Total Files

79

Last publish

Collaborators

  • mgalacyber